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

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/io/nc4_data_input.cpp

    r1639 r1853  
    4747  { 
    4848    CContext* context = CContext::getCurrent(); 
    49     CContextServer* server = context->server; 
    5049 
    5150    CGrid* grid = field->grid; 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/io/nc4_data_output.cpp

    r1847 r1853  
    7171 
    7272         CContext* context = CContext::getCurrent() ; 
    73          CContextServer* server=context->server ; 
    7473 
    7574         if (domain->IsWritten(this->filename)) return; 
     
    146145         string lonid,latid,bounds_lonid,bounds_latid ; 
    147146         string areaId = "area" + appendDomid; 
    148 /* 
    149          StdString lonid_loc = (server->intraCommSize > 1) 
    150                              ? StdString("lon").append(appendDomid).append("_local") 
    151                              : lonid; 
    152          StdString latid_loc = (server->intraCommSize > 1) 
    153                              ? StdString("lat").append(appendDomid).append("_local") 
    154                              : latid; 
    155 */ 
    156147 
    157148         CArray<int, 1>& indexToWrite = domain->localIndexToWriteOnServer; 
     
    246237                   SuperClassWriter::addDimension(dimVertId, domain->nvertex); 
    247238 
    248                  if (server->intraCommSize > 1) 
     239                 if (context->intraCommSize_ > 1) 
    249240                 { 
    250241                   this->writeLocalAttributes(domain->ibegin, 
     
    261252                                                      domain->nj, 
    262253                                                      domain->ni_glo,domain->nj_glo, 
    263                                                       server->intraCommRank,server->intraCommSize); 
     254                                                      context->intraCommRank_,context->intraCommSize_); 
    264255                 } 
    265256 
     
    300291 
    301292 
    302   // supress mask               if (server->intraCommSize > 1) 
     293  // supress mask               if (context->intraCommSize_ > 1) 
    303294  // supress mask               { 
    304295  // supress mask                  SuperClassWriter::addVariable(maskid, NC_INT, dim0); 
     
    548539    { 
    549540      CContext* context = CContext::getCurrent() ; 
    550       CContextServer* server=context->server ; 
    551541 
    552542      if (domain->IsWritten(this->filename)) return; 
     
    571561      StdString domainName = domain->name; 
    572562      domain->assignMesh(domainName, domain->nvertex); 
    573       domain->mesh->createMeshEpsilon(server->intraComm, domain->lonvalue, domain->latvalue, domain->bounds_lonvalue, domain->bounds_latvalue); 
     563      domain->mesh->createMeshEpsilon(context->intraComm_, domain->lonvalue, domain->latvalue, domain->bounds_lonvalue, domain->bounds_latvalue); 
    574564 
    575565      StdString node_x = domainName + "_node_x"; 
     
    908898      { 
    909899         CContext* context = CContext::getCurrent() ; 
    910          CContextServer* server=context->server ; 
    911900 
    912901         if (domain->IsWritten(this->filename)) return; 
     
    18141803      { 
    18151804        CContext* context = CContext::getCurrent() ; 
    1816         CContextServer* server=context->server ; 
    18171805 
    18181806        std::vector<StdString> dims, coodinates; 
     
    23582346      { 
    23592347        CContext* context = CContext::getCurrent(); 
    2360         CContextServer* server = context->server; 
    23612348        CGrid* grid = field->grid; 
    23622349 
     
    24622449        } 
    24632450 
    2464          bool isRoot = (server->intraCommRank == 0); 
     2451         bool isRoot = (context->intraCommRank_ == 0); 
    24652452 
    24662453         if (!field->scale_factor.isEmpty() || !field->add_offset.isEmpty()) 
Note: See TracChangeset for help on using the changeset viewer.