Changeset 2340 for XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_extract_domain.cpp
- 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/axis_algorithm/axis_algorithm_extract_domain.cpp
r2270 r2340 130 130 { 131 131 axisDest_->index(countDest) = sourceGlobalIdx(countSrc)/domainSource->ni_glo; 132 int iIdxSrc2 = (countSrc +IdxMin)%domainSource->ni_glo;133 int jIdxSrc2 = (countSrc +IdxMin)/domainSource->ni_glo;132 int iIdxSrc2 = (countSrc%domainSource->ni)+(IdxMin)%domainSource->ni_glo; 133 int jIdxSrc2 = (countSrc/domainSource->ni)+(IdxMin)/domainSource->ni_glo; 134 134 int convert_locally_global_idx = (jIdxSrc2-jIdxSrcMin)*domainSource->ni + (iIdxSrc2-iIdxSrcMin) ; 135 135 bool concerned_by_WF(false); … … 159 159 { 160 160 axisDest_->index(countDest) = sourceGlobalIdx(countSrc)%domainSource->ni_glo; 161 int iIdxSrc2 = (countSrc +IdxMin)%domainSource->ni_glo;162 int jIdxSrc2 = (countSrc +IdxMin)/domainSource->ni_glo;161 int iIdxSrc2 = (countSrc%domainSource->ni)+(IdxMin)%domainSource->ni_glo; 162 int jIdxSrc2 = (countSrc/domainSource->ni)+(IdxMin)/domainSource->ni_glo; 163 163 int convert_locally_global_idx = (jIdxSrc2-jIdxSrcMin)*domainSource->ni + (iIdxSrc2-iIdxSrcMin) ; 164 164 bool concerned_by_WF(false);
Note: See TracChangeset
for help on using the changeset viewer.