Ignore:
Timestamp:
05/15/17 16:58:35 (7 years ago)
Author:
mhnguyen
Message:

Correcting a minor bug on writting unstructured grid

+) Correct the mapping between received data and written data.
+) Clean some redundant codes

Test
+) On Curie
+) Writing on unstructured grid works correctly

Location:
XIOS/dev/dev_olga/src/node
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/node/domain.cpp

    r1130 r1132  
    13701370       hasBounds = true; 
    13711371     } 
     1372     else if (hasBoundValues) 
     1373     { 
     1374       hasBounds = true;        
     1375     } 
    13721376     else 
    13731377     { 
     
    27732777      }        
    27742778    } 
    2775  
    2776  
    2777  
    2778     // lonvalue.resize(zoom_ni*zoom_nj); 
    2779     // lonvalue = 0; 
    2780  
    2781     // if (hasBounds) 
    2782     // { 
    2783     //   bounds_lonvalue.resize(nvertex,zoom_ni*zoom_nj); 
    2784     //   bounds_lonvalue = 0.; 
    2785     // } 
    2786      
    2787     // if (0 == lonvalue.numElements()) return; 
    2788  
    2789     // for (i = 0; i < nbReceived; ++i) 
    2790     // { 
    2791     //   int rank = recvClientRanks_[i]; 
    2792     //   CArray<int,1> &indi = indGlob_[rank], &indj = indGlob_[rank];       
    2793     //   for (ind = 0; ind < indi.numElements(); ++ind) 
    2794     //   { 
    2795     //      iindex = indi(ind) % ni_glo; jindex = indj(ind) / ni_glo; 
    2796     //      index = (iindex - zoom_ibegin) + (jindex - zoom_jbegin) * zoom_ni; 
    2797     //      lonvalue(index) = recvLonValue[i](ind); 
    2798     //      if (hasBounds) 
    2799     //      {           
    2800     //       for (int nv = 0; nv < nvertex; ++nv) 
    2801     //         bounds_lonvalue(nv, index) = recvBoundsLonValue[i](nv, ind); 
    2802     //      }          
    2803     //   } 
    2804     // } 
    28052779  } 
    28062780 
  • XIOS/dev/dev_olga/src/node/file.cpp

    r1130 r1132  
    974974 
    975975   /*! 
     976   \brief Send a message to create a variable group on server side 
     977   \param[in] id String identity of variable group that will be created on server 
     978   \param [in] client client to which we will send this adding action 
     979   */ 
     980   void CFile::sendAddVariableGroup(const string& id, CContextClient* client) 
     981   { 
     982      sendAddItem(id, (int)EVENT_ID_ADD_VARIABLE_GROUP, client); 
     983   } 
     984 
     985   /*! 
    976986   \brief Send a message to create a variable on server side 
    977987      A variable always belongs to a variable group 
     
    983993   } 
    984994 
     995   /* 
     996     Send message to add a variable into a file within a certain client 
     997     \param [in] id String identity of a variable 
     998     \param [in] client client to which we will send this adding action 
     999   */ 
    9851000   void CFile::sendAddVariable(const string& id, CContextClient* client) 
    9861001   { 
  • XIOS/dev/dev_olga/src/node/file.hpp

    r1129 r1132  
    133133         void sendAddVariable(const string& id, CContextClient* client); 
    134134         void sendAddVariableGroup(const string& id = ""); 
     135         void sendAddVariableGroup(const string& id, CContextClient* client); 
    135136 
    136137         // Receive info from client 
  • XIOS/dev/dev_olga/src/node/grid.cpp

    r1129 r1132  
    632632            CArray<size_t,1>& localIndex = outLocalIndexStoreOnClient[rank]; 
    633633            size_t nbIndex = 0; 
     634             
     635            // Keep this code for this moment but it should be removed (or moved to DEBUG) to improve performance 
    634636            for (size_t idx = 0; idx < globalIndex.numElements(); ++idx) 
    635637            { 
     
    640642            } 
    641643 
     644             
    642645            if (nbIndex != localIndex.numElements()) 
    643646                 ERROR("void CGrid::computeClientIndex()", 
Note: See TracChangeset for help on using the changeset viewer.