Changeset 2182 for XIOS/dev/dev_ym
- Timestamp:
- 07/15/21 13:19:13 (3 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src/node
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/field.cpp
r2172 r2182 385 385 386 386 //---------------------------------------------------------------- 387 388 void CField::updateRef(CGrid* grid) 389 TRY 390 { 391 if (!grid_ref.isEmpty()) grid_ref.setValue(grid->getId()); 392 else 393 { 394 std::vector<CAxis*> axisTmp = grid->getAxis(); 395 std::vector<CDomain*> domainTmp = grid->getDomains(); 396 if ((1<axisTmp.size()) || (1<domainTmp.size())) 397 ERROR("void CField::updateRef(CGrid* grid)", 398 << "More than one domain or axis is available for domain_ref/axis_ref of field " << this->getId()); 399 400 if ((!domain_ref.isEmpty()) && (domainTmp.empty())) 401 ERROR("void CField::updateRef(CGrid* grid)", 402 << "Incoherent between available domain and domain_ref of field " << this->getId()); 403 if ((!axis_ref.isEmpty()) && (axisTmp.empty())) 404 ERROR("void CField::updateRef(CGrid* grid)", 405 << "Incoherent between available axis and axis_ref of field " << this->getId()); 406 407 if (!domain_ref.isEmpty()) domain_ref.setValue(domainTmp[0]->getId()); 408 if (!axis_ref.isEmpty()) axis_ref.setValue(axisTmp[0]->getId()); 409 } 410 } 411 CATCH_DUMP_ATTR 412 387 413 388 414 389 void CField::checkGridOfEnabledFields() -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/field.hpp
r2130 r2182 129 129 void solveServerOperation(void); 130 130 void solveCheckMaskIndex(bool doSendingIndex); 131 void updateRef(CGrid* grid);132 131 void solveGridDomainAxisRef(bool checkAtt); 133 132 void solveGridDomainAxisBaseRef();
Note: See TracChangeset
for help on using the changeset viewer.