Changeset 6172
- Timestamp:
- Apr 17, 2026, 1:59:33 PM (2 weeks ago)
- Location:
- ICOSA_LMDZ/src/phylmdiso
- Files:
-
- 2 added
- 3 edited
-
icolmdz_etat0.f90 (modified) (3 diffs)
-
icolmdz_initialize.f90 (added)
-
icolmdz_mpipara.F90 (added)
-
icolmdz_param_gravity_wave.f90 (modified) (5 diffs)
-
interface_icosa_lmdz.F90 (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ICOSA_LMDZ/src/phylmdiso/icolmdz_etat0.f90
r5590 r6172 31 31 CALL xios_set_field_attr("temp_db", field_ref="temp_db_legacy") 32 32 CALL xios_set_field_attr("q_db", field_ref="q_db_legacy") 33 IF (using_xios3) CALL xios_set_axis_attr("lev_ecdyn", axis_ref="u_db_legacy::") 33 34 ELSE IF (TRIM(etat0_lmdz) == "ERA5_forcing") THEN 34 35 CALL xios_set_filegroup_attr("read_files_ERA5_forcing", enabled=.TRUE.) … … 41 42 CALL xios_set_field_attr("temp_db", field_ref="temp_db_forcing") 42 43 CALL xios_set_field_attr("q_db", field_ref="q_db_forcing") 44 IF (using_xios3) CALL xios_set_axis_attr("lev_ecdyn", axis_ref="u_db_forcing::") 43 45 ELSE 44 46 PRINT*,"Bad selector for variable <etat0_lmdz> ",TRIM(etat0_lmdz), " option are <legacy> (default), <ERA5_forcing>" … … 64 66 USE omp_para 65 67 USE tracer_icosa_mod 68 USE earth_const, ONLY : g 66 69 IMPLICIT NONE 67 70 TYPE(t_field), POINTER :: f_ps(:) -
ICOSA_LMDZ/src/phylmdiso/icolmdz_param_gravity_wave.f90
r5590 r6172 9 9 10 10 SUBROUTINE init_param_gravity_wave 11 USE getin_mod 12 USE xios_mod 11 USE getin_mod ! from dynamico 12 USE xios_mod ! from dynamico 13 13 IMPLICIT NONE 14 14 CHARACTER(LEN=255) :: param_gw_method … … 133 133 !from icosa_lmdz 134 134 USE distrib_icosa_lmdz_mod 135 USE math_const, ONLY: Pi 135 136 IMPLICIT NONE 136 137 INTEGER :: ibegin, jbegin, ni, nj, ni_glo,nj_glo … … 401 402 INTEGER :: i,j,ij 402 403 403 DO j=jj_begin ,jj_end404 DO i=ii_begin ,ii_end404 DO j=jj_begin-1,jj_end+1 405 DO i=ii_begin-1,ii_end+1 405 406 ij=(j-1)*iim+i 406 407 zstd(ij) = ztz(ij) - zmea(ij)*zmea(ij) 407 IF (zstd(ij)< 0) zstd(ij)=0408 IF (zstd(ij)<=0) zstd(ij)=0 408 409 zstd(ij)=SQRT(zstd(ij)) 409 410 ENDDO … … 415 416 SUBROUTINE compute_sigma_gamma_theta(zxtzx, zytzy, zxtzy, zsig, zgam, zthe) 416 417 USE icosa 418 USE math_const, ONLY : Pi 417 419 IMPLICIT NONE 418 420 REAL(rstd),INTENT(IN) :: zxtzx(iim*jjm) … … 487 489 USE xios_mod 488 490 USE icosa 491 USE math_const, ONLY : Pi 489 492 IMPLICIT NONE 490 493 REAL, ALLOCATABLE :: mask(:,:) , zmea(:,:), zpic(:,:), zval(:,:), ztz(:,:), zstd(:,:) -
ICOSA_LMDZ/src/phylmdiso/interface_icosa_lmdz.F90
r6037 r6172 43 43 44 44 SUBROUTINE pre_initialize_physics 45 USE etat0_plugin_mod 46 USE icolmdz_etat0, ONLY : init_etat0_lmdz => init_etat0, etat0_lmdz =>etat045 USE etat0_plugin_mod, ONLY : init_etat0_plugin, etat0_plugin 46 USE icolmdz_etat0, ONLY : init_etat0, etat0 47 47 USE icolmdz_param_gravity_wave, ONLY: init_param_gravity_wave 48 48 USE isotopes_mod, ONLY : using_iso 49 49 IMPLICIT NONE 50 50 !$OMP PARALLEL 51 52 init_etat0_plugin => init_etat0_lmdz 53 etat0_plugin => etat0_lmdz 54 51 init_etat0_plugin => init_etat0 52 etat0_plugin => etat0 55 53 CALL init_param_gravity_wave 56 54 !$OMP END PARALLEL … … 214 212 USE mpipara 215 213 USE disvert_mod 216 USE earth_const , ONLY: scale_height214 USE earth_const !, ONLY: scale_height 217 215 USE xios_mod 218 216 USE time_mod , init_time_icosa=> init_time … … 233 231 USE readTracFiles_mod, ONLY: delPhase 234 232 ! USE phyaqua_mod, ONLY : iniaqua 235 233 USE phystokenc_mod, ONLY : init_phystokenc ! use to generate mass flow files for offline mode 236 234 237 235 IMPLICIT NONE … … 270 268 INTEGER :: nq 271 269 INTEGER :: nqo, nbtr, nbtr_inca 272 CHARACTER(len=256) :: type_trac270 CHARACTER(len=256) :: type_trac 273 271 INTEGER,ALLOCATABLE :: conv_flg(:) ! conv_flg(it)=0 : convection desactivated for tracer number it 274 272 INTEGER,ALLOCATABLE :: pbl_flg(:) ! pbl_flg(it)=0 : boundary layer diffusion desactivaded for tracer number it … … 288 286 CHARACTER(LEN=3) :: descrq(30) !--- Advection scheme description tags 289 287 logical, save :: first = .TRUE. 288 289 LOGICAL :: offline 290 INTEGER :: offline_time 290 291 291 292 … … 475 476 CALL init_time_lmdz(annee_ref, day_ref, day_ini, start_time, int(ndays), physics_timestep) 476 477 478 479 ! Init Offline mode 480 offline = .FALSE. 481 CALL getin('offline',offline) 482 483 ! Choosing storage frequencies for offline mass flow files 484 ! offline_time=12 2h=1day/12 485 ! offline_time=8 3h=1day/8 486 offline_time = 8 487 CALL getin('offline_time',offline_time) 488 489 ! Copy over "offline" settings 490 ! Flag and number of time steps for flux calculation and output 491 CALL init_phystokenc(offline,int(day_length/(offline_time*physics_timestep))) 492 493 477 494 ! Additional initializations for aquaplanets 478 495 ! CALL getin("iflag_phys",iflag_phys) … … 540 557 USE checksum_mod 541 558 USE vorticity_mod 559 USE earth_const 542 560 USE tracer_icosa_mod 543 561 USE compute_transport_mod … … 767 785 ENDDO 768 786 ENDIF 769 770 787 ENDDO 771 788 … … 1261 1278 REAL(rstd),INTENT(INOUT) :: q(klon, klev ,nqtot) 1262 1279 REAL(rstd),INTENT(IN) :: q_ave(klev, nqtot) 1263 REAL(rstd),INTENT(IN) :: p(klon, klev )1280 REAL(rstd),INTENT(IN) :: p(klon, klev+1) 1264 1281 REAL(rstd) :: deltap(klon, klev) 1265 1282 INTEGER :: iq, iq_g
Note: See TracChangeset
for help on using the changeset viewer.
