Changeset 2400


Ignore:
Timestamp:
09/15/22 10:52:48 (20 months ago)
Author:
jderouillat
Message:

Fix for the multiple_file mode, cases with no data to write on some servers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/node/file.cpp

    r2150 r2400  
    258258 
    259259      // create sub communicator for file 
    260       //createSubComFile();  // NetCDF runs now write of null data 
    261       MPI_Comm_dup(context->intraComm_, &fileComm) ; 
     260      if (type == CFile::type_attr::multiple_file) 
     261      { 
     262        createSubComFile(); 
     263      } 
     264      else 
     265      { 
     266        // NetCDF runs now write of null data 
     267        MPI_Comm_dup(context->intraComm_, &fileComm) ; 
     268      } 
    262269 
    263270      if (time_counter_name.isEmpty()) time_counter_name = "time_counter"; 
Note: See TracChangeset for help on using the changeset viewer.