Ignore:
Timestamp:
10/09/14 12:28:27 (10 years ago)
Author:
mhnguyen
Message:

Improving format of info and error file

+) Change name of info and error file into xios_client(server)_rank
+) Make format prettier

Test
+) On local: Fedora 20, gcc 4.8
+) Work as expected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/cxios.cpp

    r497 r499  
    1515  string CXios::rootFile="./iodef.xml" ; 
    1616  string CXios::xiosCodeId="xios.x" ; 
    17   string CXios::infoFile="./info_output"; 
    18   string CXios::errorFile="./error_output"; 
     17  string CXios::clientFile="./xios_client"; 
     18  string CXios::serverFile="./xios_server"; 
    1919 
    2020  bool CXios::isClient ; 
     
    2828  double CXios::defaultBufferServerFactorSize=2 ; 
    2929  bool CXios::printInfo2File; 
     30  bool CXios::isServerSide; 
    3031 
    3132 
     
    5253    CClient::initialize(codeId,localComm,returnComm) ; 
    5354 
    54     if (usingServer) isServer=false; 
    55     else isServer=true ; 
     55    if (usingServer) isServerSide = isServer=false; 
     56    else isServerSide = isServer=true; 
    5657 
    5758    if (printInfo2File) 
    58       CClient::openInfoStream(infoFile); 
     59      CClient::openInfoStream(clientFile); 
    5960    else 
    6061      CClient::openInfoStream(); 
     
    7677  { 
    7778    initialize(); 
     79 
    7880    isClient=true; 
    7981    isServer=false ; 
     82 
     83    isServerSide = true; 
    8084 
    8185    // Initialize all aspects MPI 
     
    8387 
    8488    if (printInfo2File) 
    85       CServer::openInfoStream(infoFile); 
     89      CServer::openInfoStream(serverFile); 
    8690    else 
    8791      CServer::openInfoStream(); 
Note: See TracChangeset for help on using the changeset viewer.