Changeset 2628 for XIOS3/trunk/src/io
- Timestamp:
- 04/03/24 10:33:55 (3 months ago)
- Location:
- XIOS3/trunk/src/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/io/nc4_data_input.cpp
r2507 r2628 10 10 namespace xios 11 11 { 12 extern CLogType logProfile ; 12 13 CNc4DataInput::CNc4DataInput(const StdString& filename, MPI_Comm comm_file, bool multifile, bool isCollective /*= true*/, 13 14 bool readMetaDataPar /*= false*/, bool ugridConvention /*= false*/, const StdString& timeCounterName /*= "time_counter"*/) … … 57 58 { 58 59 case MULTI_FILE: 60 if (info.isActive(logProfile)) CTimer::get("Files : reading data").resume(); 59 61 SuperClassWriter::getData(dataOut, fieldId, isCollective, record ); 62 if (info.isActive(logProfile)) CTimer::get("Files : reading data").suspend(); 60 63 break; 61 64 case ONE_FILE: … … 106 109 } 107 110 111 if (info.isActive(logProfile)) CTimer::get("Files : reading data").resume(); 108 112 SuperClassWriter::getData(dataOut, fieldId, isCollective, record, &start, &count); 113 if (info.isActive(logProfile)) CTimer::get("Files : reading data").suspend(); 109 114 break; 110 115 } -
XIOS3/trunk/src/io/nc4_data_output.cpp
r2617 r2628 21 21 namespace xios 22 22 { 23 extern CLogType logProfile ; 23 24 /// ////////////////////// Dfinitions ////////////////////// /// 24 25 CNc4DataOutput::CNc4DataOutput … … 2277 2278 case (MULTI_FILE) : 2278 2279 { 2279 CTimer::get("Files : writing data").resume();2280 if (info.isActive(logProfile)) CTimer::get("Files : writing data").resume(); 2280 2281 writeAndConvertData(field, data, nstep - 1); 2281 CTimer::get("Files : writing data").suspend();2282 if (info.isActive(logProfile)) CTimer::get("Files : writing data").suspend(); 2282 2283 if (wtime) 2283 2284 { 2284 CTimer::get("Files : writing time axis").resume();2285 if (info.isActive(logProfile)) CTimer::get("Files : writing time axis").resume(); 2285 2286 if ( wtimeData) 2286 2287 { … … 2293 2294 if (timeCounterType!=record) SuperClassWriter::writeTimeAxisDataBounds(time_counter_bound, timeBoundId, isCollective, nstep - 1, isRoot); 2294 2295 } 2295 CTimer::get("Files : writing time axis").suspend();2296 if (info.isActive(logProfile)) CTimer::get("Files : writing time axis").suspend(); 2296 2297 } 2297 2298 break; … … 2441 2442 2442 2443 2443 CTimer::get("Files : writing data").resume();2444 if (info.isActive(logProfile)) CTimer::get("Files : writing data").resume(); 2444 2445 writeAndConvertData(field, data, nstep - 1, &start, &count); 2445 CTimer::get("Files : writing data").suspend();2446 if (info.isActive(logProfile)) CTimer::get("Files : writing data").suspend(); 2446 2447 2447 2448 if (wtime) 2448 2449 { 2449 CTimer::get("Files : writing time axis").resume();2450 if (info.isActive(logProfile)) CTimer::get("Files : writing time axis").resume(); 2450 2451 if ( wtimeData) 2451 2452 { … … 2459 2460 2460 2461 } 2461 CTimer::get("Files : writing time axis").suspend();2462 if (info.isActive(logProfile)) CTimer::get("Files : writing time axis").suspend(); 2462 2463 } 2463 2464 -
XIOS3/trunk/src/io/onetcdf4.cpp
r2613 r2628 13 13 namespace xios 14 14 { 15 extern CLogType logProfile ; 15 16 /// ////////////////////// Définitions ////////////////////// /// 16 17 … … 58 59 if (!append || !std::ifstream(filename.c_str())) 59 60 { 60 CTimer::get("Files : create").resume();61 if (info.isActive(logProfile)) CTimer::get("Files : create").resume(); 61 62 if (wmpi) 62 63 CNetCdfInterface::createPar(filename, mode, *comm, MPI_INFO_NULL, this->ncidp); 63 64 else 64 65 CNetCdfInterface::create(filename, mode, this->ncidp); 65 CTimer::get("Files : create").suspend();66 if (info.isActive(logProfile)) CTimer::get("Files : create").suspend(); 66 67 67 68 this->appendMode = false; … … 70 71 { 71 72 mode |= NC_WRITE; 72 CTimer::get("Files : open").resume();73 if (info.isActive(logProfile)) CTimer::get("Files : open").resume(); 73 74 if (wmpi) 74 75 CNetCdfInterface::openPar(filename, mode, *comm, MPI_INFO_NULL, this->ncidp); 75 76 else 76 77 CNetCdfInterface::open(filename, mode, this->ncidp); 77 CTimer::get("Files : open").suspend();78 if (info.isActive(logProfile)) CTimer::get("Files : open").suspend(); 78 79 this->appendMode = true; 79 80 } … … 89 90 void CONetCDF4::close() 90 91 { 91 CTimer::get("Files : close").resume();92 if (info.isActive(logProfile)) CTimer::get("Files : close").resume(); 92 93 CNetCdfInterface::close(this->ncidp); 93 CTimer::get("Files : close").suspend();94 if (info.isActive(logProfile)) CTimer::get("Files : close").suspend(); 94 95 } 95 96
Note: See TracChangeset
for help on using the changeset viewer.