Ignore:
Timestamp:
09/15/11 10:19:26 (13 years ago)
Author:
hozdoba
Message:

nouvelle interface fortran et corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/common/src/xmlio/node/grid.cpp

    r266 r274  
    437437      const std::vector<int> & ibegin = this->domain->getIBeginSub(); 
    438438      const std::vector<int> & jbegin = this->domain->getJBeginSub(); 
     439      const std::vector<int> & ibegin_zoom = this->domain->getIBeginZoomSub(); 
     440      const std::vector<int> & jbegin_zoom = this->domain->getJBeginZoomSub(); 
    439441       
    440442      const int ibegin_srv  = this->domain->ibegin.getValue(); 
     
    465467         const int jbegin_cl = jbegin[i]; 
    466468          
     469         int ibegin_zoom_cl = ibegin[i]; //ibegin_zoom[i]; 
     470         int jbegin_zoom_cl = jbegin[i]; //jbegin_zoom[i]; 
     471          
     472         if (ibegin_zoom.size() != 0) 
     473         { 
     474            ibegin_zoom_cl = ibegin_zoom[i]; 
     475            jbegin_zoom_cl = jbegin_zoom[i]; 
     476         } 
     477          
    467478         for (StdSize n = dn, m = 0; n < (dn + storeIndex_cl->size()); n++, m++) 
    468479         { 
    469480            (*storeIndex_srv)[n]  = (*storeIndex_cl)[m]; // Faux mais inutile dans le cas serveur. 
    470481            (*out_i_index_srv)[n] = (*out_i_index_cl)[m]  
    471                                   + (ibegin_cl - 1) - (ibegin_srv - 1) - (ibegin_zoom_srv - 1); 
     482                                  /*+ (ibegin_cl - 1)*/ - (ibegin_srv - 1) + (ibegin_zoom_cl - 1) - (ibegin_zoom_srv - 1);  
    472483            (*out_j_index_srv)[n] = (*out_j_index_cl)[m] 
    473                                   + (jbegin_cl - 1) - (jbegin_srv - 1) - (jbegin_zoom_srv - 1); 
     484                                  /*+ (jbegin_cl - 1)*/ - (jbegin_srv - 1) + (jbegin_zoom_cl - 1) - (jbegin_zoom_srv - 1); 
    474485            (*out_l_index_srv)[n] = (*out_l_index_cl)[m]; 
    475486         } 
     
    493504         { 
    494505            ERROR("CGrid::computeIndexServer(void)", 
    495                   <<"Erreur d'indexation de la grille au niveau du serveur") ; 
     506                  << "[ grille = "      << this->getId() 
     507                  << ", ibegin_t = "    << ibegin_t 
     508                  << ", jbegin_t = "    << jbegin_t 
     509                  << ", iend_t = "      << iend_t 
     510                  << ", jend_t = "      << jend_t 
     511                  << ", zoom_ni_srv = " << zoom_ni_srv 
     512                  << ", zoom_nj_srv = " << zoom_nj_srv 
     513                  <<" ] Erreur d'indexation de la grille au niveau du serveur") ; 
    496514         } 
    497515      } 
Note: See TracChangeset for help on using the changeset viewer.