Changeset 1419 for XIOS/dev/XIOS_DEV_CMIP6/src/node/domain.cpp
- Timestamp:
- 02/02/18 16:26:29 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/node/domain.cpp
r1413 r1419 256 256 257 257 /*! 258 Redistribute RECTILINEAR domain with a number of local domains.258 Redistribute RECTILINEAR or CURVILINEAR domain with a number of local domains. 259 259 All attributes ni,nj,ibegin,jbegin (if defined) will be rewritten 260 260 The optional attributes lonvalue, latvalue will be added. Because this function only serves (for now) … … 536 536 for (int jdx = 0; jdx < nj; ++jdx) 537 537 for (int idx = 0; idx < ni; ++idx) 538 lonvalue_2d(idx,jdx) = lonvalue_curvilinear_read_from_file(idx +ibegin, jdx+jbegin);538 lonvalue_2d(idx,jdx) = lonvalue_curvilinear_read_from_file(idx, jdx); 539 539 540 540 lonvalue_curvilinear_read_from_file.free(); … … 546 546 for (int jdx = 0; jdx < nj; ++jdx) 547 547 for (int idx = 0; idx < ni; ++idx) 548 latvalue_2d(idx,jdx) = latvalue_curvilinear_read_from_file(idx+ibegin, jdx+jbegin);548 latvalue_2d(idx,jdx) = latvalue_curvilinear_read_from_file(idx, jdx); 549 549 550 550 latvalue_curvilinear_read_from_file.free(); … … 557 557 for (int idx = 0; idx < ni; ++idx) 558 558 for (int ndx = 0; ndx < nvertex; ++ndx) 559 bounds_lon_2d(ndx,idx,jdx) = bounds_lonvalue_curvilinear_read_from_file(ndx,idx+ibegin, jdx+jbegin);559 bounds_lon_2d(ndx,idx,jdx) = bounds_lonvalue_curvilinear_read_from_file(ndx,idx, jdx); 560 560 561 561 bounds_lonvalue_curvilinear_read_from_file.free(); … … 568 568 for (int idx = 0; idx < ni; ++idx) 569 569 for (int ndx = 0; ndx < nvertex; ++ndx) 570 bounds_lat_2d(ndx,idx,jdx) = bounds_latvalue_curvilinear_read_from_file(ndx,idx +ibegin, jdx+jbegin);570 bounds_lat_2d(ndx,idx,jdx) = bounds_latvalue_curvilinear_read_from_file(ndx,idx, jdx); 571 571 572 572 bounds_latvalue_curvilinear_read_from_file.free(); … … 591 591 lonvalue_1d.resize(ni); 592 592 for (int idx = 0; idx < ni; ++idx) 593 lonvalue_1d(idx) = lonvalue_unstructured_read_from_file(i _index(idx));593 lonvalue_1d(idx) = lonvalue_unstructured_read_from_file(idx); 594 594 595 595 // We dont need these values anymore, so just delete them … … 601 601 latvalue_1d.resize(ni); 602 602 for (int idx = 0; idx < ni; ++idx) 603 latvalue_1d(idx) = latvalue_unstructured_read_from_file(i _index(idx));603 latvalue_1d(idx) = latvalue_unstructured_read_from_file(idx); 604 604 605 605 // We dont need these values anymore, so just delete them … … 613 613 for (int idx = 0; idx < ni; ++idx) 614 614 for (int jdx = 0; jdx < nbVertex; ++jdx) 615 bounds_lon_1d(jdx,idx) = bounds_lonvalue_unstructured_read_from_file(jdx, i _index(idx));615 bounds_lon_1d(jdx,idx) = bounds_lonvalue_unstructured_read_from_file(jdx, idx); 616 616 617 617 // We dont need these values anymore, so just delete them … … 625 625 for (int idx = 0; idx < ni; ++idx) 626 626 for (int jdx = 0; jdx < nbVertex; ++jdx) 627 bounds_lat_1d(jdx,idx) = bounds_latvalue_unstructured_read_from_file(jdx, i _index(idx));627 bounds_lat_1d(jdx,idx) = bounds_latvalue_unstructured_read_from_file(jdx, idx); 628 628 629 629 // We dont need these values anymore, so just delete them
Note: See TracChangeset
for help on using the changeset viewer.