Changeset 5116 for LMDZ6/branches/Amaury_dev/libf/dyn3d/iniacademic.F90
- Timestamp:
- Jul 24, 2024, 2:54:37 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/dyn3d/iniacademic.F90
r5106 r5116 7 7 USE infotrac, ONLY: nqtot, niso, iqIsoPha, tracers, getKey, isoName 8 8 USE control_mod, ONLY: day_step,planet_type 9 use exner_hyb_m, only: exner_hyb10 use exner_milieu_m, only: exner_milieu9 use exner_hyb_m, ONLY: exner_hyb 10 use exner_milieu_m, ONLY: exner_milieu 11 11 USE IOIPSL, ONLY: getin 12 12 USE Write_Field … … 60 60 INTEGER i,j,l,lsup,ij, iq, iName, iPhase, iqParent 61 61 62 integer:: nid_relief,varid,ierr62 INTEGER :: nid_relief,varid,ierr 63 63 real, dimension(iip1,jjp1) :: relief 64 64 … … 75 75 LOGICAL,PARAMETER :: tnat1=.TRUE. 76 76 77 character(len=*),parameter :: modname="iniacademic"78 character(len=80) :: abort_message77 CHARACTER(LEN=*),parameter :: modname="iniacademic" 78 CHARACTER(LEN=80) :: abort_message 79 79 80 80 ! Sanity check: verify that options selected by user are not incompatible 81 if ((iflag_phys==1).and. .not. read_start) then82 write(lunout,*) trim(modname)," error: if read_start is set to ", &81 if ((iflag_phys==1).and. .not. read_start) THEN 82 WRITE(lunout,*) trim(modname)," error: if read_start is set to ", & 83 83 " false then iflag_phys should not be 1" 84 write(lunout,*) "You most likely want an aquaplanet initialisation", &84 WRITE(lunout,*) "You most likely want an aquaplanet initialisation", & 85 85 " (iflag_phys >= 100)" 86 86 CALL abort_gcm(modname,"incompatible iflag_phys==1 and read_start==.FALSE.",1) … … 109 109 ang0 = 0. 110 110 111 if (llm == 1) then111 if (llm == 1) THEN 112 112 ! specific initializations for the shallow water case 113 113 kappa=1 … … 164 164 CALL pression ( ip1jmp1, ap, bp, ps, p ) 165 165 166 if (pressure_exner) then166 if (pressure_exner) THEN 167 167 CALL exner_hyb( ip1jmp1, ps, p, pks, pk) 168 168 else … … 172 172 ENDIF 173 173 174 if (llm == 1) then174 if (llm == 1) THEN 175 175 ! initialize fields for the shallow water case, if required 176 if (.not.read_start) then176 if (.not.read_start) THEN 177 177 phis(:)=0. 178 178 q(:,:,:)=0 … … 181 181 endif 182 182 183 academic_case: if (iflag_phys >= 2) then183 academic_case: if (iflag_phys >= 2) THEN 184 184 ! initializations 185 185 … … 249 249 tetajl(j,l)=teta0-delt_y*ddsin*ddsin+eps*ddsin & 250 250 -delt_z*(1.-ddsin*ddsin)*log(zsig) 251 if (planet_type=="giant") then251 if (planet_type=="giant") THEN 252 252 tetajl(j,l)=teta0+(delt_y* & 253 253 ((sin(rlatu(j)*3.14159*eps+0.0001))**2) & … … 293 293 294 294 ! winds 295 if (ok_geost) then295 if (ok_geost) THEN 296 296 CALL ugeostr(phi,ucov) 297 297 else … … 301 301 302 302 ! bulk initialization of tracers 303 if (planet_type=="earth") then303 if (planet_type=="earth") THEN 304 304 ! Earth: first two tracers will be water 305 305 do iq=1,nqtot … … 315 315 iqParent = tracers(iq)%iqParent 316 316 IF(tracers(iq)%iso_iZone == 0) THEN 317 if (tnat1) then317 if (tnat1) THEN 318 318 tnat=1.0 319 319 alpha_ideal=1.0 320 write(*,*) 'Attention dans iniacademic: alpha_ideal=1'320 WRITE(*,*) 'Attention dans iniacademic: alpha_ideal=1' 321 321 else 322 322 IF(getKey('tnat', tnat, isoName(iName)) .OR. getKey('alpha', alpha_ideal, isoName(iName))) &
Note: See TracChangeset
for help on using the changeset viewer.