Changeset 663 for XIOS/trunk
- Timestamp:
- 08/24/15 14:53:13 (9 years ago)
- Location:
- XIOS/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/distribution_client.cpp
r660 r663 463 463 idx += innerLoopSize; 464 464 } 465 466 465 467 466 // Now allocate these arrays … … 617 616 const int& dataDim, const int& ni, int& j) 618 617 { 619 // int tempI = dataIIndex + dataIBegin,620 // tempJ = (1 == dataDim) ? -1621 // : (dataJIndex + dataJBegin);622 // int i = (dataDim == 1) ? (tempI - 1) % ni623 // : (tempI - 1) ;624 // j = (dataDim == 1) ? (tempI - 1) / ni625 // : (tempJ - 1) ;626 627 618 int tempI = dataIIndex + dataIBegin, 628 619 tempJ = (dataJIndex + dataJBegin); -
XIOS/trunk/src/node/domain.cpp
r660 r663 167 167 } 168 168 computeNGlobDomain(); 169 170 if (0 == global_zoom_ni) global_zoom_ni = ni_glo; 171 if (0 == global_zoom_nj) global_zoom_nj = nj_glo; 169 172 } 170 173 … … 558 561 // compute client zoom indices 559 562 // compute client zoom indices 560 if (0 == global_zoom_ni) global_zoom_ni = ni_glo;561 if (0 == global_zoom_nj) global_zoom_nj = nj_glo;563 // if (0 == global_zoom_ni) global_zoom_ni = ni_glo; 564 // if (0 == global_zoom_nj) global_zoom_nj = nj_glo; 562 565 563 566 int global_zoom_iend=global_zoom_ibegin+global_zoom_ni-1 ; -
XIOS/trunk/src/transformation/domain_algorithm_interpolate_from_file.cpp
r660 r663 241 241 int clientRank = client->clientRank; 242 242 int clientSize = client->clientSize; 243 243 244 244 nc_open(filename.c_str(),NC_NOWRITE, &ncid) ; 245 245 nc_inq_dimid(ncid,"n_weight",&weightDimId) ; … … 260 260 start= mod * (div+1) + (clientRank-mod) * div ; 261 261 } 262 263 264 262 265 263 double* weight=new double[nbWeight] ; … … 268 266 nc_get_vara_double(ncid, weightId, &start, &nbWeight, weight) ; 269 267 270 long* srcIndex=new long[nbWeight] ; 268 long* srcIndex=new long[nbWeight] ; 271 269 int srcIndexId ; 272 270 nc_inq_varid (ncid, "src_idx", &srcIndexId) ; 273 271 nc_get_vara_long(ncid, srcIndexId, &start, &nbWeight, srcIndex) ; 274 272 275 long* dstIndex=new long[nbWeight] ; 273 long* dstIndex=new long[nbWeight] ; 276 274 int dstIndexId ; 277 275 nc_inq_varid (ncid, "dst_idx", &dstIndexId) ; 278 276 nc_get_vara_long(ncid, dstIndexId, &start, &nbWeight, dstIndex) ; 279 277 280 278 for(size_t ind=0; ind<nbWeight;++ind) 281 interpMapValue[dstIndex[ind] ].push_back(make_pair(srcIndex[ind],weight[ind]));282 } 283 284 } 279 interpMapValue[dstIndex[ind]-1].push_back(make_pair(srcIndex[ind]-1,weight[ind])); 280 } 281 282 } -
XIOS/trunk/src/transformation/domain_algorithm_transformation.cpp
r657 r663 73 73 ++idx; 74 74 } 75 int iIndex = domainDestGlobalIndex % domainDestGlobalDim[ 1];75 int iIndex = domainDestGlobalIndex % domainDestGlobalDim[0]; 76 76 int jIndex = domainDestGlobalIndex / domainDestGlobalDim[0]; 77 77 … … 188 188 int& iIndex, int& jIndex) 189 189 { 190 iIndex = index % n jGlob;190 iIndex = index % niGlob; 191 191 jIndex = index / niGlob; 192 192 }
Note: See TracChangeset
for help on using the changeset viewer.