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

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

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

revision 1827 by ksteube, Thu Oct 2 04:28:07 2008 UTC revision 1872 by jfenwick, Mon Oct 13 00:18:55 2008 UTC
# Line 387  DataExpanded::copyToDataPoint(const int Line 387  DataExpanded::copyToDataPoint(const int
387       ValueType::size_type offset = getPointOffset(sampleNo, dataPointNo);       ValueType::size_type offset = getPointOffset(sampleNo, dataPointNo);
388       ValueType& vec=getVector();       ValueType& vec=getVector();
389       if (dataPointRank==0) {       if (dataPointRank==0) {
390           vec[0]=value;           vec[offset]=value;
391       } else if (dataPointRank==1) {       } else if (dataPointRank==1) {
392          for (int i=0; i<dataPointShape[0]; i++) {          for (int i=0; i<dataPointShape[0]; i++) {
393              vec[offset+i]=value;              vec[offset+i]=value;
# Line 732  DataExpanded::dump(const std::string fil Line 732  DataExpanded::dump(const std::string fil
732     long dims[ldims];     long dims[ldims];
733     const double* d_ptr=&(m_data[0]);     const double* d_ptr=&(m_data[0]);
734     const DataTypes::ShapeType& shape = getShape();     const DataTypes::ShapeType& shape = getShape();
735     int mpi_iam=getFunctionSpace().getDomain().getMPIRank();     int mpi_iam=getFunctionSpace().getDomain()->getMPIRank();
736     int mpi_num=getFunctionSpace().getDomain().getMPISize();     int mpi_num=getFunctionSpace().getDomain()->getMPISize();
737  #ifdef PASO_MPI  #ifdef PASO_MPI
738     MPI_Status status;     MPI_Status status;
739  #endif  #endif

Legend:
Removed from v.1827  
changed lines
  Added in v.1872

  ViewVC Help
Powered by ViewVC 1.1.26