Ignore:
Timestamp:
08/03/17 15:16:56 (7 years ago)
Author:
oabramkina
Message:

Minor modifications for secondary server:

  • adding a check of the number of processes requested for the secondary server
  • making process distribution between two server levels in case of oasis similar to that wihtout oasis.
File:
1 edited

Legend:

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

    r1232 r1234  
    1717#include "mpi.hpp" 
    1818#include "timer.hpp" 
     19#include "server.hpp" 
    1920 
    2021namespace xios { 
     
    302303      // Done by classical server or secondary server 
    303304      // This condition should be changed soon 
    304       if (!CXios::usingServer2 || (CXios::usingServer2 && !context->hasClient))           
     305      if (CServer::serverLevel == 0 || CServer::serverLevel == 2) 
    305306      { 
    306307        if (mode.isEmpty() || mode.getValue() == mode_attr::write) 
     
    326327      // Done by classical server or secondary server 
    327328      // TODO: This condition should be changed soon. It only works with maximum number of level as 2 
    328       if (!CXios::usingServer2 || (CXios::usingServer2 && context->hasClient)) 
     329      if (CServer::serverLevel == 0 || CServer::serverLevel == 2) 
    329330      { 
    330331        if (!mode.isEmpty() && mode.getValue() == mode_attr::read) 
Note: See TracChangeset for help on using the changeset viewer.