Ignore:
Timestamp:
12/13/22 11:32:58 (19 months ago)
Author:
jderouillat
Message:

Fix bounds management in transformations. Disabled temporarily bounds settings in the rectilinear case of the generic_testcase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS2/trunk/src/transformation/domain_algorithm_interpolate.cpp

    r1937 r2442  
    125125  int niSrc = domainSrc_->ni.getValue(), njSrc = domainSrc_->nj.getValue(); 
    126126  bool hasBoundSrc = domainSrc_->hasBounds; 
    127   if (hasBoundSrc) nVertexSrc = domainSrc_->nvertex.getValue(); 
     127  if ((hasBoundSrc) && (!domainSrc_->nvertex.isEmpty())) nVertexSrc = domainSrc_->nvertex.getValue(); // default is constNVertex = 4 
    128128  CArray<double,2> boundsLonSrc(nVertexSrc,localDomainSrcSize); 
    129129  CArray<double,2> boundsLatSrc(nVertexSrc,localDomainSrcSize); 
     
    197197  int niDest = domainDest_->ni.getValue(), njDest = domainDest_->nj.getValue(); 
    198198  bool hasBoundDest = domainDest_->hasBounds; 
    199   if (hasBoundDest) nVertexDest = domainDest_->nvertex.getValue(); 
     199  if ((hasBoundDest) && (!domainDest_->nvertex.isEmpty())) nVertexDest = domainDest_->nvertex.getValue(); // default is constNVertex = 4 
    200200  CArray<double,2> boundsLonDest(nVertexDest,localDomainDestSize); 
    201201  CArray<double,2> boundsLatDest(nVertexDest,localDomainDestSize); 
Note: See TracChangeset for help on using the changeset viewer.