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/test/py/RSW2_MPAS_W02.py

    r801 r802  
    1 print 'Starting' 
     1from dynamico import getargs 
     2log_master, log_world = getargs.getLogger() 
     3INFO, DEBUG, ERROR = log_master.info, log_master.debug, log_world.error 
     4 
     5INFO('Starting') 
    26 
    37from mpi4py import MPI 
    48comm = MPI.COMM_WORLD 
    59mpi_rank, mpi_size = comm.Get_rank(), comm.Get_size() 
    6 print '%d/%d starting'%(mpi_rank,mpi_size) 
     10INFO('%d/%d starting'%(mpi_rank,mpi_size)) 
    711prefix='fig_RSW2_MPAS_W02/%02d'%mpi_rank 
    812 
    9 print 'Loading DYNAMICO modules ...' 
     13INFO('Loading DYNAMICO modules ...') 
    1014from dynamico import unstructured as unst 
    1115from dynamico.meshes import MPAS_Format, Unstructured_PMesh as PMesh, Local_Mesh as Mesh 
Note: See TracChangeset for help on using the changeset viewer.