Changeset 1273 for XIOS/dev


Ignore:
Timestamp:
09/25/17 10:48:55 (7 years ago)
Author:
ymipsl
Message:

Bug fix in domain_interpolate for dynamic renormalization (taking into account missing values). Solve a crash when a local domain is fully masked.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/transformation/domain_algorithm_interpolate.cpp

    r1269 r1273  
    944944void CDomainAlgorithmInterpolate::updateData(CArray<double,1>& dataOut) 
    945945{ 
    946   if (detectMissingValue && renormalize) dataOut/=renormalizationFactor ; 
    947 } 
    948  
    949 } 
     946  if (detectMissingValue && renormalize) 
     947  { 
     948    if (renormalizationFactor.numElements()>0) dataOut/=renormalizationFactor ; // In some case, process doesn't received any data for interpolation (mask) 
     949                                                                                // so renormalizationFactor is not initialized 
     950  } 
     951} 
     952 
     953} 
Note: See TracChangeset for help on using the changeset viewer.