Ignore:
Timestamp:
Jul 24, 2024, 2:54:37 PM (4 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move ismin, ismax, minmax into new lmdz_libmath.f90
(lint) uppercase fortran keywords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/add_phys_tend_mod.F90

    r5112 r5116  
    290290          PRINT*,'l    T     dT       Q     dQ    '
    291291          DO k = 1, klev
    292              write(*,'(i3,2f14.4,2e14.2)') k,t_seri(i,k),zdt(i,k),q_seri(i,k),zdq(i,k)
     292             WRITE(*,'(i3,2f14.4,2e14.2)') k,t_seri(i,k),zdt(i,k),q_seri(i,k),zdq(i,k)
    293293          ENDDO
    294294          CALL print_debug_phys(i,debug_level,text)
     
    304304      DO j = 1, jqbad
    305305        i=jqadrs(j)
    306           if(prt_level>=debug_level) THEN
     306          IF(prt_level>=debug_level) THEN
    307307           PRINT*,'WARNING  : EAU POUR LE POINT i lon lat =',&
    308308                  i,longitude_deg(i),latitude_deg(i),text
    309309           PRINT*,'l    T     dT       Q     dQ    '
    310310           DO k = 1, klev
    311               write(*,'(i3,2f14.4,2e14.2)') k,t_seri(i,k),zdt(i,k),q_seri(i,k),zdq(i,k)
     311              WRITE(*,'(i3,2f14.4,2e14.2)') k,t_seri(i,k),zdt(i,k),q_seri(i,k),zdq(i,k)
    312312           ENDDO
    313313          ENDIF
     
    367367        jbad = jbad + 1
    368368        jadrs(jbad) = i
    369 !         if(prt_level.ge.debug_level) THEN
     369!         IF(prt_level.ge.debug_level) THEN
    370370!         PRINT*,'cas2 i k t_seri zdt',i,k,t_seri(i,k),zdt(i,k)
    371371!        endif
     
    375375        jqadrs(jqbad) = i
    376376        kqadrs(jqbad) = k
    377 !        if(prt_level.ge.debug_level) THEN
     377!        IF(prt_level.ge.debug_level) THEN
    378378!         PRINT*,'cas2 i k q_seri zdq',i,k,q_seri(i,k),zdq(i,k)
    379379!        endif
     
    385385         i=jadrs(j)
    386386         k=kadrs(j)
    387          if(prt_level>=debug_level) THEN
     387         IF(prt_level>=debug_level) THEN
    388388          PRINT*,'PLANTAGE2 POUR LE POINT i itap lon lat txt jbad zdt t',&
    389389                 i,itap,longitude_deg(i),latitude_deg(i),text,jbad, &
    390390          zdt(i,k),t_seri(i,k)-zdt(i,k)
    391 !!!       if(prt_level.ge.10.and.itap.GE.229.and.i.EQ.3027) THEN
     391!!!       IF(prt_level.ge.10.and.itap.GE.229.and.i.EQ.3027) THEN
    392392          PRINT*,'l    T     dT       Q     dQ    '
    393393          DO k = 1, klev
    394              write(*,'(i3,2f14.4,2e14.2)') k,t_seri(i,k),zdt(i,k),q_seri(i,k),zdq(i,k)
     394             WRITE(*,'(i3,2f14.4,2e14.2)') k,t_seri(i,k),zdt(i,k),q_seri(i,k),zdq(i,k)
    395395          ENDDO
    396396          CALL print_debug_phys(i,debug_level,text)
     
    407407                 i,itap,longitude_deg(i),latitude_deg(i),text,jqbad,&
    408408          zdq(i,k), q_seri(i,k)-zdq(i,k), zdql(i,k), ql_seri(i,k)-zdql(i,k)
    409 !!!       if(prt_level.ge.10.and.itap.GE.229.and.i.EQ.3027) THEN
     409!!!       IF(prt_level.ge.10.and.itap.GE.229.and.i.EQ.3027) THEN
    410410          PRINT*,'l    T     dT       Q     dQ    '
    411411          DO k = 1, klev
    412             write(*,'(i3,2f14.4,2e14.2)') k,t_seri(i,k),zdt(i,k),q_seri(i,k),zdq(i,k)
     412            WRITE(*,'(i3,2f14.4,2e14.2)') k,t_seri(i,k),zdt(i,k),q_seri(i,k),zdq(i,k)
    413413          ENDDO
    414414          CALL print_debug_phys(i,debug_level,text)
     
    801801
    802802  IF (prt_level >= 3) THEN
    803     write(*,9010) text,status," itap:",itap,"enerbilERROR: Q", bilq_error,"  H", bilh_error
     803    WRITE(*,9010) text,status," itap:",itap,"enerbilERROR: Q", bilq_error,"  H", bilh_error
    8048049010  format (1x,A8,2x,A12,A6,I4,A18,E15.6,A5,E15.6)
    805805  ENDIF
    806806  IF (prt_level >= 3) THEN
    807     write(*,9000) text,"enerbil: Q,H,KE budget", d_qt_col(1), d_h_col(1),d_ek_col(1)
     807    WRITE(*,9000) text,"enerbil: Q,H,KE budget", d_qt_col(1), d_h_col(1),d_ek_col(1)
    808808  ENDIF
    809809  IF (prt_level >= 5) THEN
    810     write(*,9000) text,"enerbil at boundaries: Q, H",bilq_bnd, bilh_bnd
    811     write(*,9000) text,"enerbil: water budget",d_qt_col(1),d_qw_col(1),d_ql_col(1),d_qs_col(1), d_qbs_col(1)
    812     write(*,9000) text,"enerbil: enthalpy budget",d_h_col(1),d_h_dair_col(1),d_h_qw_col(1),d_h_ql_col(1),d_h_qs_col(1),d_h_qbs_col(1)
     810    WRITE(*,9000) text,"enerbil at boundaries: Q, H",bilq_bnd, bilh_bnd
     811    WRITE(*,9000) text,"enerbil: water budget",d_qt_col(1),d_qw_col(1),d_ql_col(1),d_qs_col(1), d_qbs_col(1)
     812    WRITE(*,9000) text,"enerbil: enthalpy budget",d_h_col(1),d_h_dair_col(1),d_h_qw_col(1),d_h_ql_col(1),d_h_qs_col(1),d_h_qbs_col(1)
    813813  ENDIF
    814814
     
    816816  CASE("vdf") specific_diag
    817817    IF (prt_level >= 5) THEN
    818       write(*,9000) text,"enerbil: d_h, bilh, sens,t_seri", d_h_col(1), bilh_bnd, sens(1), t_seri(1,1)
    819       write(*,9000) text,"enerbil: d_h_col_vdf, f_h, diff",d_h_col_vdf, f_h_bnd, bilh_bnd-sens(1)
     818      WRITE(*,9000) text,"enerbil: d_h, bilh, sens,t_seri", d_h_col(1), bilh_bnd, sens(1), t_seri(1,1)
     819      WRITE(*,9000) text,"enerbil: d_h_col_vdf, f_h, diff",d_h_col_vdf, f_h_bnd, bilh_bnd-sens(1)
    820820    ENDIF
    821821  CASE("lsc") specific_diag
    822822    IF (prt_level >= 5) THEN
    823       write(*,9000) text,"enerbil: rain, bil_lat, bil_sens", rain_lsc(1), rlvtt * rain_lsc(1), -(rcw-rcpd)*t_seri(1,1) * rain_lsc(1)
    824       write(*,9000) text,"enerbil: snow, bil_lat, bil_sens", snow_lsc(1), rlstt * snow_lsc(1), -(rcs-rcpd)*t_seri(1,1) * snow_lsc(1)
     823      WRITE(*,9000) text,"enerbil: rain, bil_lat, bil_sens", rain_lsc(1), rlvtt * rain_lsc(1), -(rcw-rcpd)*t_seri(1,1) * rain_lsc(1)
     824      WRITE(*,9000) text,"enerbil: snow, bil_lat, bil_sens", snow_lsc(1), rlstt * snow_lsc(1), -(rcs-rcpd)*t_seri(1,1) * snow_lsc(1)
    825825    ENDIF
    826826  CASE("convection") specific_diag
    827827    IF (prt_level >= 5) THEN
    828       write(*,9000) text,"enerbil: rain, bil_lat, bil_sens", rain_con(1), rlvtt * rain_con(1), -(rcw-rcpd)*t_seri(1,1) * rain_con(1)
    829       write(*,9000) text,"enerbil: snow, bil_lat, bil_sens", snow_con(1), rlstt * snow_con(1), -(rcs-rcpd)*t_seri(1,1) * snow_con(1)
     828      WRITE(*,9000) text,"enerbil: rain, bil_lat, bil_sens", rain_con(1), rlvtt * rain_con(1), -(rcw-rcpd)*t_seri(1,1) * rain_con(1)
     829      WRITE(*,9000) text,"enerbil: snow, bil_lat, bil_sens", snow_con(1), rlstt * snow_con(1), -(rcs-rcpd)*t_seri(1,1) * snow_con(1)
    830830    ENDIF
    831831  END SELECT specific_diag
Note: See TracChangeset for help on using the changeset viewer.