/[escript]/trunk/escriptcore/src/NonReducedVariable.cpp
ViewVC logotype

Diff of /trunk/escriptcore/src/NonReducedVariable.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5653 by jfenwick, Fri Apr 24 01:36:26 2015 UTC revision 5654 by jfenwick, Mon Jun 15 05:21:00 2015 UTC
# Line 109  bool NonReducedVariable::groupReduce(MPI Line 109  bool NonReducedVariable::groupReduce(MPI
109      return true;      return true;
110  }  }
111    
112    void NonReducedVariable::copyValueFrom(boost::shared_ptr<AbstractReducer>& src)
113    {
114        NonReducedVariable* sr=dynamic_cast<NonReducedVariable*>(src.get());
115        if (sr==0)
116        {
117        throw SplitWorldException("Source and destination need to be the same reducer types.");
118        }
119        value=sr->value;
120        valueadded=true;
121    }
122    
123    
124  namespace escript  namespace escript
125  {  {
126  Reducer_ptr makeNonReducedVariable()  Reducer_ptr makeNonReducedVariable()

Legend:
Removed from v.5653  
changed lines
  Added in v.5654

  ViewVC Help
Powered by ViewVC 1.1.26