Ignore:
Timestamp:
06/15/17 19:32:13 (7 years ago)
Author:
yushan
Message:

save dev. need to unify the file type when using EP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan_merged/src/node/file.cpp

    r1160 r1172  
    579579 
    580580      #ifdef _usingEP 
    581       if(omp_get_num_threads() != 1 ) multifile = true; 
    582       #endif 
    583  
     581      //printf("multifile was %d\n", multifile); 
     582      multifile = true; 
    584583      if (isOpen) data_out->closeFile(); 
    585584      if (time_counter_name.isEmpty()) data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective)); 
    586585      else data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective, time_counter_name)); 
    587586      isOpen = true; 
     587      #else 
     588      if (isOpen) data_out->closeFile(); 
     589      if (time_counter_name.isEmpty()) data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective)); 
     590      else data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective, time_counter_name)); 
     591      isOpen = true; 
     592      #endif 
     593 
     594       
    588595    } 
    589596  } 
Note: See TracChangeset for help on using the changeset viewer.