Changeset 1642 for XIOS/dev/branch_openmp/src/transformation/domain_algorithm_generate_rectilinear.cpp
- Timestamp:
- 01/23/19 10:31:44 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/transformation/domain_algorithm_generate_rectilinear.cpp
r1064 r1642 20 20 CGenerateRectilinearDomain* genRectDomain) 21 21 : CDomainAlgorithmTransformation(domainDestination, domainSource), nbDomainDistributedPart_(0) 22 TRY 22 23 { 23 24 type_ = ELEMENT_GENERATION; … … 30 31 fillInAttributesDomainDestination(); 31 32 } 33 CATCH 32 34 33 35 /*! … … 43 45 */ 44 46 void CDomainAlgorithmGenerateRectilinear::computeDistributionGridSource(CGrid* gridSrc) 47 TRY 45 48 { 46 49 CContext* context = CContext::getCurrent(); … … 67 70 StdSize hashValue = hashFunc.hashVec(globalAxisIndex); 68 71 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, 71 74 0, 72 75 client->intraComm); … … 84 87 } 85 88 86 MPI_Bcast(&nbLocalAxis[0], nbAxis, MPI_INT,89 ep_lib::MPI_Bcast(&nbLocalAxis[0], nbAxis, EP_INT, 87 90 0, client->intraComm); 88 91 } … … 94 97 } 95 98 } 99 CATCH 96 100 97 101 /*! … … 99 103 */ 100 104 void CDomainAlgorithmGenerateRectilinear::computeDistributionGridDestination(CGrid* gridDest) 105 TRY 101 106 { 102 107 // For now, just suppose that the grid contains only one domain … … 121 126 122 127 } 128 CATCH 123 129 124 130 /*! … … 126 132 */ 127 133 void CDomainAlgorithmGenerateRectilinear::fillInAttributesDomainDestination() 134 TRY 128 135 { 129 136 if (!domainDest_->distributionAttributesHaveValue()) … … 131 138 domainDest_->fillInLonLat(); 132 139 } 133 140 CATCH 134 141 }
Note: See TracChangeset
for help on using the changeset viewer.