Changeset 2137 for XIOS/dev/dev_trunk_graph/src/node/grid.cpp
- Timestamp:
- 05/30/21 23:30:01 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_graph/src/node/grid.cpp
r2027 r2137 1210 1210 } 1211 1211 1212 1212 1213 void CGrid::sendGridToCouplerOut(CContextClient* client, const string& fieldId) 1213 1214 { … … 1217 1218 distributeGridToServer(client,fieldId) ; 1218 1219 } 1220 1219 1221 1220 1222 void CGrid::distributeGridToServer(CContextClient* client, const string& fieldId) … … 1312 1314 CMessage message ; 1313 1315 if (isCoupling) message<<getCouplingAlias(fieldId) ; 1314 else message<<getId() ; 1316 else message<<getId() ; 1315 1317 gridScattererConnector.transfer(maskOut, client, event, message) ; 1316 1318 for(auto& it : scattererConnectors) delete it ; … … 1342 1344 clientFromServerConnector_[client] = new CGridGathererConnector(clientFromServerConnectors) ; 1343 1345 1344 1345 } 1346 } 1347 1346 1348 1347 1349 void CGrid::recvMask(CEventServer& event) … … 1394 1396 } 1395 1397 1396 1397 1398 string CGrid::getCouplingAlias(const string& fieldId) 1398 1399 { 1399 1400 return "_grid_of_"+fieldId; 1400 1401 } 1401 1402 1402 1403 1403 void CGrid::makeAliasForCoupling(const string& fieldId) … … 1650 1650 std::shared_ptr<CFilter> inputFilter = std::shared_ptr<CPassThroughFilter>(new CPassThroughFilter(gc)); 1651 1651 std::shared_ptr<CFilter> outputFilter = inputFilter ; 1652 cout<<"***************CGrid::buildTransformationGraph Pass through filter ***************"<<transformationGoing<<field->getId()<<endl; 1653 /*inputFilter->graphEnabled = true; 1654 inputFilter->graphPackage = new CGraphPackage; 1655 inputFilter->graphPackage->inFields.push_back(field); 1656 */ 1652 1653 1657 1654 string newId ; 1658 1655 if (gridSrc!=nullptr) newId = gridSrc->getId() + " --> " + this->getId() ; … … 1667 1664 else 1668 1665 { 1669 StdString role = CXios::isClient? "Client ": "Server "; 1670 cout<<role<<"Create new grid : "<<newId<<endl ; 1666 cout<<"Create new grid : "<<newId<<endl ; 1671 1667 newGrid = CGrid::create(newId) ; 1672 1668 isNewGrid = true ; … … 1715 1711 else if (srcElement.type==TYPE_AXIS) tmpGridSrc->addAxis(srcElement.axis->getId()) ; 1716 1712 else if (srcElement.type==TYPE_SCALAR) tmpGridSrc->addScalar(srcElement.scalar->getId()) ; 1717 tmpGridSrc->checkElementsAttributes() ; 1713 // WARNING -> suppress checkElement attribute ? What append ? 1714 // tmpGridSrc->checkElementsAttributes() ; 1718 1715 CGrid* tmpGridDst=CGrid::create(); // destination Grid 1719 1716 map<int,int> posInGrid={{0,0}} ; … … 1956 1953 auxField->getInstantDataFilter()->connectOutput(transformFilter,i) ; 1957 1954 i++ ; 1958 1959 1955 } 1960 1956 outputFilter = transformFilter ;
Note: See TracChangeset
for help on using the changeset viewer.