Ignore:
Timestamp:
May 18, 2020, 12:45:00 PM (5 years ago)
Author:
dubos
Message:

simple_physics : update DYNAMICO interface

Location:
dynamico_lmdz/simple_physics/phyparam
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/simple_physics/phyparam/DYNAMICO/icosa_phyparam_mod.F90

    r4235 r4237  
    6464
    6565      CALL init_comgeomfi(ngrid, llm, inout%lon, inout%lat)
    66       CALL iniphyparam(ngrid, llm,                &
    67            &           unjours, dayref, timestep, &
    68            &           radius, g, cpp*kappa, cpp)
     66      CALL iniphyparam(timestep, unjours, radius, g, cpp*kappa, cpp)
    6967
    7068    END SUBROUTINE init_physics
     
    136134!--------------------------------------- Logging ------------------------------------
    137135
    138     SUBROUTINE flush_log_(lev, tag, buf)
     136    SUBROUTINE flush_log_(lev, taglen, tag, buflen, bufsize, buf) BIND(C)
    139137      USE mpipara, ONLY : is_mpi_master
    140138      USE logging, ONLY : dbtag
    141       INTEGER, INTENT(IN) :: lev
    142       CHARACTER(*), INTENT(IN) :: tag, buf(:)
     139      USE, INTRINSIC :: iso_c_binding, ONLY : c_char, c_null_char, c_int
     140      INTEGER(c_int), INTENT(IN), VALUE :: lev, taglen, buflen, bufsize
     141      CHARACTER(KIND=c_char), INTENT(IN) :: tag(taglen), buf(buflen, bufsize)
     142      CHARACTER(buflen+1) :: line
     143      !    SUBROUTINE flush_log_(lev, tag, buf)
     144      !      INTEGER, INTENT(IN) :: lev
     145      !      CHARACTER(*), INTENT(IN) :: tag, buf(:)
    143146      CHARACTER(100) :: prefix
    144147      INTEGER :: i
    145 
     148     
    146149      IF(is_mpi_master) THEN
    147150         WRITE(prefix,*) '[', dbtag(lev), ' ', tag, ']'
    148          DO i=1, SIZE(buf)
    149             WRITE(log_unit,*) TRIM(prefix), TRIM(buf(i))
     151         DO i=1, bufsize
     152            WRITE(line,*) buf(:,i)
     153            WRITE(log_unit,*) TRIM(prefix), TRIM(line)
    150154         END DO
    151155         WRITE(log_unit, *) ''
  • dynamico_lmdz/simple_physics/phyparam/physics/convection.F90

    r4229 r4237  
    2424  SUBROUTINE adjust_onecolumn(ngrid, nlay, i, sig, dsig, sdsig, zu2, zv2, zh2)
    2525    INTEGER, INTENT(IN) :: ngrid, nlay, i
    26     REAL, INTENT(OUT)   :: sig(nlay+1), sdsig(nlay), dsig(nlay)
     26    REAL, INTENT(IN)    :: sig(nlay+1), sdsig(nlay), dsig(nlay)
    2727    REAL, INTENT(INOUT) :: zu2(ngrid,nlay), zv2(ngrid,nlay), zh2(ngrid,nlay)
    2828
Note: See TracChangeset for help on using the changeset viewer.