Changeset 2312 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.cpp
- Timestamp:
- 03/21/22 15:25:14 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.cpp
r2304 r2312 42 42 , isRedistributed_(false), hasPole(false) 43 43 , lonvalue(), latvalue(), bounds_lonvalue(), bounds_latvalue() 44 , clients(), hasLatInReadFile_(false), hasBoundsLatInReadFile_(false) 45 , hasLonInReadFile_(false), hasBoundsLonInReadFile_(false) 44 , clients() 46 45 { 47 46 } … … 54 53 , isRedistributed_(false), hasPole(false) 55 54 , lonvalue(), latvalue(), bounds_lonvalue(), bounds_latvalue() 56 , clients(), hasLatInReadFile_(false), hasBoundsLatInReadFile_(false) 57 , hasLonInReadFile_(false), hasBoundsLonInReadFile_(false) 58 { 55 , clients() 56 { 59 57 } 60 58 … … 494 492 TRY 495 493 { 496 if (!lonvalue_rectilinear_read_from_file.isEmpty() && lonvalue_2d.isEmpty() && lonvalue_1d.isEmpty() )494 if (!lonvalue_rectilinear_read_from_file.isEmpty() && lonvalue_2d.isEmpty() && lonvalue_1d.isEmpty() ) 497 495 { 498 496 lonvalue_1d.resize(ni); … … 502 500 lon_end.setValue(lonvalue_rectilinear_read_from_file(ni_glo-1)); 503 501 } 504 else if ( !hasLonInReadFile_)502 else if (hasLonInReadFile.isEmpty() || !hasLonInReadFile) 505 503 { 506 504 if (!lonvalue_2d.isEmpty()) lonvalue_2d.free(); … … 536 534 lat_end.setValue(latvalue_rectilinear_read_from_file(nj_glo-1)); 537 535 } 538 else if ( !hasLatInReadFile_)536 else if (hasLatInReadFile.isEmpty() || !hasLatInReadFile) 539 537 { 540 538 if (!latvalue_2d.isEmpty()) latvalue_1d.free();
Note: See TracChangeset
for help on using the changeset viewer.