Changeset 7ff84e0
- Timestamp:
- 08/26/16 20:03:03 (8 years ago)
- Branches:
- master, pympi
- Children:
- 95f86a3
- Parents:
- fc4fc2f
- git-author:
- Hal Finkel <hfinkel@…> (08/26/16 20:03:03)
- git-committer:
- Hal Finkel <hfinkel@…> (08/26/16 20:03:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GenericIORewrite.cxx
rfc4fc2f r7ff84e0 39 39 40 40 GenericIO GIO(MPI_COMM_WORLD, FileName, Method); 41 GIO.openAndReadHeader(GenericIO::MismatchDisallowed); 41 GIO.openAndReadHeader(GenericIO::MismatchRedistribute); 42 43 int NR = GIO.readNRanks(); 44 if (!Rank && NR != NRanks) { 45 cout << "Redistributing data from " << NR << " ranks to " << NRanks << 46 " ranks; dropping rank topology information!\n"; 47 } 42 48 43 49 vector<GenericIO::VariableInfo> VI; … … 58 64 GIO.readData(-1, false); 59 65 60 GenericIO NewGIO(MPI_COMM_WORLD, NewFileName); 66 MPI_Comm Comm = MPI_COMM_WORLD; 67 if (NR == NRanks) { 68 int Periods[3] = { 0, 0, 0 }; 69 int Dims[3]; 70 GIO.readDims(Dims); 71 MPI_Cart_create(Comm, 3, Dims, Periods, 0, &Comm); 72 } 73 74 GenericIO NewGIO(Comm, NewFileName); 61 75 NewGIO.setNumElems(NElem); 62 76
Note: See TracChangeset
for help on using the changeset viewer.