Ignore:
Timestamp:
10/21/15 16:56:23 (9 years ago)
Author:
mhnguyen
Message:

Updating pole processing for rectangular grid source

Test
+) On Curie
+) test_remap passes

File:
1 edited

Legend:

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

    r743 r753  
    7676  else // if domain source is rectilinear, not do anything now 
    7777  { 
     78    bool isNorthPole = false; 
     79    bool isSouthPole = false; 
     80    if (poleValue == std::abs(domainSrc_->lat_start)) isNorthPole = true; 
     81    if (poleValue == std::abs(domainSrc_->lat_end)) isSouthPole = true; 
     82 
    7883    nVertexSrc = constNVertex; 
    79     domainSrc_->fillInRectilinearBoundLonLat(boundsLonSrc, boundsLatSrc); 
    80   } 
    81  
    82   bool isNorthPole = false; 
    83   bool isSouthPole = false; 
     84    domainSrc_->fillInRectilinearBoundLonLat(boundsLonSrc, boundsLatSrc, isNorthPole, isSouthPole); 
     85  } 
     86 
    8487  std::map<int,std::vector<std::pair<int,double> > > interpMapValueNorthPole; 
    8588  std::map<int,std::vector<std::pair<int,double> > > interpMapValueSouthPole; 
     
    116119  else 
    117120  { 
     121    bool isNorthPole = false; 
     122    bool isSouthPole = false; 
    118123    if (poleValue == std::abs(domainDest_->lat_start)) isNorthPole = true; 
    119124    if (poleValue == std::abs(domainDest_->lat_end)) isSouthPole = true; 
Note: See TracChangeset for help on using the changeset viewer.