Ignore:
Timestamp:
05/23/17 16:32:26 (7 years ago)
Author:
mhnguyen
Message:

Cleaning up some redundant codes

File:
1 edited

Legend:

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

    r1136 r1144  
    616616 
    617617     // Just check file and try to open it 
    618      CContext* context = CContext::getCurrent(); 
    619      // CContextClient* client=context->client; 
    620      CContextClient* client = (0 != context->clientPrimServer.size()) ? context->clientPrimServer[0] : context->client; 
    621  
    622      // It would probably be better to call initFile() somehow 
    623      // MPI_Comm_dup(client->intraComm, &fileComm); 
    624618     if (time_counter_name.isEmpty()) time_counter_name = "time_counter"; 
    625619 
     
    719713     { 
    720714       this->enabledFields[i]->solveOnlyReferenceEnabledField(sendToServer); 
    721        // this->enabledFields[i]->solveAllEnabledFields(); 
    722 //       this->enabledFields[i]->buildGridTransformationGraph(); 
    723715     } 
    724716   } 
     
    763755     int size = this->enabledFields.size(); 
    764756     for (int i = 0; i < size; ++i) 
    765      { 
    766        // this->enabledFields[i]->solveAllReferenceEnabledField(sendToServer); 
     757     {        
    767758      this->enabledFields[i]->solveAllEnabledFieldsAndTransform(); 
    768759     } 
     
    886877   \param[in] id String identity of field that will be created on server 
    887878   */ 
    888    void CFile::sendAddField(const string& id) 
    889    { 
    890       sendAddItem(id, EVENT_ID_ADD_FIELD); 
    891    } 
    892  
    893879   void CFile::sendAddField(const string& id, CContextClient* client) 
    894880   { 
    895881      sendAddItem(id, EVENT_ID_ADD_FIELD, client); 
    896    } 
    897  
    898    /*! 
    899    \brief Send a message to create a field group on server side 
    900    \param[in] id String identity of field group that will be created on server 
    901    */ 
    902    void CFile::sendAddFieldGroup(const string& id) 
    903    { 
    904       sendAddItem(id, (int)EVENT_ID_ADD_FIELD_GROUP); 
    905882   } 
    906883 
     
    968945   is to duplicate this value on server, too. 
    969946   */ 
    970    void CFile::sendAddAllVariables() 
    971    { 
    972      std::vector<CVariable*> allVar = getAllVariables(); 
    973      std::vector<CVariable*>::const_iterator it = allVar.begin(); 
    974      std::vector<CVariable*>::const_iterator itE = allVar.end(); 
    975  
    976      for (; it != itE; ++it) 
    977      { 
    978        this->sendAddVariable((*it)->getId()); 
    979        (*it)->sendAllAttributesToServer(); 
    980        (*it)->sendValue(); 
    981      } 
    982    } 
    983  
    984947   void CFile::sendAddAllVariables(CContextClient* client) 
    985948   { 
     
    999962   \brief Send a message to create a variable group on server side 
    1000963   \param[in] id String identity of variable group that will be created on server 
    1001    */ 
    1002    void CFile::sendAddVariableGroup(const string& id) 
    1003    { 
    1004       sendAddItem(id, (int)EVENT_ID_ADD_VARIABLE_GROUP); 
    1005    } 
    1006  
    1007    /*! 
    1008    \brief Send a message to create a variable group on server side 
    1009    \param[in] id String identity of variable group that will be created on server 
    1010964   \param [in] client client to which we will send this adding action 
    1011965   */ 
     
    1013967   { 
    1014968      sendAddItem(id, (int)EVENT_ID_ADD_VARIABLE_GROUP, client); 
    1015    } 
    1016  
    1017    /*! 
    1018    \brief Send a message to create a variable on server side 
    1019       A variable always belongs to a variable group 
    1020    \param[in] id String identity of variable that will be created on server 
    1021    */ 
    1022    void CFile::sendAddVariable(const string& id) 
    1023    { 
    1024       sendAddItem(id, (int)EVENT_ID_ADD_VARIABLE); 
    1025969   } 
    1026970 
Note: See TracChangeset for help on using the changeset viewer.