Ignore:
Timestamp:
08/20/21 14:38:23 (3 years ago)
Author:
ymipsl
Message:

New functionnality : domain, axis and scalar can now be retrieve with new syntax id :
ex. for domain :

id="domainId" : old syntax, working as before
id="fieldId::domainId" : get the domain related to "domainId" associated to the field "fieldId", work if only 1 domain related to domainId is associated to the field.
id="fieldId::domainId[n]" : get the nth domain related to "domainId" associated to the field "fieldId"
id="fieldId::" : get the domain associated the the field "fieldId, work if grid associated to th field is composed with exactly 1 domain (and possibly other components axis or scalars)
id="fieldId::[n] : get the nth domain composing the grid associated to the field

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.hpp

    r2144 r2203  
    147147         static CGrid* cloneGrid(const StdString& idNewGrid, CGrid* gridSrc); 
    148148 
     149         CDomain* getAssociatedDomain(const string& domainId) ; 
     150         CAxis*   getAssociatedAxis(const string& axisId) ; 
     151         CScalar* getAssociatedScalar(const string& scalarId) ; 
    149152      public:             
    150153         void solveDomainAxisRef(bool areAttributesChecked); 
Note: See TracChangeset for help on using the changeset viewer.