Ignore:
Timestamp:
11/07/16 17:55:55 (7 years ago)
Author:
oabramkina
Message:

My branch

Location:
XIOS/dev/dev_olga
Files:
1 edited
1 copied

Legend:

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

    r956 r983  
    1616  string CXios::rootFile="./iodef.xml" ; 
    1717  string CXios::xiosCodeId="xios.x" ; 
     18  string CXios::xiosCodeIdPrm="xios.x.1" ; 
     19  string CXios::xiosCodeIdSnd="xios.x.2" ; 
    1820  string CXios::clientFile="./xios_client"; 
    1921  string CXios::serverFile="./xios_server"; 
     22  string CXios::serverPrimFile="./xios_server1"; 
     23  string CXios::serverScndFile="./xios_server2"; 
    2024 
    2125  bool CXios::isClient ; 
    2226  bool CXios::isServer ; 
     27  int CXios::serverLevel = 0 ; 
    2328  MPI_Comm CXios::globalComm ; 
    2429  bool CXios::usingOasis ; 
     
    127132 
    128133  //! Initialize server then put it into listening state 
    129   void CXios::initServerSide(void) 
     134  void CXios::initServerSide(int serverLvl) 
    130135  { 
    131136    initServer(); 
    132     isClient = false; 
     137    if (serverLvl == 1) 
     138      isClient = true; 
     139    else 
     140      isClient = false; 
     141 
    133142    isServer = true; 
     143    serverLevel = serverLvl; 
    134144 
    135145    // Initialize all aspects MPI 
     
    139149    if (printLogs2Files) 
    140150    { 
    141       CServer::openInfoStream(serverFile); 
    142       CServer::openErrorStream(serverFile); 
     151      if (CXios::serverLevel == 0) 
     152      { 
     153        CServer::openInfoStream(serverFile); 
     154        CServer::openErrorStream(serverFile); 
     155      } 
     156      else if (CXios::serverLevel == 1) 
     157      { 
     158        CServer::openInfoStream(serverPrimFile); 
     159        CServer::openErrorStream(serverPrimFile); 
     160      } 
     161      else 
     162      { 
     163        CServer::openInfoStream(serverScndFile); 
     164        CServer::openErrorStream(serverScndFile); 
     165      } 
    143166    } 
    144167    else 
     
    174197  } 
    175198 
     199  //! Set using secondary server 
     200//  void CXios::setUsingSecondaryServer() 
     201//  { 
     202//    usingSecondaryServer = true; 
     203//  } 
     204 
    176205  //! Unset using server 
    177206  void CXios::setNotUsingServer() 
Note: See TracChangeset for help on using the changeset viewer.