Ignore:
Timestamp:
12/01/14 16:21:48 (10 years ago)
Author:
rlacroix
Message:

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/trunk/src/cxios.hpp

    r512 r523  
    3636     static MPI_Comm globalComm ; //!< Global communicator 
    3737 
    38      static bool printInfo2File; //!< Printing out information into file 
     38     static bool printLogs2Files; //!< Printing out logs into files 
    3939     static bool usingOasis ; //!< Using Oasis 
    4040     static bool usingServer ; //!< Using server (server mode) 
     
    5050     static void setNotUsingServer(); 
    5151 
    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; 
    54  
    5552     //! Initialize server (if any) 
    5653     static  void initServer(); 
Note: See TracChangeset for help on using the changeset viewer.