Changeset 278 for XMLIO_V2/dev/common/src/xmlio/node/grid.cpp
- Timestamp:
- 09/21/11 09:42:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/common/src/xmlio/node/grid.cpp
r274 r278 463 463 ARRAY(int, 1) out_j_index_cl = this->out_j_index[i + 1]; 464 464 ARRAY(int, 1) out_l_index_cl = this->out_l_index[i + 1]; 465 466 const int ibegin_cl = ibegin[i]; 467 const int jbegin_cl = jbegin[i]; 468 465 469 466 int ibegin_zoom_cl = ibegin[i]; //ibegin_zoom[i]; 470 467 int jbegin_zoom_cl = jbegin[i]; //jbegin_zoom[i]; … … 480 477 (*storeIndex_srv)[n] = (*storeIndex_cl)[m]; // Faux mais inutile dans le cas serveur. 481 478 (*out_i_index_srv)[n] = (*out_i_index_cl)[m] 482 /*+ (ibegin_cl - 1) */ - (ibegin_srv - 1) + (ibegin_zoom_cl - 1) - (ibegin_zoom_srv - 1);479 /*+ (ibegin_cl - 1) - (ibegin_srv - 1)*/ + (ibegin_zoom_cl - 1) - (ibegin_zoom_srv - 1); 483 480 (*out_j_index_srv)[n] = (*out_j_index_cl)[m] 484 /*+ (jbegin_cl - 1) */ - (jbegin_srv - 1)+ (jbegin_zoom_cl - 1) - (jbegin_zoom_srv - 1);481 /*+ (jbegin_cl - 1) - (jbegin_srv - 1)*/ + (jbegin_zoom_cl - 1) - (jbegin_zoom_srv - 1); 485 482 (*out_l_index_srv)[n] = (*out_l_index_cl)[m]; 486 483 } … … 532 529 this->out_i_index[0] = out_i_index_srv; 533 530 this->out_j_index[0] = out_j_index_srv; 534 this->out_l_index[0] = out_l_index_srv; 535 536 this->storeIndex.resize(1); 537 this->out_i_index.resize(1); 538 this->out_j_index.resize(1); 539 this->out_l_index.resize(1); 540 531 this->out_l_index[0] = out_l_index_srv; 541 532 } 542 533 … … 552 543 << "Les données d'un client sont manquantes !") ; 553 544 if (storedServer.get() != NULL) 554 storedServer->resize(boost::extents[this->storeIndex .size()-1]);545 storedServer->resize(boost::extents[this->storeIndex[0]->num_elements()]); 555 546 else 556 ARRAY_ASSIGN(storedServer, double, 1, [this->storeIndex .size()-1]);547 ARRAY_ASSIGN(storedServer, double, 1, [this->storeIndex[0]->num_elements()]); 557 548 558 549 for (StdSize i = 0, n = 0; i < storedClient.size(); i++)
Note: See TracChangeset
for help on using the changeset viewer.