Changeset 2297 for XIOS/trunk
- Timestamp:
- 02/14/22 19:11:31 (3 years ago)
- Location:
- XIOS/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/io/nc4_data_output.cpp
r2200 r2297 246 246 SuperClassWriter::addDimension(dimVertId, domain->nvertex); 247 247 248 if (server->intraCommSize > 1) 248 int commRank ; 249 int commSize ; 250 MPI_Comm_rank(comm_file,&commRank) ; 251 MPI_Comm_size(comm_file,&commSize) ; 252 if (commSize > 1) 249 253 { 250 254 this->writeLocalAttributes(domain->ibegin, … … 261 265 domain->nj, 262 266 domain->ni_glo,domain->nj_glo, 263 server->intraCommRank,server->intraCommSize);267 commRank,commSize); 264 268 } 265 269 … … 2474 2478 } 2475 2479 2476 bool isRoot = (server->intraCommRank == 0); 2480 int commRank ; 2481 MPI_Comm_rank(comm_file,&commRank) ; 2482 bool isRoot = (commRank == 0); 2477 2483 2478 2484 if (!field->scale_factor.isEmpty() || !field->add_offset.isEmpty()) -
XIOS/trunk/src/node/file.cpp
r2250 r2297 557 557 MPI_Comm_rank(fileComm, &commRank); 558 558 559 if ( server->intraCommSize > 1)559 if (commSize > 1) 560 560 { 561 561 oss << "_" ;
Note: See TracChangeset
for help on using the changeset viewer.