~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to include/dolfin/io/BinaryFile.h

  • Committer: Niclas Jansson
  • Date: 2011-10-08 18:40:52 UTC
  • Revision ID: njansson@csc.kth.se-20111008184052-yg19ssfk0hq11e4x
Tags: 0.8.2-hpc
Fixed various build problems and parallel read of serial written mesh

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
    void nameUpdate(const int counter);
86
86
 
87
 
#ifdef ENABLE_MPIIO
88
 
 
89
87
    void write_function(std::vector<std::pair<Function*, std::string> >& f);
90
88
 
91
 
#endif
92
 
 
93
 
    inline void hdr_check(BinaryFileHeader hdr, Binary_data_t type, uint pe_size)
 
89
    inline void hdr_check(BinaryFileHeader hdr, 
 
90
                          Binary_data_t type, uint pe_size)
94
91
    {     
95
92
      
96
93
      if (hdr.magic != BINARY_MAGIC)
108
105
        error("Invalid data type in file");
109
106
      
110
107
      if (hdr.type == BINARY_VECTOR_DATA && (hdr.pe_size != pe_size))
111
 
        error("File stored on %d PE's, currently running on %d PE's", hdr.pe_size, pe_size);
 
108
        error("File stored on %d PE's, currently running on %d PE's", 
 
109
              hdr.pe_size, pe_size);
112
110
    };
113
111
 
114
112