Ignore:
Timestamp:
01/22/21 18:46:08 (3 years ago)
Author:
ymipsl
Message:

Reimplement coupling in the new infrastructure.
Tested for 2-way coupling toy model.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.cpp

    r1984 r2022  
    17811781 
    17821782 
     1783  string CDomain::getCouplingAlias(const string& fieldId, int posInGrid) 
     1784  { 
     1785    return "_domain["+std::to_string(posInGrid)+"]_of_"+fieldId ; 
     1786  } 
    17831787    
    17841788  /* to be removed later when coupling will be reimplemented, just to  not forget */ 
     
    17881792    else sendDomainToFileServer_done_.insert(client) ; 
    17891793     
    1790     const string domainId = "_domain["+std::to_string(posInGrid)+"]_of_"+fieldId ; 
     1794    const string domainId = getCouplingAlias(fieldId, posInGrid) ; 
    17911795     
    17921796    if (!domain_ref.isEmpty()) 
     
    18051809  void CDomain::makeAliasForCoupling(const string& fieldId, int posInGrid) 
    18061810  { 
    1807     const string domainId = "_domain["+std::to_string(posInGrid)+"]_of_"+fieldId ; 
     1811    const string domainId = getCouplingAlias(fieldId, posInGrid); 
    18081812    this->createAlias(domainId) ; 
    18091813  } 
Note: See TracChangeset for help on using the changeset viewer.