/[escript]/trunk/escript/src/Data.cpp
ViewVC logotype

Diff of /trunk/escript/src/Data.cpp

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

revision 1118 by gross, Tue Apr 24 08:55:04 2007 UTC revision 1137 by gross, Thu May 10 08:11:31 2007 UTC
# Line 19  Line 19 
19  #include "DataEmpty.h"  #include "DataEmpty.h"
20  #include "DataArray.h"  #include "DataArray.h"
21  #include "DataArrayView.h"  #include "DataArrayView.h"
 #include "DataProf.h"  
22  #include "FunctionSpaceFactory.h"  #include "FunctionSpaceFactory.h"
23  #include "AbstractContinuousDomain.h"  #include "AbstractContinuousDomain.h"
24  #include "UnaryFuncs.h"  #include "UnaryFuncs.h"
# Line 213  Data::getShapeTuple() const Line 212  Data::getShapeTuple() const
212          throw DataException("Error - illegal Data rank.");          throw DataException("Error - illegal Data rank.");
213    }    }
214  }  }
215    
216    const
217    boost::python::str
218    Data::str() const
219    {
220      return boost::python::str(toString().c_str());
221    }
222    
223  void  void
224  Data::copy(const Data& other)  Data::copy(const Data& other)
225  {  {
# Line 1014  Data::Lsup() const Line 1021  Data::Lsup() const
1021    localValue = algorithm(abs_max_func,0);    localValue = algorithm(abs_max_func,0);
1022  #ifdef PASO_MPI  #ifdef PASO_MPI
1023    MPI_Allreduce( &localValue, &globalValue, 1, MPI_DOUBLE, MPI_MAX, MPI_COMM_WORLD );    MPI_Allreduce( &localValue, &globalValue, 1, MPI_DOUBLE, MPI_MAX, MPI_COMM_WORLD );
1024    return globalValue;   return globalValue;
1025  #else  #else
1026    return localValue;    return localValue;
1027  #endif  #endif

Legend:
Removed from v.1118  
changed lines
  Added in v.1137

  ViewVC Help
Powered by ViewVC 1.1.26