- Timestamp:
- 11/02/15 11:46:25 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/domain_algorithm_interpolate.cpp
r753 r775 78 78 bool isNorthPole = false; 79 79 bool isSouthPole = false; 80 if ( poleValue == std::abs(domainSrc_->lat_start)) isNorthPole = true;81 if ( poleValue == std::abs(domainSrc_->lat_end)) isSouthPole = true;80 if (std::abs(poleValue - std::abs(domainSrc_->lat_start)) < NumTraits<double>::epsilon()) isNorthPole = true; 81 if (std::abs(poleValue - std::abs(domainSrc_->lat_end)) < NumTraits<double>::epsilon()) isSouthPole = true; 82 82 83 83 nVertexSrc = constNVertex; … … 121 121 bool isNorthPole = false; 122 122 bool isSouthPole = false; 123 if ( poleValue == std::abs(domainDest_->lat_start)) isNorthPole = true;124 if ( poleValue == std::abs(domainDest_->lat_end)) isSouthPole = true;123 if (std::abs(poleValue - std::abs(domainDest_->lat_start)) < NumTraits<double>::epsilon()) isNorthPole = true; 124 if (std::abs(poleValue - std::abs(domainDest_->lat_end)) < NumTraits<double>::epsilon()) isSouthPole = true; 125 125 if (isNorthPole && (0 == domainDest_->jbegin.getValue())) 126 126 {
Note: See TracChangeset
for help on using the changeset viewer.