Changeset 670 for codes/icosagcm/devel


Ignore:
Timestamp:
01/30/18 17:56:22 (6 years ago)
Author:
dubos
Message:

devel/unstructured : print fine-grained profile info every second at most

Location:
codes/icosagcm/devel
Files:
2 edited

Legend:

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

    r666 r670  
    55import libs 
    66libs.libicosa.dynamico_show_openmp() 
    7 libs.libicosa.dynamico_init_trace() 
  • codes/icosagcm/devel/src/unstructured/data_unstructured.F90

    r665 r670  
    5858  !----------------------------      PROFILING      -------------------------- 
    5959   
    60   SUBROUTINE init_trace() BINDC(init_trace) 
     60  SUBROUTINE init_trace() 
    6161    !$OMP MASTER 
    6262    time_spent(:)=0. 
     
    7171    !$OMP MASTER 
    7272    total_spent=SUM(time_spent) 
    73     IF(total_spent>.01) THEN 
     73    IF(total_spent>1.) THEN 
    7474       PRINT *, '========================= Performance metrics =========================' 
    7575       PRINT *, 'Total time spent in instrumented code (seconds) :', total_spent 
     
    220220    PRINT *, 'kappa = ',kappa 
    221221    PRINT *, '... Done' 
     222    CALL init_trace 
    222223  END SUBROUTINE init_params 
    223224  ! 
Note: See TracChangeset for help on using the changeset viewer.