Changeset 1442 for trunk/LMDZ.COMMON
- Timestamp:
- Jun 4, 2015, 4:23:32 PM (9 years ago)
- Location:
- trunk/LMDZ.COMMON/libf
- Files:
-
- 2 added
- 2 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/dyn3d/top_bound.F
r1422 r1442 42 42 ! NB: top_bound sponge is only called from leapfrog if ok_strato=.true. 43 43 44 ! sponge parameters: (loaded/set in conf_gcm.F ; stored in comconst .h)44 ! sponge parameters: (loaded/set in conf_gcm.F ; stored in comconst_mod) 45 45 ! iflag_top_bound=0 for no sponge 46 46 ! iflag_top_bound=1 for sponge over 4 topmost layers -
trunk/LMDZ.COMMON/libf/dyn3d_common/disvert.F90
r1422 r1442 25 25 ! Triggered by the levels number llm. 26 26 !------------------------------------------------------------------------------- 27 ! Read in "comvert .h":27 ! Read in "comvert_mod": 28 28 29 29 ! pa !--- vertical coordinate is close to a PRESSURE COORDINATE FOR P … … 31 31 32 32 ! preff !--- REFERENCE PRESSURE (101325 Pa) 33 ! Written in "comvert .h":33 ! Written in "comvert_mod": 34 34 ! ap(llm+1), bp(llm+1) !--- Ap, Bp HYBRID COEFFICIENTS AT INTERFACES 35 35 ! aps(llm), bps(llm) !--- Ap, Bp HYBRID COEFFICIENTS AT MID-LAYERS -
trunk/LMDZ.COMMON/libf/dyn3dpar/top_bound_p.F
r1422 r1442 41 41 ! NB: top_bound sponge is only called from leapfrog if ok_strato=.true. 42 42 43 ! sponge parameters: (loaded/set in conf_gcm.F ; stored in comconst .h)43 ! sponge parameters: (loaded/set in conf_gcm.F ; stored in comconst_mod) 44 44 ! iflag_top_bound=0 for no sponge 45 45 ! iflag_top_bound=1 for sponge over 4 topmost layers -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phytitan/ini_archive.F
r1403 r1442 27 27 28 28 USE control_mod 29 USE comconst_mod 30 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 31 . aps,bps,scaleheight,pseudoalt, 32 . disvert_type,pressure_exner 29 33 30 34 implicit none … … 32 36 #include "dimensions.h" 33 37 #include "paramet.h" 34 #include "comconst.h"35 #include "comvert.h"36 38 #include "comgeom.h" 37 39 #include "temps.h" -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phytitan/newstart.F
r1403 r1442 24 24 use exner_hyb_m, only: exner_hyb 25 25 use exner_milieu_m, only: exner_milieu 26 USE comconst_mod 27 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 28 . aps,bps,scaleheight,pseudoalt, 29 . disvert_type,pressure_exner 26 30 27 31 implicit none … … 29 33 #include "dimensions.h" 30 34 #include "paramet.h" 31 #include "comconst.h"32 35 #include "comdissnew.h" 33 #include "comvert.h"34 36 #include "comgeom2.h" 35 37 #include "logic.h" -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phytitan/readstart.F
r1403 r1442 6 6 7 7 USE infotrac 8 USE comconst_mod 9 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 10 . aps,bps,scaleheight,pseudoalt, 11 . disvert_type,pressure_exner 8 12 9 13 IMPLICIT NONE … … 27 31 #include "paramet.h" 28 32 #include "temps.h" 29 #include "comconst.h"30 #include "comvert.h"31 33 #include "comgeom.h" 32 34 #include "ener.h" -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phytitan/start2archive.F
r1403 r1442 21 21 use exner_hyb_m, only: exner_hyb 22 22 use exner_milieu_m, only: exner_milieu 23 USE comconst_mod 24 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 25 . aps,bps,scaleheight,pseudoalt, 26 . disvert_type,pressure_exner 23 27 24 28 implicit none … … 26 30 #include "dimensions.h" 27 31 #include "paramet.h" 28 #include "comconst.h"29 32 #include "comdissnew.h" 30 #include "comvert.h"31 33 #include "comgeom.h" 32 34 #include "logic.h" -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phytitan/startvar.F90
r1403 r1442 251 251 252 252 use assert_eq_m, only: assert_eq 253 253 USE comconst_mod 254 254 255 255 !------------------------------------------------------------------------------- … … 272 272 #include "iniprint.h" 273 273 #include "dimensions.h" 274 #include "comconst.h"275 274 #include "paramet.h" 276 275 #include "comgeom2.h" … … 363 362 ! 364 363 SUBROUTINE start_init_orog(iml,jml,lon_in,lat_in) 365 ! 364 USE comconst_mod 365 366 366 !------------------------------------------------------------------------------- 367 367 ! Arguments: … … 372 372 ! Local variables: 373 373 #include "iniprint.h" 374 #include "comconst.h"375 374 CHARACTER(LEN=25) :: title 376 375 CHARACTER(LEN=120) :: orofname -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phytitan/write_archive.F
r1403 r1442 33 33 34 34 USE control_mod 35 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 36 . aps,bps,scaleheight,pseudoalt, 37 . disvert_type,pressure_exner 35 38 36 39 implicit none … … 38 41 #include "dimensions.h" 39 42 #include "paramet.h" 40 #include "comvert.h"41 43 #include "comgeom.h" 42 44 #include "description.h" -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phytitan/writerestart.F
r1403 r1442 4 4 USE IOIPSL 5 5 USE infotrac 6 USE comconst_mod 7 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 8 . aps,bps,scaleheight,pseudoalt, 9 . disvert_type,pressure_exner 6 10 7 11 IMPLICIT NONE … … 14 18 #include "dimensions.h" 15 19 #include "paramet.h" 16 #include "comconst.h"17 #include "comvert.h"18 20 #include "comgeom.h" 19 21 #include "ener.h" -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phyvenus/ini_archive.F
r1403 r1442 27 27 28 28 USE control_mod 29 USE comconst_mod 30 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 31 . aps,bps,scaleheight,pseudoalt, 32 . disvert_type,pressure_exner 29 33 30 34 implicit none … … 32 36 #include "dimensions.h" 33 37 #include "paramet.h" 34 #include "comconst.h"35 #include "comvert.h"36 38 #include "comgeom.h" 37 39 #include "temps.h" -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phyvenus/newstart.F
r1403 r1442 24 24 use exner_hyb_m, only: exner_hyb 25 25 use exner_milieu_m, only: exner_milieu 26 USE comconst_mod 27 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 28 . aps,bps,scaleheight,pseudoalt, 29 . disvert_type,pressure_exner 26 30 27 31 implicit none … … 29 33 #include "dimensions.h" 30 34 #include "paramet.h" 31 #include "comconst.h"32 35 #include "comdissnew.h" 33 #include "comvert.h"34 36 #include "comgeom2.h" 35 37 #include "logic.h" … … 140 142 integer, dimension(4) :: start,counter 141 143 REAL phisinverse(iip1,jjp1) ! geopotentiel au sol avant inversion 142 logical topoflag,albedoflag,razvitu,razvitv 144 logical topoflag,notopo,albedoflag,razvitu,razvitv,uini 145 logical razTS,raztemp 146 real, dimension(:), allocatable :: tvira,dzst,zkm 143 147 real albedo 144 148 … … 880 884 topoflag = . FALSE . 881 885 CALL getin('topoflag',topoflag) 886 ! notopo = T: we go back to flat surface 887 notopo = .FALSE. 888 CALL getin('notopo',notopo) 882 889 883 890 print*,zmeaold(2,1:10) … … 906 913 . 0.0,jjm,rlonu,rlatv,.true.) 907 914 915 ELSE IF ( notopo ) THEN 916 print*,'Flattening the topography' 917 phis=0. 918 zmea=0. 919 zstd=0. 920 zsig=0. 921 zgam=0. 922 zthe=0. 923 zpic=0. 924 zval=0. 908 925 ELSE 909 926 print*,'Using existing topography' … … 950 967 951 968 c Temperature de surface 952 call interp_horiz (tsurfold,tsurfS,imold,jmold,iim,jjm,1, 953 & rlonuold,rlatvold,rlonu,rlatv) 954 call gr_dyn_fi (1,iip1,jjp1,ngridmx,tsurfS,tsurf) 955 c write(44,*) 'tsurf', tsurf 969 ! razTS need to be in the specific run.def for newstart 970 razTS = . FALSE . 971 CALL getin('razTS',razTS) 972 973 if (razTS) then 974 tsurf(:) = 735. 975 else 976 call interp_horiz (tsurfold,tsurfS,imold,jmold,iim,jjm,1, 977 & rlonuold,rlatvold,rlonu,rlatv) 978 call gr_dyn_fi (1,iip1,jjp1,ngridmx,tsurfS,tsurf) 979 c write(44,*) 'tsurf', tsurf 980 endif 956 981 957 982 c Temperature du sous-sol 958 call interp_horiz(tsoilold,tsoilS, 983 if (razTS) then 984 tsoil(:,:)=735. 985 else 986 call interp_horiz(tsoilold,tsoilS, 959 987 & imold,jmold,iim,jjm,nsoilmx, 960 988 & rlonuold,rlatvold,rlonu,rlatv) 961 call gr_dyn_fi (nsoilmx,iip1,jjp1,ngridmx,tsoilS,tsoil) 962 c write(45,*) 'tsoil',tsoil 989 call gr_dyn_fi (nsoilmx,iip1,jjp1,ngridmx,tsoilS,tsoil) 990 c write(45,*) 'tsoil',tsoil 991 endif 963 992 964 993 ! CHANGING ALBEDO: may be done through run.def … … 1050 1079 CALL pression(ip1jmp1, ap, bp, ps, p3d) 1051 1080 if (disvert_type==1) then 1052 CALL exner_hyb( ip1jmp1, ps, p3d, 1081 CALL exner_hyb( ip1jmp1, ps, p3d,pks, pk, pkf ) 1053 1082 else ! we assume that we are in the disvert_type==2 case 1054 1083 CALL exner_milieu( ip1jmp1, ps, p3d, pks, pk, pkf ) … … 1067 1096 c enddo 1068 1097 1098 ! raztemp need to be in the specific run.def for newstart 1099 raztemp = . FALSE . 1100 CALL getin('raztemp',raztemp) 1101 1102 ! Reinitialisation of temperature to VIRA profile lisse 1103 if (raztemp) then 1104 1105 allocate(tvira(0:lmold),dzst(0:lmold),zkm(0:lmold)) 1106 print*,"Venus = temperature initiale imposee = VIRA lisse " 1107 dzst(0) = 0.0 1108 dzst(1) = -log(p3d(1,1,2)/preff)*r/g 1109 do l=2,lmold 1110 dzst(l)=-log(p3d(1,1,l+1)/p3d(1,1,l))*r/g 1111 enddo 1112 tvira(0) = 735. 1113 zkm(0) = 0.0 1114 do l=1,lmold 1115 zkm(l) = zkm(l-1)+tvira(l-1)*dzst(l)/1000. ! approx avec T(l-1) 1116 if(zkm(l).lt.60.) then 1117 tvira(l)=735.-7.95*zkm(l) 1118 else 1119 tvira(l)=AMAX1(258.-3.*(zkm(l)-60.),168.) 1120 endif 1121 zkm(l) = zkm(l-1)+(tvira(l-1)+tvira(l))/2.*dzst(l)/1000. 1122 enddo 1123 do l=1,lmold 1124 do j=1,jmold+1 1125 do i=1,imold+1 1126 told(i,j,l)=tvira(l) 1127 enddo 1128 enddo 1129 enddo 1130 endif ! end raztemp 1131 1069 1132 write (*,*) 'told ', told (1,jmold+1,1) ! INFO 1070 1133 call interp_vert … … 1087 1150 teta(iip1,:,:) = teta(1,:,:) 1088 1151 1152 ! RESETING U TO uini: may be done through run.def 1153 uini = .FALSE. 1154 CALL getin('uini',uini) 1089 1155 ! RESETING U TO 0: may be done through run.def 1090 1156 razvitu = . FALSE . … … 1110 1176 call scal_wind(us,vs,unat,vnat) 1111 1177 ! Reseting u=0 1112 if (razvitu) then 1113 unat(:,:,:) = 0. 1178 if ((razvitu).and..not.(uini)) then 1179 unat(:,:,:) = 0. 1180 endif 1181 ! Reseting u=uini 1182 if ((uini).and..not.(razvitu)) then 1183 do j=1,jjp1 1184 do l=1,llm 1185 if (p3d(1,j,l).gt.3e3) then 1186 unat(:,j,l) = -110./8.03*log(p3d(:,j,l)/9.2e6) 1187 else 1188 unat(:,j,l) = 110./6.62*(log(p3d(:,j,l)/9.2e6)+14.65) 1189 endif 1190 if (abs(rlatS(1,j)).gt.50.) then 1191 unat(:,j,l)=unat(:,j,l)*(90.-abs(rlatS(:,j)))/40. 1192 endif 1193 enddo 1194 enddo 1195 endif 1196 ! incompatible options 1197 if ((uini).and.(razvitu)) then 1198 print*,"You have to choose between razvitu and uini..." 1199 stop 1114 1200 endif 1115 1201 write (*,*) 'unat ', unat (1,2,1) ! INFO 1202 1116 1203 do l=1,llm 1117 1204 do j = 1, jjp1 -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phyvenus/readstart.F
r1403 r1442 6 6 7 7 USE infotrac 8 USE comconst_mod 9 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 10 . aps,bps,scaleheight,pseudoalt, 11 . disvert_type,pressure_exner 8 12 9 13 IMPLICIT NONE … … 27 31 #include "paramet.h" 28 32 #include "temps.h" 29 #include "comconst.h"30 #include "comvert.h"31 33 #include "comgeom.h" 32 34 #include "ener.h" -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phyvenus/start2archive.F
r1403 r1442 21 21 use exner_hyb_m, only: exner_hyb 22 22 use exner_milieu_m, only: exner_milieu 23 USE comconst_mod 24 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 25 . aps,bps,scaleheight,pseudoalt, 26 . disvert_type,pressure_exner 23 27 24 28 implicit none … … 26 30 #include "dimensions.h" 27 31 #include "paramet.h" 28 #include "comconst.h"29 32 #include "comdissnew.h" 30 #include "comvert.h"31 33 #include "comgeom.h" 32 34 #include "logic.h" -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phyvenus/startvar.F90
r1403 r1442 251 251 252 252 use assert_eq_m, only: assert_eq 253 253 USE comconst_mod 254 254 255 255 !------------------------------------------------------------------------------- … … 272 272 #include "iniprint.h" 273 273 #include "dimensions.h" 274 #include "comconst.h"275 274 #include "paramet.h" 276 275 #include "comgeom2.h" … … 363 362 ! 364 363 SUBROUTINE start_init_orog(iml,jml,lon_in,lat_in) 365 ! 364 365 USE comconst_mod 366 366 367 !------------------------------------------------------------------------------- 367 368 ! Arguments: … … 372 373 ! Local variables: 373 374 #include "iniprint.h" 374 #include "comconst.h"375 375 CHARACTER(LEN=25) :: title 376 376 CHARACTER(LEN=120) :: orofname -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phyvenus/write_archive.F
r1403 r1442 33 33 34 34 USE control_mod 35 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 36 . aps,bps,scaleheight,pseudoalt, 37 . disvert_type,pressure_exner 35 38 36 39 implicit none … … 38 41 #include "dimensions.h" 39 42 #include "paramet.h" 40 #include "comvert.h"41 43 #include "comgeom.h" 42 44 #include "description.h" -
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phyvenus/writerestart.F
r1403 r1442 4 4 USE IOIPSL 5 5 USE infotrac 6 USE comconst_mod 7 USE comvert_mod, ONLY: ap,bp,presnivs,pa,preff,nivsigs,nivsig, 8 . aps,bps,scaleheight,pseudoalt, 9 . disvert_type,pressure_exner 6 10 7 11 IMPLICIT NONE … … 14 18 #include "dimensions.h" 15 19 #include "paramet.h" 16 #include "comconst.h"17 #include "comvert.h"18 20 #include "comgeom.h" 19 21 #include "ener.h"
Note: See TracChangeset
for help on using the changeset viewer.