- Timestamp:
- 06/28/22 17:08:49 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/domain_algorithm/domain_algorithm_extract.cpp
r2322 r2340 200 200 IdxMin = sourceGlobalIdx(countSrc); 201 201 } 202 203 202 int countDest(0); // increment of the position in destination domain 204 203 for (int countSrc = 0; countSrc < indexSize ; ++countSrc) … … 217 216 // countSrc+IdxMin is the global position (not index) considering the distributed memory 218 217 // - can be compared to the workflow view 219 int iIdxSrc2 = (countSrc +IdxMin)%domainSource->ni_glo;220 int jIdxSrc2 = (countSrc +IdxMin)/domainSource->ni_glo;218 int iIdxSrc2 = (countSrc%domainSource->ni)+(IdxMin)%domainSource->ni_glo; 219 int jIdxSrc2 = (countSrc/domainSource->ni)+(IdxMin)/domainSource->ni_glo; 221 220 int convert_locally_global_idx = (jIdxSrc2-jIdxSrcMin)*domainSource->ni + (iIdxSrc2-iIdxSrcMin) ; 222 221 bool concerned_by_WF(false);
Note: See TracChangeset
for help on using the changeset viewer.