Changeset 351 for XIOS/trunk/src/node/grid.cpp
- Timestamp:
- 06/27/12 18:25:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/grid.cpp
r347 r351 101 101 //--------------------------------------------------------------- 102 102 103 /* 103 104 std::vector<StdSize> CGrid::getLocalShape(void) const 104 105 { … … 107 108 retvalue.push_back(domain->zoom_nj_loc.getValue()); 108 109 if (this->withAxis) 109 retvalue.push_back(this->axis-> size.getValue());110 retvalue.push_back(this->axis->zoom_size.getValue()); 110 111 return (retvalue); 111 112 } 113 */ 112 114 //--------------------------------------------------------------- 113 115 116 /* 114 117 StdSize CGrid::getLocalSize(void) const 115 118 { … … 120 123 return (retvalue); 121 124 } 122 123 //--------------------------------------------------------------- 124 125 */ 126 //--------------------------------------------------------------- 127 /* 125 128 std::vector<StdSize> CGrid::getGlobalShape(void) const 126 129 { … … 132 135 return (retvalue); 133 136 } 134 //--------------------------------------------------------------- 135 137 */ 138 //--------------------------------------------------------------- 139 140 /* 136 141 StdSize CGrid::getGlobalSize(void) const 137 142 { … … 142 147 return (retvalue); 143 148 } 144 149 */ 145 150 StdSize CGrid::getDataSize(void) const 146 151 { … … 224 229 const int ni = domain->ni.getValue() , 225 230 nj = domain->nj.getValue() , 226 size = (this->hasAxis()) ? axis->size.getValue() : 1 ; 231 size = (this->hasAxis()) ? axis->size.getValue() : 1 , 232 lbegin = (this->hasAxis()) ? axis->zoom_begin.getValue()-1 : 0 , 233 lend = (this->hasAxis()) ? axis->zoom_end.getValue()-1 : 0 ; 227 234 228 235 … … 254 261 : (temp_j - 1) ; 255 262 256 if ((i >= 0 && i < ni) && 263 if ((l >=lbegin && l<= lend) && 264 (i >= 0 && i < ni) && 257 265 (j >= 0 && j < nj) && (*mask)[i][j]) 258 266 indexCount++ ; … … 283 291 : (temp_j - 1) ; 284 292 285 if ((i >= 0 && i < ni) && 293 if ((l >= lbegin && l <= lend) && 294 (i >= 0 && i < ni) && 286 295 (j >= 0 && j < nj) && (*mask)[i][j]) 287 296 { … … 294 303 (*out_i_client)[indexCount]=i+domain->ibegin_client-1 ; 295 304 (*out_j_client)[indexCount]=j+domain->jbegin_client-1 ; 296 (*out_l_client)[indexCount]=l ;305 (*out_l_client)[indexCount]=l-lbegin ; 297 306 indexCount++ ; 298 307 }
Note: See TracChangeset
for help on using the changeset viewer.