Changeset 1519


Ignore:
Timestamp:
06/04/18 10:43:19 (6 years ago)
Author:
oabramkina
Message:

Activating an option for setting different number of processes per secondary-server pool via parameter number_pools_server2.

Location:
XIOS/dev/XIOS_DEV_CMIP6/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/cxios.cpp

    r1377 r1519  
    5757    usingServer2=getin<bool>("using_server2",false) ; 
    5858    ratioServer2=getin<int>("ratio_server2",50); 
    59     nbPoolsServer2=getin<int>("number_pools_server2",1); 
     59    nbPoolsServer2=getin<int>("number_pools_server2",0); 
    6060    info.setLevel(getin<int>("info_level",0)) ; 
    6161    report.setLevel(getin<int>("info_level",50)); 
  • XIOS/dev/XIOS_DEV_CMIP6/src/server.cpp

    r1377 r1519  
    3838 * \fn void CServer::initialize(void) 
    3939 * Creates intraComm for each possible type of servers (classical, primary or secondary). 
    40  * (For now the assumption is that there is one proc per secondary server pool.) 
    4140 * Creates interComm and stores them into the following lists: 
    4241 *   classical server -- interCommLeft 
     
    110109          else 
    111110          { 
     111            if (CXios::nbPoolsServer2 == 0) CXios::nbPoolsServer2 = reqNbProc; 
    112112            int firstSndSrvRank = srvRanks.size()*(100.-CXios::ratioServer2)/100. ; 
    113113            int poolLeader = firstSndSrvRank; 
    114114//*********** (1) Comment out the line below to set one process per pool 
    115 //            sndServerGlobalRanks.push_back(srvRanks[poolLeader]); 
     115            sndServerGlobalRanks.push_back(srvRanks[poolLeader]); 
    116116            int nbPools = CXios::nbPoolsServer2; 
    117117            if ( nbPools > reqNbProc || nbPools < 1) 
     
    139139                } 
    140140//*********** (2) Comment out the two lines below to set one process per pool 
    141 //                if (poolLeader < srvRanks.size()) 
    142 //                  sndServerGlobalRanks.push_back(srvRanks[poolLeader]); 
     141                if (poolLeader < srvRanks.size()) 
     142                  sndServerGlobalRanks.push_back(srvRanks[poolLeader]); 
    143143//*********** (3) Uncomment the line below to set one process per pool 
    144                 sndServerGlobalRanks.push_back(srvRanks[i]); 
     144//                sndServerGlobalRanks.push_back(srvRanks[i]); 
    145145              } 
    146146              else 
Note: See TracChangeset for help on using the changeset viewer.