/[escript]/branches/diaplayground/ripley/src/Brick.cpp
ViewVC logotype

Diff of /branches/diaplayground/ripley/src/Brick.cpp

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

revision 4477 by caltinay, Thu Jun 20 02:41:28 2013 UTC revision 4482 by caltinay, Tue Jun 25 05:20:01 2013 UTC
# Line 536  void Brick::writeBinaryGridImpl(const es Line 536  void Brick::writeBinaryGridImpl(const es
536      escript::Data* _in = const_cast<escript::Data*>(&in);      escript::Data* _in = const_cast<escript::Data*>(&in);
537    
538      // from here on we know that each sample consists of one value      // from here on we know that each sample consists of one value
539      FileWriter* fw = new FileWriter();      FileWriter fw;
540      fw->openFile(filename, fileSize);      fw.openFile(filename, fileSize);
541      MPIBarrier();      MPIBarrier();
542    
543      for (index_t z=0; z<myN2; z++) {      for (index_t z=0; z<myN2; z++) {
# Line 556  void Brick::writeBinaryGridImpl(const es Line 556  void Brick::writeBinaryGridImpl(const es
556                      oss.write(byte_swap32(value), sizeof(fvalue));                      oss.write(byte_swap32(value), sizeof(fvalue));
557                  }                  }
558              }              }
559              fw->writeAt(oss, fileofs);              fw.writeAt(oss, fileofs);
560          }          }
561      }      }
562      fw->close();      fw.close();
563  }  }
564    
565  void Brick::dump(const string& fileName) const  void Brick::dump(const string& fileName) const

Legend:
Removed from v.4477  
changed lines
  Added in v.4482

  ViewVC Help
Powered by ViewVC 1.1.26