Changeset 2239 for LMDZ5/trunk/libf
- Timestamp:
- Mar 23, 2015, 8:27:30 AM (10 years ago)
- Location:
- LMDZ5/trunk/libf
- Files:
-
- 61 added
- 28 deleted
- 16 edited
- 10 copied
- 36 moved
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dyn3d/advtrac.F90
r1987 r2239 79 79 80 80 IF(iadvtr.EQ.0) THEN 81 CALL initial0(ijp1llm,pbaruc)82 CALL initial0(ijmllm,pbarvc)81 pbaruc(:,:)=0 82 pbarvc(:,:)=0 83 83 ENDIF 84 84 -
LMDZ5/trunk/libf/dyn3d/fluxstokenc.F
r1907 r2239 83 83 84 84 IF(iadvtr.EQ.0) THEN 85 CALL initial0(ijp1llm,phic)86 CALL initial0(ijp1llm,tetac)87 CALL initial0(ijp1llm,pbaruc)88 CALL initial0(ijmllm,pbarvc)85 phic(:,:)=0 86 tetac(:,:)=0 87 pbaruc(:,:)=0 88 pbarvc(:,:)=0 89 89 ENDIF 90 90 -
LMDZ5/trunk/libf/dyn3d/leapfrog.F
r2221 r2239 437 437 #endif 438 438 ! #endif of #ifdef CPP_IOIPSL 439 #ifdef CPP_PHYS 439 440 CALL calfis( lafin , jD_cur, jH_cur, 440 441 $ ucov,vcov,teta,q,masse,ps,p,pk,phis,phi , 441 442 $ du,dv,dteta,dq, 442 443 $ flxw,dufi,dvfi,dtetafi,dqfi,dpfi ) 443 444 #endif 444 445 c ajout des tendances physiques: 445 446 c ------------------------------ -
LMDZ5/trunk/libf/dyn3d_common/diagedyn.F
r1952 r2239 53 53 c====================================================================== 54 54 55 USE control_mod, ONLY : planet_type 56 55 57 IMPLICIT NONE 56 58 C … … 60 62 #include "iniprint.h" 61 63 62 #ifdef CPP_EARTH 63 #include "../phylmd/YOMCST.h" 64 #include "../phylmd/YOETHF.h" 65 #endif 64 !#ifdef CPP_EARTH 65 !#include "../phylmd/YOMCST.h" 66 !#include "../phylmd/YOETHF.h" 67 !#endif 68 ! Ehouarn: for now set these parameters to what is in Earth physics... 69 ! (cf ../phylmd/suphel.h) 70 ! this should be generalized... 71 REAL,PARAMETER :: RCPD= 72 & 3.5*(1000.*(6.0221367E+23*1.380658E-23)/28.9644) 73 REAL,PARAMETER :: RCPV= 74 & 4.*(1000.*(6.0221367E+23*1.380658E-23)/18.0153) 75 REAL,PARAMETER :: RCS=RCPV 76 REAL,PARAMETER :: RCW=RCPV 77 REAL,PARAMETER :: RLSTT=2.8345E+6 78 REAL,PARAMETER :: RLVTT=2.5008E+6 79 ! 66 80 C 67 81 INTEGER imjmp1 … … 140 154 141 155 142 #ifdef CPP_EARTH 156 !#ifdef CPP_EARTH 157 IF (planet_type=="earth") THEN 158 143 159 c====================================================================== 144 160 C Compute Kinetic enrgy … … 314 330 ec_pre (idiag) = ec_tot 315 331 C 316 #else 317 write(lunout,*)'diagedyn: Needs Earth physics to function' 318 #endif 332 !#else 333 ELSE 334 write(lunout,*)'diagedyn: set to function with Earth parameters' 335 ENDIF ! of if (planet_type=="earth") 336 !#endif 319 337 ! #endif of #ifdef CPP_EARTH 320 338 RETURN -
LMDZ5/trunk/libf/dyn3dmem/call_calfis_mod.F90
r2221 r2239 227 227 !$OMP BARRIER 228 228 229 #ifdef CPP_PHYS 229 230 CALL calfis_loc(lafin ,jD_cur, jH_cur, & 230 231 ucov,vcov,teta,q,masse,ps,p,pk,phis,phi , & 231 232 du,dv,dteta,dq, & 232 233 flxw, dufi,dvfi,dtetafi,dqfi,dpfi ) 233 234 #endif 234 235 ijb=ij_begin 235 236 ije=ij_end -
LMDZ5/trunk/libf/dyn3dmem/gcm.F
r2230 r2239 13 13 USE parallel_lmdz 14 14 USE infotrac 15 USE mod_interface_dyn_phys 15 #ifdef CPP_PHYS 16 USE mod_interface_dyn_phys, ONLY: init_interface_dyn_phys 17 #endif 16 18 USE mod_hallo 17 19 USE Bands -
LMDZ5/trunk/libf/dyn3dpar/advtrac_p.F90
r1987 r2239 10 10 ! M.A Filiberti (04/2002) 11 11 ! 12 USE parallel_lmdz 13 USE Write_Field_p 14 USE Bands 12 USE parallel_lmdz, ONLY: ij_begin,ij_end,OMP_CHUNK,pole_nord,pole_sud,& 13 setdistrib 14 USE Write_Field_p, ONLY: WriteField_p 15 USE Bands, ONLY: jj_Nb_Caldyn,jj_Nb_vanleer 15 16 USE mod_hallo 16 17 USE Vampir -
LMDZ5/trunk/libf/dyn3dpar/covcont_p.F
r1907 r2239 1 1 SUBROUTINE covcont_p (klevel,ucov, vcov, ucont, vcont ) 2 USE parallel_lmdz 2 USE parallel_lmdz, ONLY: ij_begin,ij_end,OMP_CHUNK, 3 & pole_nord, pole_sud 3 4 IMPLICIT NONE 4 5 -
LMDZ5/trunk/libf/dyn3dpar/gcm.F
r2225 r2239 14 14 USE parallel_lmdz 15 15 USE infotrac 16 USE mod_interface_dyn_phys 16 #ifdef CPP_PHYS 17 USE mod_interface_dyn_phys, ONLY: init_interface_dyn_phys 18 #endif 17 19 USE mod_hallo 18 20 USE Bands -
LMDZ5/trunk/libf/dyn3dpar/leapfrog_p.F
r2221 r2239 825 825 cc$OMP BARRIER 826 826 ! CALL FTRACE_REGION_BEGIN("calfis") 827 #ifdef CPP_PHYS 827 828 CALL calfis_p(lafin ,jD_cur, jH_cur, 828 829 $ ucov,vcov,teta,q,masse,ps,p,pk,phis,phi , 829 830 $ du,dv,dteta,dq, 830 831 $ flxw, dufi,dvfi,dtetafi,dqfi,dpfi ) 832 #endif 831 833 ! CALL FTRACE_REGION_END("calfis") 832 834 ijb=ij_begin -
LMDZ5/trunk/libf/dyn3dpar/mod_hallo.F90
r1907 r2239 1 1 module mod_Hallo 2 USE parallel_lmdz 2 USE mod_const_mpi, ONLY: COMM_LMDZ,MPI_REAL_LMDZ 3 USE parallel_lmdz, ONLY: using_mpi, mpi_size, mpi_rank, omp_chunk, omp_rank, & 4 pole_nord, pole_sud, jj_begin, jj_end, & 5 jj_begin_para, jj_end_para 3 6 implicit none 4 7 logical,save :: use_mpi_alloc -
LMDZ5/trunk/libf/dyn3dpar/parallel_lmdz.F90
r2054 r2239 31 31 integer, save :: omp_size 32 32 !$OMP THREADPRIVATE(omp_rank) 33 34 ! Ehouarn: add "dummy variables" (which are in dyn3d_mem/parallel_lmdz.F90) 35 ! so that calfis_loc compiles even if using dyn3dpar 36 integer,save :: jjb_u 37 integer,save :: jje_u 38 integer,save :: jjnb_u 39 integer,save :: jjb_v 40 integer,save :: jje_v 41 integer,save :: jjnb_v 42 43 integer,save :: ijb_u 44 integer,save :: ije_u 45 integer,save :: ijnb_u 46 47 integer,save :: ijb_v 48 integer,save :: ije_v 49 integer,save :: ijnb_v 33 50 34 51 contains -
LMDZ5/trunk/libf/dynlmdz_phylmd/calfis_loc.F
r2233 r2239 36 36 USE IOPHY 37 37 #endif 38 #ifdef CPP_PARA 38 39 USE parallel_lmdz,ONLY:omp_chunk,using_mpi,jjb_u,jje_u,jjb_v,jje_v 39 40 USE Write_Field 40 41 Use Write_field_p 41 42 USE Times 43 #endif 42 44 USE infotrac, ONLY: nqtot, niadv, tname 43 45 USE control_mod, ONLY: planet_type, nsplit_phys 44 46 47 #ifdef CPP_PARA 45 48 IMPLICIT NONE 46 49 c======================================================================= … … 1186 1189 #endif 1187 1190 ! of #ifdef CPP_PHYS 1188 RETURN 1191 #endif 1192 ! of #ifdef CPP_PARA 1189 1193 END -
LMDZ5/trunk/libf/dynlmdz_phylmd/calfis_p.F
r2233 r2239 33 33 USE IOPHY 34 34 #endif 35 #ifdef CPP_PARA 35 36 USE parallel_lmdz, ONLY : omp_chunk, using_mpi 36 37 USE Write_Field 37 38 Use Write_field_p 38 39 USE Times 40 #endif 39 41 USE infotrac, ONLY: nqtot, niadv, tname 40 42 USE control_mod, ONLY: planet_type, nsplit_phys … … 140 142 REAL,INTENT(OUT) :: pdpsfi(iip1,jjp1) ! tendency on surface pressure (Pa/s) 141 143 144 #ifdef CPP_PARA 142 145 #ifdef CPP_PHYS 143 146 ! Ehouarn: for now calfis_p needs some informations from physics to compile … … 1114 1117 #endif 1115 1118 ! of #ifdef CPP_PHYS 1116 RETURN 1119 #endif 1120 ! of #ifdef CPP_PARA 1117 1121 END -
LMDZ5/trunk/libf/dynlmdz_phylmd/gr_dyn_fi_p.F
r2233 r2239 3 3 ! 4 4 SUBROUTINE gr_dyn_fi_p(nfield,im,jm,ngrid,pdyn,pfi) 5 #ifdef CPP_P HYS5 #ifdef CPP_PARA 6 6 ! Interface with parallel physics, 7 7 USE mod_interface_dyn_phys … … 40 40 c$OMP END DO NOWAIT 41 41 #endif 42 ! of #ifdef CPP_P HYS42 ! of #ifdef CPP_PARA 43 43 RETURN 44 44 END -
LMDZ5/trunk/libf/dynlmdz_phylmd/gr_fi_dyn_p.F
r2233 r2239 3 3 ! 4 4 SUBROUTINE gr_fi_dyn_p(nfield,ngrid,im,jm,pfi,pdyn) 5 #ifdef CPP_P HYS5 #ifdef CPP_PARA 6 6 ! Interface with parallel physics, 7 7 USE mod_interface_dyn_phys … … 52 52 c$OMP END DO NOWAIT 53 53 #endif 54 ! of #ifdef CPP_P HYS54 ! of #ifdef CPP_PARA 55 55 RETURN 56 56 END -
LMDZ5/trunk/libf/dynlmdz_phylmd/iniphysiq.F90
r2233 r2239 148 148 WRITE (lunout, *) ' in the dynamics punjours=', punjours 149 149 WRITE (lunout, *) ' but in the physics RDAY=', rday 150 IF (abs(rday-punjours)>0.01 ) THEN150 IF (abs(rday-punjours)>0.01*punjours) THEN 151 151 ! stop here if the relative difference is more than 1% 152 152 abort_message = 'length of day discrepancy' … … 158 158 WRITE (lunout, *) ' in the dynamics pg=', pg 159 159 WRITE (lunout, *) ' but in the physics RG=', rg 160 IF (abs(rg-pg)>0.01 ) THEN160 IF (abs(rg-pg)>0.01*pg) THEN 161 161 ! stop here if the relative difference is more than 1% 162 162 abort_message = 'gravity discrepancy' … … 168 168 WRITE (lunout, *) ' in the dynamics prad=', prad 169 169 WRITE (lunout, *) ' but in the physics RA=', ra 170 IF (abs(ra-prad)>0.01 ) THEN170 IF (abs(ra-prad)>0.01*prad) THEN 171 171 ! stop here if the relative difference is more than 1% 172 172 abort_message = 'planet radius discrepancy' … … 178 178 WRITE (lunout, *) ' in the dynamics pr=', pr 179 179 WRITE (lunout, *) ' but in the physics RD=', rd 180 IF (abs(rd-pr)>0.01 ) THEN180 IF (abs(rd-pr)>0.01*pr) THEN 181 181 ! stop here if the relative difference is more than 1% 182 182 abort_message = 'reduced gas constant discrepancy' … … 188 188 WRITE (lunout, *) ' in the dynamics pcpp=', pcpp 189 189 WRITE (lunout, *) ' but in the physics RCPD=', rcpd 190 IF (abs(rcpd-pcpp)>0.01 ) THEN190 IF (abs(rcpd-pcpp)>0.01*pcpp) THEN 191 191 ! stop here if the relative difference is more than 1% 192 192 abort_message = 'specific heat discrepancy' -
LMDZ5/trunk/libf/dynlmdz_phylmd/mod_interface_dyn_phys.F90
r2233 r2239 7 7 8 8 9 #ifdef CPP_P HYS9 #ifdef CPP_PARA 10 10 ! Interface with parallel physics, 11 11 CONTAINS … … 55 55 END SUBROUTINE Init_interface_dyn_phys 56 56 #endif 57 ! of #ifdef CPP_P HYS57 ! of #ifdef CPP_PARA 58 58 END MODULE mod_interface_dyn_phys -
LMDZ5/trunk/libf/dynlmdz_phymar/iniphysiq.F90
r2238 r2239 22 22 rg, & ! gravity 23 23 rcpp ! specific heat of the atmosphere 24 USE phyaqua_mod, ONLY: iniaqua24 ! USE phyaqua_mod, ONLY: iniaqua 25 25 IMPLICIT NONE 26 26 ! … … 149 149 150 150 ! Additional initializations for aquaplanets 151 ! $OMP PARALLEL152 if (iflag_phys>=100) then153 call iniaqua(klon_omp,rlatd,rlond,iflag_phys)154 endif155 ! $OMP END PARALLEL151 !!$OMP PARALLEL 152 ! if (iflag_phys>=100) then 153 ! call iniaqua(klon_omp,rlatd,rlond,iflag_phys) 154 ! endif 155 !!$OMP END PARALLEL 156 156 157 157 END -
LMDZ5/trunk/libf/grid/dimension/makdim
r2204 r2239 12 12 fi 13 13 14 if (($1 % 8 != 0)) && (( $# = 3 ))14 if (($1 % 8 != 0)) && (( $# == 3 )) 15 15 then 16 16 echo "The number of longitudes must be a multiple of 8." -
LMDZ5/trunk/libf/phylmd/dyn1d/1DUTILS.h
r2238 r2239 1 #include " ../dyn3d/conf_gcm.F90"2 #include " ../dyn3d_common/q_sat.F"1 #include "conf_gcm.F90" 2 #include "q_sat.F" 3 3 4 4 ! … … 443 443 ! Declarations: 444 444 ! ------------- 445 #include "dimensions.h"446 #include "comconst.h"447 #include "temps.h"445 include "dimensions.h" 446 include "comconst.h" 447 include "temps.h" 448 448 !!#include "control.h" 449 #include "logic.h"450 #include "netcdf.inc"449 include "logic.h" 450 include "netcdf.inc" 451 451 452 452 ! Arguments: … … 587 587 ! Declarations: 588 588 ! ------------- 589 #include "dimensions.h"590 #include "comconst.h"591 #include "temps.h"589 include "dimensions.h" 590 include "comconst.h" 591 include "temps.h" 592 592 !!#include "control.h" 593 #include "logic.h"594 #include "netcdf.inc"593 include "logic.h" 594 include "netcdf.inc" 595 595 596 596 ! Arguments: … … 894 894 IMPLICIT NONE 895 895 896 #include "dimensions.h"897 #include "paramet.h"896 include "dimensions.h" 897 include "paramet.h" 898 898 ! 899 899 !======================================================================= -
LMDZ5/trunk/libf/phylmd/dyn1d/lmdz1d.F90
r2238 r2239 1 #ifdef CPP_1D2 #include "../dyn3d/mod_const_mpi.F90"3 #include "../dyn3d_common/control_mod.F90"4 #include "../dyn3d_common/infotrac.F90"5 #include "../dyn3d_common/disvert.F90"1 !#ifdef CPP_1D 2 !#include "../dyn3d/mod_const_mpi.F90" 3 !#include "../dyn3d_common/control_mod.F90" 4 !#include "../dyn3d_common/infotrac.F90" 5 !#include "../dyn3d_common/disvert.F90" 6 6 7 7 … … 1052 1052 #include "1Dconv.h" 1053 1053 1054 #endif1055 1054 !#endif 1055 -
LMDZ5/trunk/libf/phylmd/etat0_netcdf.F90
r2227 r2239 5 5 ! 6 6 SUBROUTINE etat0_netcdf(ib, masque, phis, letat0) 7 #ifndef CPP_1D 7 8 ! 8 9 !------------------------------------------------------------------------------- … … 535 536 !#endif of #ifdef CPP_EARTH 536 537 RETURN 537 538 #endif 539 !#endif of ifndef CPP_1D 538 540 END SUBROUTINE etat0_netcdf 539 541 ! -
LMDZ5/trunk/libf/phylmd/init_phys_lmdz.F90
r1907 r2239 3 3 ! 4 4 SUBROUTINE Init_Phys_lmdz(iim,jjp1,llm,nb_proc,distrib) 5 USE mod_phys_lmdz_para 6 USE mod_grid_phy_lmdz 5 USE mod_phys_lmdz_para, ONLY: Init_phys_lmdz_para, klon_omp 6 USE mod_grid_phy_lmdz, ONLY: Init_grid_phy_lmdz, nbp_lev 7 7 USE dimphy, ONLY : Init_dimphy 8 8 USE infotrac, ONLY : type_trac -
LMDZ5/trunk/libf/phylmd/limit_netcdf.F90
r2159 r2239 4 4 ! 5 5 SUBROUTINE limit_netcdf(interbar, extrap, oldice, masque) 6 #ifndef CPP_1D 6 7 ! 7 8 !------------------------------------------------------------------------------- … … 660 661 ! of #ifdef CPP_EARTH 661 662 663 #endif 664 ! of #ifndef CPP_1D 662 665 END SUBROUTINE limit_netcdf
Note: See TracChangeset
for help on using the changeset viewer.