Ignore:
Timestamp:
12/13/19 17:55:14 (5 years ago)
Author:
ymipsl
Message:

More cleaning : replace contextClient rank and size by context rank and size.
Because for couling it will have more than one contextClient.

YM

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src/node
Files:
3 edited

Legend:

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

    r1784 r1787  
    9393      // A condition to make sure that if there is only one client, axis 
    9494      // should be considered to be distributed. This should be a temporary solution      
    95       distributed |= (1 == CContext::getCurrent()->client->clientSize); 
     95      distributed |= (1 == CContext::getCurrent()->intraCommSize_); 
    9696      return distributed; 
    9797   } 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.cpp

    r1784 r1787  
    227227              (!i_index.isEmpty() && i_index.numElements() == ni_glo*nj_glo)); 
    228228      bool distributed_glo ; 
    229       distributed |= (1 == CContext::getCurrent()->client->clientSize); 
     229      distributed |= (1 == CContext::getCurrent()->intraCommSize_); 
    230230 
    231231      return distributed; 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp

    r1784 r1787  
    13521352    CContext* context = CContext::getCurrent();     
    13531353    { 
    1354       CContextClient* client = context->client; 
    1355  
    1356       int rank = client->clientRank; 
     1354      int rank = context->intraCommRank_; 
    13571355 
    13581356      clientDistribution_ = new CDistributionClient(rank, this); 
Note: See TracChangeset for help on using the changeset viewer.