Changeset 1875 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/coupler_in.cpp
- Timestamp:
- 05/12/20 11:52:13 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/coupler_in.cpp
r1784 r1875 51 51 CATCH_DUMP_ATTR 52 52 53 const string& CCouplerIn::getCouplingContextId(void) 54 { 55 if (couplingContextId_.empty()) 56 { 57 vector<string> vectStr=splitRegex(context,"::") ; 58 string poolId=vectStr[0] ; 59 string serviceId=poolId ; 60 string contextId=vectStr[1] ; 61 int contextLeader ; 62 int type = CServicesManager::CLIENT ; 63 couplingContextId_=CXios::getContextsManager()->getServerContextName(poolId, serviceId, 0, type, contextId) ; 64 } 65 return couplingContextId_ ; 66 } 67 53 68 void CCouplerIn::createInterCommunicator(void) 54 69 TRY … … 60 75 } 61 76 CContext* contextPtr = CContext::getCurrent(); 62 contextPtr->addCouplingChanel( context, false) ;77 contextPtr->addCouplingChanel(getCouplingContextId(), false) ; 63 78 } 64 79 CATCH_DUMP_ATTR … … 132 147 CATCH 133 148 134 149 /*! 150 * assign the context associated to the coupler to the enabled fields 151 */ 152 void CCouplerIn::assignContext(void) 153 { 154 client_ = CContext::getCurrent()->getCouplerInClient(getCouplingContextId()); 155 for (auto& field : getEnabledFields()) field->setContextClient(client_) ; 156 } 135 157 136 158 //----------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.