Changeset 1070 for XIOS/dev/branch_yushan/src/node/domain.cpp
- Timestamp:
- 03/09/17 18:31:07 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/node/domain.cpp
r1053 r1070 1303 1303 void CDomain::checkAttributesOnClientAfterTransformation() 1304 1304 { 1305 int myRank; 1306 MPI_Comm_rank(MPI_COMM_WORLD, &myRank); 1307 1308 CContext* context=CContext::getCurrent() ; //printf("myRank = %d, CContext::getCurrent OK\n", myRank); 1309 1310 //printf("myRank = %d, this->isClientAfterTransformationChecked = %d\n", myRank, this->isClientAfterTransformationChecked); 1305 1306 CContext* context=CContext::getCurrent() ; 1307 1311 1308 if (this->isClientAfterTransformationChecked) return; 1312 //printf("myRank = %d, context->hasClient = %d\n", myRank, context->hasClient);1313 1309 if (context->hasClient) 1314 1310 { 1315 this->checkMask(); //printf("myRank = %d, this->checkMask OK\n", myRank); 1316 //printf("myRank = %d, hasLonLat = %d, hasArea = %d, isCompressible_ = %d\n", myRank, hasLonLat, hasArea, isCompressible_); 1311 this->checkMask(); 1317 1312 if (hasLonLat || hasArea || isCompressible_) 1318 1313 { 1319 //printf("myRank = %d, start this->computeConnectedServer\n", myRank);1320 1314 this->computeConnectedServer(); 1321 //printf("myRank = %d, this->computeConnectedServer OK\n", myRank); 1322 } 1323 //printf("myRank = %d, hasLonLat = %d\n", myRank, hasLonLat); 1315 } 1324 1316 if (hasLonLat) 1325 1317 { 1326 1318 this->completeLonLatClient(); 1327 //printf("myRank = %d, this->completeLonLatClient OK\n", myRank);1328 1319 } 1329 1320 } … … 1460 1451 void CDomain::computeConnectedServer(void) 1461 1452 { 1462 int myRank;1463 MPI_Comm_rank(MPI_COMM_WORLD, &myRank);1464 1453 1465 1454 CContext* context=CContext::getCurrent() ; … … 1576 1565 else serverDescription.computeServerGlobalIndexInRange(std::make_pair<size_t,size_t>(indexBegin, indexEnd), 1); 1577 1566 1578 //printf("myRank = %d, check 7 OK\n", myRank);1579 1580 1567 CClientServerMapping* clientServerMap = new CClientServerMappingDistributed(serverDescription.getGlobalIndexRange(), 1581 1568 client->intraComm); 1582 //printf("myRank = %d new OK\n", myRank);1583 1584 1569 clientServerMap->computeServerIndexMapping(globalIndexDomain); 1585 //printf("myRank = %d, clientServerMap->computeServerIndexMapping(globalIndexDomain) OK\n", myRank);1586 1570 1587 1571 const CClientServerMapping::GlobalIndexMap& globalIndexDomainOnServer = clientServerMap->getGlobalIndexOnServer(); 1588 //printf("myRank = %d, clientServerMap->getGlobalIndexOnServer OK\n", myRank);1589 1572 1590 //printf("myRank = %d, check 8 OK\n", myRank);1591 1592 1573 CClientServerMapping::GlobalIndexMap::const_iterator it = globalIndexDomainOnServer.begin(), 1593 1574 ite = globalIndexDomainOnServer.end(); … … 1622 1603 } 1623 1604 1624 //printf("myRank = %d, check 9 OK\n", myRank);1625 1626 1605 connectedServerRank_.clear(); 1627 1606 for (it = globalIndexDomainOnServer.begin(); it != ite; ++it) { … … 1632 1611 1633 1612 delete clientServerMap; 1634 //printf("myRank = %d, check 10 OK\n", myRank);1635 1613 } 1636 1614
Note: See TracChangeset
for help on using the changeset viewer.