- Timestamp:
- 12/13/22 11:32:58 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS2/trunk/src/transformation/domain_algorithm_interpolate.cpp
r1937 r2442 125 125 int niSrc = domainSrc_->ni.getValue(), njSrc = domainSrc_->nj.getValue(); 126 126 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 128 128 CArray<double,2> boundsLonSrc(nVertexSrc,localDomainSrcSize); 129 129 CArray<double,2> boundsLatSrc(nVertexSrc,localDomainSrcSize); … … 197 197 int niDest = domainDest_->ni.getValue(), njDest = domainDest_->nj.getValue(); 198 198 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 200 200 CArray<double,2> boundsLonDest(nVertexDest,localDomainDestSize); 201 201 CArray<double,2> boundsLatDest(nVertexDest,localDomainDestSize);
Note: See TracChangeset
for help on using the changeset viewer.