Ignore:
Timestamp:
03/21/22 15:25:14 (2 years ago)
Author:
ymipsl
Message:

temporary fix when reading grid from file. Some part of code must rewrite in future.
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.cpp

    r2304 r2312  
    4242      , isRedistributed_(false), hasPole(false) 
    4343      , lonvalue(), latvalue(), bounds_lonvalue(), bounds_latvalue() 
    44       , clients(), hasLatInReadFile_(false), hasBoundsLatInReadFile_(false) 
    45       , hasLonInReadFile_(false), hasBoundsLonInReadFile_(false) 
     44      , clients() 
    4645   { 
    4746   } 
     
    5453      , isRedistributed_(false), hasPole(false) 
    5554      , lonvalue(), latvalue(), bounds_lonvalue(), bounds_latvalue() 
    56       , clients(), hasLatInReadFile_(false), hasBoundsLatInReadFile_(false) 
    57       , hasLonInReadFile_(false), hasBoundsLonInReadFile_(false) 
    58    { 
     55      , clients() 
     56    { 
    5957    } 
    6058 
     
    494492   TRY 
    495493   { 
    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() ) 
    497495     { 
    498496       lonvalue_1d.resize(ni); 
     
    502500       lon_end.setValue(lonvalue_rectilinear_read_from_file(ni_glo-1)); 
    503501     } 
    504      else if (!hasLonInReadFile_) 
     502     else if (hasLonInReadFile.isEmpty() || !hasLonInReadFile) 
    505503     { 
    506504       if (!lonvalue_2d.isEmpty()) lonvalue_2d.free(); 
     
    536534       lat_end.setValue(latvalue_rectilinear_read_from_file(nj_glo-1)); 
    537535     } 
    538      else if (!hasLatInReadFile_) 
     536     else if (hasLatInReadFile.isEmpty() || !hasLatInReadFile) 
    539537     { 
    540538       if (!latvalue_2d.isEmpty()) latvalue_1d.free(); 
Note: See TracChangeset for help on using the changeset viewer.