Changeset 7792 for branches/ORCHIDEE_2_2


Ignore:
Timestamp:
2022-11-03T13:21:32+01:00 (2 years ago)
Author:
josefine.ghattas
Message:

Minimum of modifications to have PRINTLEV=1 functionnality(only master opens out_orchidee text file) as in the ticket #874

Location:
branches/ORCHIDEE_2_2/ORCHIDEE
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_2_2/ORCHIDEE/src_global/time.f90

    r6269 r7792  
    3838  USE defprec 
    3939  USE constantes_var 
    40   USE mod_orchidee_para_var, ONLY : numout 
     40  USE mod_orchidee_para_var, ONLY : numout, is_mpi_root, is_omp_root 
    4141  USE ioipsl 
    4242  USE ioipsl_para 
     
    131131    printlev_loc=printlev 
    132132    CALL getin_p('PRINTLEV_time', printlev_loc) 
     133    IF (printlev_loc .EQ. 1) THEN 
     134       IF (is_mpi_root.AND.is_omp_root) THEN 
     135          ! Keep output level 1 only for the master processor 
     136          printlev_loc=1 
     137       ELSE 
     138          ! Change output level for all other processors 
     139          printlev_loc=0 
     140       END IF 
     141    END IF 
     142  
     143 
    133144 
    134145    !! Save length of sechiba time step in module variable 
  • branches/ORCHIDEE_2_2/ORCHIDEE/src_parameters/constantes.f90

    r7709 r7792  
    3535  USE defprec 
    3636  USE ioipsl_para, ONLY : getin_p, ipslerr_p 
    37   USE mod_orchidee_para_var, ONLY : numout 
     37  USE mod_orchidee_para_var, ONLY : numout, is_mpi_root, is_omp_root 
     38  USE mod_orchidee_para, ONLY : Set_stdout_file  
    3839  USE time, ONLY : one_day, dt_sechiba 
    3940 
     
    23872388    !! 1.0  Read the global PRINTLEV from run.def. This is only done at first call to this function.  
    23882389    IF (first) THEN 
    2389        !Config Key   = PRINTLEV 
    2390        !Config Desc  = Print level for text output 
    2391        !Config If    =  
    2392        !Config Help  = Possible values are: 
    2393        !Config         0    No output,  
    2394        !Config         1    Minimum writing for long simulations,  
    2395        !Config         2    More basic information for long simulations,  
    2396        !Config         3    First debug level,  
    2397        !Config         4    Higher debug level 
    2398        !Config Def   = 2 
    2399        !Config Units = [0, 1, 2, 3, 4] 
    2400        ! Default value is set in constantes_var 
    2401        CALL getin_p('PRINTLEV',printlev) 
     2390       CALL Set_stdout_file('out_orchidee') 
    24022391       first=.FALSE. 
    24032392 
     
    24172406    CALL getin_p('PRINTLEV_'//modname, get_printlev) 
    24182407 
     2408    IF (get_printlev .EQ. 1) THEN 
     2409       IF (is_mpi_root.AND.is_omp_root) THEN 
     2410          ! Keep output level 1 only for the master processor 
     2411          get_printlev=1 
     2412       ELSE 
     2413          ! Change output level for all other processors 
     2414          get_printlev=0 
     2415       END IF 
     2416    END IF 
     2417 
    24192418  END FUNCTION get_printlev 
    24202419 
  • branches/ORCHIDEE_2_2/ORCHIDEE/src_sechiba/intersurf.f90

    r7265 r7792  
    219219 
    220220    ! Initialize specific write level 
    221     printlev_loc=get_printlev('instersurf') 
     221    printlev_loc=get_printlev('intersurf') 
    222222     
    223223    OFF_LINE_MODE = .TRUE.  
     
    740740    INTEGER,DIMENSION(kjpindex)  :: kindex_offset 
    741741 
     742 
    742743    IF (printlev >= 1) WRITE(*,*) 'Start ORCHIDEE' 
    743744 
     
    749750    CALL barrier2_omp()     
    750751    CALL init_orchidee_data_para(kjpindex,kindex,orch_offset,orch_omp_size,orch_omp_rank,COMM) 
    751     CALL Set_stdout_file('out_orchidee') 
     752 
     753    ! Initialize specific write level and open text output file 
     754    printlev_loc=get_printlev('intersurf') 
    752755 
    753756    IF (printlev >= 1) WRITE(numout,*) 'Start ORCHIDEE intitalization phase' 
     
    908911  
    909912    ! Initialize specific write level 
    910     printlev_loc=get_printlev('instersurf') 
     913    printlev_loc=get_printlev('intersurf') 
    911914 
    912915    IF (printlev_loc >= 1) WRITE(numout,*) 'Entering intersurf_initialize_gathered' 
Note: See TracChangeset for help on using the changeset viewer.