Changeset 743 for XIOS/trunk/src/node
- Timestamp:
- 10/19/15 17:41:35 (9 years ago)
- Location:
- XIOS/trunk/src/node
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/domain.cpp
r734 r743 375 375 } 376 376 377 void CDomain::fillInRectilinearBoundLonLat(CArray<double,2>& boundsLon, CArray<double,2>& boundsLat) 377 void CDomain::fillInRectilinearBoundLonLat(CArray<double,2>& boundsLon, CArray<double,2>& boundsLat, 378 bool isNorthPole, bool isSouthPole) 378 379 { 379 380 int i,j,k; … … 397 398 boundsLon(2,k) = boundsLon(3,k) = ((ibegin + i + 1) != ni_glo) ? (ibegin + i +1) * lonStep + bounds_lon_start 398 399 : bounds_lon_end; 399 400 } 401 402 double bounds_lat_start_pole = bounds_lat_start; 403 double bounds_lat_end_pole = bounds_lat_end; 404 if (isNorthPole) bounds_lat_start_pole = lat_start; 405 if (isSouthPole) bounds_lat_end_pole = lat_end; 406 407 for(j=0;j<nj;++j) 408 for(i=0;i<ni;++i) 409 { 410 k=j*ni+i; 400 411 boundsLat(1,k) = boundsLat(2,k) = (0 != (jbegin + j)) ? (jbegin + j) * latStep + bounds_lat_start 401 : bounds_lat_start ;412 : bounds_lat_start_pole; 402 413 boundsLat(0,k) = boundsLat(3,k) = ((jbegin + j +1) != nj_glo) ? (jbegin + j +1) * latStep + bounds_lat_start 403 : bounds_lat_end ;414 : bounds_lat_end_pole; 404 415 } 405 416 } -
XIOS/trunk/src/node/domain.hpp
r731 r743 131 131 void sendLonLatArea(void); 132 132 void computeConnectedServer(void) ; 133 void fillInRectilinearBoundLonLat(CArray<double,2>& boundsLon, CArray<double,2>& boundsLat); 133 void fillInRectilinearBoundLonLat(CArray<double,2>& boundsLon, CArray<double,2>& boundsLat, 134 bool isNorthPole = false, bool isSouthPole = false); 134 135 135 136 static bool dispatchEvent(CEventServer& event);
Note: See TracChangeset
for help on using the changeset viewer.