Ignore:
Timestamp:
01/21/19 11:34:04 (5 years ago)
Author:
dubos
Message:

devel/unstructured : reduced, configurable log output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/Python/dynamico/time_step.py

    r778 r802  
    22from scipy import sparse as sparse 
    33import math as math 
     4 
     5import getargs 
     6log_master, log_world = getargs.getLogger(__name__) 
     7INFO, DEBUG, ERROR = log_master.info, log_master.debug, log_world.error 
     8INFO_ALL, DEBUG_ALL = log_world.info, log_world.debug 
    49 
    510class Struct: pass 
     
    8792    def __init__(self,precision,bwd_fast_slow, dt,nstage, bsjl,bfjl): 
    8893        if bwd_fast_slow is None: 
    89             print 'SIRK with Fortran-side time stepping' 
     94            DEBUG('SIRK with Fortran-side time stepping') 
    9095            precision=np.float64 
    9196        else: 
    92             print 'SIRK with Python-side time stepping at precision ', precision 
     97            DEBUG('SIRK with Python-side time stepping at precision %s' % precision) 
    9398 
    9499        self.bwd_fast_slow = bwd_fast_slow 
     
    98103        self.csjl, self.cfjl = [x.astype(precision) for x in csjl, cfjl] 
    99104        self.tauj = np.array([dt*bfjl[j,j] for j in range(self.nstage)], dtype=precision) 
    100         print 'Types of csjl, cfjl, tauj :', self.csjl.dtype, self.cfjl.dtype, self.tauj.dtype 
     105        DEBUG('Types of csjl, cfjl, tauj : %s %s %s' % (self.csjl.dtype, self.cfjl.dtype, self.tauj.dtype) ) 
    101106    def next(self,zj): 
    102107        csjl, cfjl, tauj = self.csjl, self.cfjl, self.tauj 
Note: See TracChangeset for help on using the changeset viewer.