Ignore:
Timestamp:
01/23/19 10:31:44 (5 years ago)
Author:
yushan
Message:

dev on ADA. add flag switch _usingEP/_usingMPI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/log.cpp

    r1342 r1642  
    11#include "log.hpp" 
    2 #include <string> 
    3 #include <iostream> 
    4 #include <string> 
    52 
    63namespace xios 
    74{ 
    8   std::filebuf* info_FB[16]; 
    9  
    10  
    115  CLog info("info") ; 
    126  CLog report("report") ; 
    137  CLog error("error", cerr.rdbuf()) ; 
    14  
    15    
    16   CLog& CLog::operator()(int l) 
    17     { 
    18       if (l<=level) 
    19       { 
    20         omp_set_lock( &mutex ); 
    21         rdbuf(strBuf_array[omp_get_thread_num()]);  
    22         *this<<"-> "<<name<<" : " ; 
    23         omp_unset_lock( &mutex ); 
    24       } 
    25       else rdbuf(NULL) ; 
    26       return *this; 
    27     } 
    288} 
Note: See TracChangeset for help on using the changeset viewer.