Changeset 1269 for XIOS/dev/XIOS_DEV_CMIP6/src/node/interpolate_domain.cpp
- Timestamp:
- 09/15/17 16:51:16 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/node/interpolate_domain.cpp
r1264 r1269 63 63 if (this->write_weight.isEmpty()) this->write_weight.setValue(false); 64 64 65 StdString weightFile; 66 switch (this->mode) 67 { 68 case mode_attr::read: 69 if (this->weight_filename.isEmpty()) 70 { 71 if (!this->write_weight) 72 ERROR("void CInterpolateDomain::checkValid(CDomain* domainSrc)", 73 << "Read mode is activated but there is no file specified." << std::endl 74 << "Please define a correct file containing interpolation weights with option 'file'. "); 75 } 76 else 77 { 78 weightFile = this->weight_filename; 79 ifstream f(weightFile.c_str()); 80 if (!f.good()) 81 ERROR("void CInterpolateDomain::checkValid(CDomain* domainSrc)", 82 << "Read mode is activated but file " << weightFile << " doesn't exist." << std::endl 83 << "Please check this file "); 84 } 85 break; 86 case mode_attr::compute: 87 break; 88 case mode_attr::read_or_compute: 89 if (!this->weight_filename.isEmpty() && !this->write_weight) 90 { 91 weightFile = this->weight_filename; 92 ifstream f(weightFile.c_str()); 93 if (!f.good()) 94 ERROR("void CInterpolateDomain::checkValid(CDomain* domainSrc)", 95 << "read_or_compute mode is activated but file " << weightFile << " doesn't exist." << std::endl 96 << "Please check this file "); 97 } 98 break; 99 default: 100 break; 101 } 65 if (this->read_write_convention.isEmpty()) this->read_write_convention.setValue(read_write_convention_attr::fortran); 102 66 103 67 }
Note: See TracChangeset
for help on using the changeset viewer.