Changeset 1491 for XIOS/dev/branch_openmp/src/io
- Timestamp:
- 04/23/18 11:18:05 (6 years ago)
- Location:
- XIOS/dev/branch_openmp/src/io
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/io/inetcdf4.cpp
r1463 r1491 7 7 namespace xios 8 8 { 9 CINetCDF4::CINetCDF4(const StdString& filename, const ep_lib::MPI_Comm* comm /*= NULL*/, bool multifile /*= true*/, const StdString& timeCounterName /*= "time_counter"*/) 9 //CINetCDF4::CINetCDF4(const StdString& filename, const ep_lib::MPI_Comm* comm /*= NULL*/, bool multifile /*= true*/, const StdString& timeCounterName /*= "time_counter"*/) 10 CINetCDF4::CINetCDF4(const StdString& filename, const ep_lib::MPI_Comm* comm /*= NULL*/, bool multifile /*= true*/, 11 bool readMetaDataPar /*= false*/, const StdString& timeCounterName /*= "time_counter"*/) 10 12 { 11 13 // Don't use parallel mode if there is only one process … … 17 19 comm = NULL; 18 20 } 19 mpi = comm && !multifile; 21 //mpi = comm && !multifile; 22 mpi = comm && !multifile && readMetaDataPar; 20 23 ep_lib::MPI_Info info_null; 21 24 -
XIOS/dev/branch_openmp/src/io/inetcdf4.hpp
r1460 r1491 23 23 /// Constructors /// 24 24 CINetCDF4(const StdString& filename, const ep_lib::MPI_Comm* comm = NULL, bool multifile = true, 25 const StdString& timeCounterName = "time_counter"); 25 bool readMetaDataPar = false, const StdString& timeCounterName = "time_counter"); 26 //const StdString& timeCounterName = "time_counter"); 26 27 CINetCDF4(const CINetCDF4& inetcdf4); // Not implemented. 27 28 CINetCDF4(const CINetCDF4* const inetcdf4); // Not implemented. -
XIOS/dev/branch_openmp/src/io/nc4_data_input.cpp
r1482 r1491 10 10 namespace xios 11 11 { 12 CNc4DataInput::CNc4DataInput(const StdString& filename, ep_lib::MPI_Comm comm_file, bool multifile, bool isCollective /*= true*/, const StdString& timeCounterName /*= "time_counter"*/) 12 //CNc4DataInput::CNc4DataInput(const StdString& filename, ep_lib::MPI_Comm comm_file, bool multifile, bool isCollective /*= true*/, const StdString& timeCounterName /*= "time_counter"*/) 13 CNc4DataInput::CNc4DataInput(const StdString& filename, ep_lib::MPI_Comm comm_file, bool multifile, bool isCollective /*= true*/, 14 bool readMetaDataPar /*= false*/, bool ugridConvention /*= false*/, const StdString& timeCounterName /*= "time_counter"*/) 13 15 : SuperClass() 14 , SuperClassWriter(filename, &comm_file, multifile, timeCounterName) 16 , SuperClassWriter(filename, &comm_file, multifile, readMetaDataPar, timeCounterName) 17 //, SuperClassWriter(filename, &comm_file, multifile, timeCounterName) 15 18 , comm_file(comm_file) 16 19 , filename(filename) 17 20 , isCollective(isCollective) 21 , ugridConvention(ugridConvention) 18 22 , readMetaDataDomains_(), readValueDomains_() 19 23 , readMetaDataAxis_(), readValueAxis_() … … 422 426 StdString boundsLonName = this->getBoundsId(lonName); 423 427 424 int nbVertex = this->getNbVertex(fieldId); 428 if (ugridConvention && domain->nvertex.isEmpty()) 429 { 430 ERROR("void CNc4DataInput::readDomainAttributeValueFromFile(...)", 431 << " Attribute nvertex must be specified for domain " << domain->getDomainOutputName() 432 << " read from UGRID file " << this->filename << " ."<< std::endl); 433 } 434 // int nbVertex = this->getNbVertex(fieldId); 435 int nbVertex = (ugridConvention) ? domain->nvertex : this->getNbVertex(fieldId); 436 425 437 if (!domain->nvertex.isEmpty() && (domain->nvertex != nbVertex)) 426 438 { -
XIOS/dev/branch_openmp/src/io/nc4_data_input.hpp
r1328 r1491 25 25 /// Constructors /// 26 26 CNc4DataInput(const StdString& filename, ep_lib::MPI_Comm comm_file, bool multifile, bool isCollective = true, 27 const StdString& timeCounterName = "time_counter"); 27 bool readMetaDataPar = false, bool ugridConvention = false, const StdString& timeCounterName = "time_counter"); 28 //const StdString& timeCounterName = "time_counter"); 28 29 CNc4DataInput(const CNc4DataInput& dataInput); // Not implemented. 29 30 CNc4DataInput(const CNc4DataInput* const dataInput); // Not implemented. … … 74 75 const StdString filename; 75 76 bool isCollective; 77 bool ugridConvention; 76 78 }; // class CNc4DataInput 77 79
Note: See TracChangeset
for help on using the changeset viewer.