Ignore:
Timestamp:
01/23/15 16:18:43 (9 years ago)
Author:
rlacroix
Message:

Backport r523 into the stable branch.

Improve the message error handling by mimicking the behavior of the info/report logs.

Output the error messages to the standart error message until the context is correctly initialized. Then, output the error messages to a file if the user has set "print_file" parameter to "true".

  • Fix: Errors that occured before MPI was initialized (e.g. during the config file parsing) caused a MPI error on top of the original error.
  • Fix: The error file could sometimes be misnamed if the error happened before the context was completely known.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/branchs/xios-1.0/src/cxios.hpp

    r501 r548  
    3535     static MPI_Comm globalComm ; 
    3636 
    37      static bool printInfo2File; 
     37     static bool printLogs2Files; //!< Printing out logs into files 
    3838     static bool usingOasis ; 
    3939     static bool usingServer ; 
     
    4949     //! Setting xios NOT to use server mode 
    5050     static void setNotUsingServer(); 
    51  
    52       //! A silly variable to detect whether one process is in client or server side. Should be removed on refactoring code 
    53      static bool isServerSide; 
    5451 
    5552  } ; 
Note: See TracChangeset for help on using the changeset viewer.