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/domain.hpp

    r2022 r2203  
    7070         CDomain(const CDomain & domain);       // Not implemented yet. 
    7171         CDomain(const CDomain * const domain); // Not implemented yet. 
    72  
     72        
    7373         static CDomain* createDomain(); 
    74           
     74         static CDomain* get(const string& id) ; //<! return domain pointer using id 
     75        // static bool has(const string& id) ;     //<! return true if domain with identifier id exist 
     76 
    7577         CMesh* mesh; 
    7678         void assignMesh(const StdString, const int); 
Note: See TracChangeset for help on using the changeset viewer.