Ignore:
Timestamp:
01/20/20 17:55:12 (4 years ago)
Author:
ymipsl
Message:

Coupling branch : replace hasServer and hasClient combination by the name of correct service : CLIENT, GATHERER or OUT_SERVER.

YM

File:
1 edited

Legend:

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

    r1784 r1853  
    226226      CContext* context = CContext::getCurrent(); 
    227227      const CDate& currentDate = context->calendar->getCurrentDate(); 
    228       CContextServer* server = context->server; 
    229228 
    230229      lastSync  = currentDate; 
     
    294293    { 
    295294      CContext* context = CContext::getCurrent(); 
    296       CContextServer* server = context->server; 
    297295 
    298296      // create sub communicator for file 
     
    307305 
    308306      int color = allZoneEmpty ? 0 : 1; 
    309       MPI_Comm_split(server->intraComm, color, server->intraCommRank, &fileComm); 
     307      MPI_Comm_split(context->intraComm_, color, context->intraCommRank_, &fileComm); 
    310308      if (allZoneEmpty) MPI_Comm_free(&fileComm); 
    311309    } 
     
    443441   { 
    444442      CContext* context = CContext::getCurrent(); 
    445       CContextServer* server = context->server; 
    446  
     443       
    447444      if (!allZoneEmpty) 
    448445      { 
     
    560557            MPI_Comm_rank(fileComm, &commRank); 
    561558 
    562             if (server->intraCommSize > 1) 
     559            if (context->intraCommSize_ > 1) 
    563560            { 
    564561              oss << "_" ; 
     
    636633  { 
    637634    CContext* context = CContext::getCurrent(); 
    638     CContextServer* server = context->server; 
    639635    MPI_Comm readComm = this->fileComm; 
    640636 
     
    683679        MPI_Comm_rank(readComm, &commRank); 
    684680 
    685         if (server->intraCommSize > 1) 
     681        if (context->intraCommSize_ > 1) 
    686682        { 
    687683          oss << "_"; 
     
    699695      bool isCollective = par_access.isEmpty() || par_access == par_access_attr::collective; 
    700696      bool readMetaDataPar = true; 
    701       if (!context->hasServer) readMetaDataPar = (read_metadata_par.isEmpty()) ? false : read_metadata_par; 
     697      if (context->getServiceType()==CServicesManager::CLIENT) readMetaDataPar = (read_metadata_par.isEmpty()) ? false : read_metadata_par; 
    702698 
    703699      if (isOpen) data_out->closeFile(); 
     
    10051001     int size = this->enabledFields.size(); 
    10061002     for (int i = 0; i < size; ++i) 
    1007        this->enabledFields[i]->sendReadDataRequest(CContext::getCurrent()->getCalendar()->getCurrentDate()); 
     1003       this->enabledFields[i]->sendReadDataRequest(CContext::getCurrent()->getCalendar()->getCurrentDate(), getContextClient()); 
    10081004   } 
    10091005   CATCH_DUMP_ATTR 
Note: See TracChangeset for help on using the changeset viewer.