Ignore:
Timestamp:
01/23/19 10:31:44 (5 years ago)
Author:
yushan
Message:

dev on ADA. add flag switch _usingEP/_usingMPI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/transformation/domain_algorithm_generate_rectilinear.cpp

    r1064 r1642  
    2020                                                                         CGenerateRectilinearDomain* genRectDomain) 
    2121: CDomainAlgorithmTransformation(domainDestination, domainSource), nbDomainDistributedPart_(0) 
     22TRY 
    2223{ 
    2324  type_ = ELEMENT_GENERATION; 
     
    3031  fillInAttributesDomainDestination(); 
    3132} 
     33CATCH 
    3234 
    3335/*! 
     
    4345*/ 
    4446void CDomainAlgorithmGenerateRectilinear::computeDistributionGridSource(CGrid* gridSrc) 
     47TRY 
    4548{ 
    4649  CContext* context = CContext::getCurrent(); 
     
    6770        StdSize hashValue = hashFunc.hashVec(globalAxisIndex); 
    6871        std::vector<StdSize> recvBuff(client->clientSize); 
    69         MPI_Gather(&hashValue, 1, MPI_UNSIGNED_LONG, 
    70                    &recvBuff[0], 1, MPI_UNSIGNED_LONG, 
     72        ep_lib::MPI_Gather(&hashValue, 1, EP_UNSIGNED_LONG, 
     73                   &recvBuff[0], 1, EP_UNSIGNED_LONG, 
    7174                   0, 
    7275                   client->intraComm); 
     
    8487        } 
    8588 
    86         MPI_Bcast(&nbLocalAxis[0], nbAxis, MPI_INT, 
     89        ep_lib::MPI_Bcast(&nbLocalAxis[0], nbAxis, EP_INT, 
    8790                  0, client->intraComm); 
    8891      } 
     
    9497  } 
    9598} 
     99CATCH 
    96100 
    97101/*! 
     
    99103*/ 
    100104void CDomainAlgorithmGenerateRectilinear::computeDistributionGridDestination(CGrid* gridDest) 
     105TRY 
    101106{ 
    102107  // For now, just suppose that the grid contains only one domain 
     
    121126 
    122127} 
     128CATCH 
    123129 
    124130/*! 
     
    126132*/ 
    127133void CDomainAlgorithmGenerateRectilinear::fillInAttributesDomainDestination() 
     134TRY 
    128135{ 
    129136  if (!domainDest_->distributionAttributesHaveValue()) 
     
    131138  domainDest_->fillInLonLat(); 
    132139} 
    133  
     140CATCH 
    134141} 
Note: See TracChangeset for help on using the changeset viewer.