Changeset 5117 for LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd
- Timestamp:
- Jul 24, 2024, 4:23:34 PM (6 months ago)
- Location:
- LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/callphysiq_mod.F90
r5116 r5117 69 69 70 70 !$OMP MASTER 71 if(ok_dyn_xios) THEN71 IF (ok_dyn_xios) THEN 72 72 CALL xios_get_current_context(dyn3d_ctx_handle) 73 endif73 ENDIF 74 74 !$OMP END MASTER 75 75 … … 99 99 ! switching back to LMDZDYN context 100 100 !$OMP MASTER 101 if(ok_dyn_xios) THEN101 IF (ok_dyn_xios) THEN 102 102 CALL xios_set_current_context(dyn3d_ctx_handle) 103 endif103 ENDIF 104 104 !$OMP END MASTER 105 105 -
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/ce0l.F90
r5116 r5117 73 73 74 74 #ifdef CPP_PARA 75 integerierr75 INTEGER ierr 76 76 #else 77 77 ! for iniphysiq in serial mode -
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/etat0dyn_netcdf.F90
r5116 r5117 39 39 USE comvert_mod, ONLY: ap, bp, preff, pressure_exner 40 40 USE temps_mod, ONLY: annee_ref, day_ref, itau_dyn, itau_phy, start_time 41 USE strings_mod, ONLY: strLower41 USE lmdz_strings, ONLY: strLower 42 42 43 43 IMPLICIT NONE … … 78 78 USE lmdz_filtreg 79 79 USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA 80 USE lmdz_q_sat, ONLY: q_sat 80 81 IMPLICIT NONE 81 82 !------------------------------------------------------------------------------- -
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90
r5116 r5117 539 539 do j=2,jmp1-1 540 540 PRINT*,'avant if ',cos(rlatu(j)),coslat0 541 if(cos(rlatu(j))<coslat0) THEN541 IF (cos(rlatu(j))<coslat0) THEN 542 542 ! nb de pts affectes par le filtrage de part et d'autre du pt 543 543 ifiltre=(coslat0/cos(rlatu(j))-1.)/2. … … 548 548 wwf(ifiltre+1)=(coslat0/cos(rlatu(j))-1.)/2.-ifiltre 549 549 do i=1,imp1-1 550 if(masque(i,j)>0.9) THEN550 IF (masque(i,j)>0.9) THEN 551 551 ssz=phis(i,j) 552 552 do ifi=1,ifiltre+1 553 553 ii=i+ifi 554 if(ii>imp1-1) ii=ii-imp1+1554 IF (ii>imp1-1) ii=ii-imp1+1 555 555 ssz=ssz+wwf(ifi)*phis(ii,j) 556 556 ii=i-ifi 557 if(ii<1) ii=ii+imp1-1557 IF (ii<1) ii=ii+imp1-1 558 558 ssz=ssz+wwf(ifi)*phis(ii,j) 559 559 enddo -
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/limit_netcdf.f90
r5116 r5117 378 378 REAL :: chmin, chmax, timeday, al 379 379 INTEGER ierr, idx 380 integern_extrap ! number of extrapolated points381 logicalskip380 INTEGER n_extrap ! number of extrapolated points 381 LOGICAL skip 382 382 383 383 !------------------------------------------------------------------------------ … … 599 599 CALL pchfe_95(timeyear, champtime(i, j, :), yder, skip, & 600 600 arth(0.5, real(ndays_in) / ndays, ndays), champan(i, j, :), ierr) 601 if(ierr < 0) CALL abort_physic("get_2Dfield", "", 1)601 IF (ierr < 0) CALL abort_physic("get_2Dfield", "", 1) 602 602 n_extrap = n_extrap + ierr 603 603 END DO -
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/test_disvert_m.F90
r5116 r5117 13 13 ! the surface pressure, which sample possible values on Earth. 14 14 15 useexner_hyb_m, ONLY: exner_hyb16 uselmdz_vertical_layers, ONLY: ap,bp,preff17 usecomconst_mod, ONLY: kappa, cpp15 USE exner_hyb_m, ONLY: exner_hyb 16 USE lmdz_vertical_layers, ONLY: ap,bp,preff 17 USE comconst_mod, ONLY: kappa, cpp 18 18 USE lmdz_abort_physic, ONLY: abort_physic 19 19 … … 22 22 23 23 ! Local: 24 integerl, i25 integer, parameter:: ngrid = 726 realp(ngrid, llm + 1) ! pressure at half-level, in Pa27 real pks(ngrid) ! exner function at the surface, in J K-1 kg-128 real pk(ngrid, llm) ! exner function at full level, in J K-1 kg-129 realps(ngrid) ! surface pressure, in Pa30 realp_lay(ngrid, llm) ! pressure at full level, in Pa31 realdelta_ps ! in Pa24 INTEGER l, i 25 INTEGER, parameter:: ngrid = 7 26 REAL p(ngrid, llm + 1) ! pressure at half-level, in Pa 27 REAL pks(ngrid) ! exner function at the surface, in J K-1 kg-1 28 REAL pk(ngrid, llm) ! exner function at full level, in J K-1 kg-1 29 REAL ps(ngrid) ! surface pressure, in Pa 30 REAL p_lay(ngrid, llm) ! pressure at full level, in Pa 31 REAL delta_ps ! in Pa 32 32 33 33 !--------------------- … … 42 42 43 43 ! Are pressure values in the right order? 44 if (any(p(:, :llm) <= p_lay .or. p_lay <= p(:, 2:))) THEN44 IF (any(p(:, :llm) <= p_lay .OR. p_lay <= p(:, 2:))) THEN 45 45 ! List details and stop: 46 46 do l = 1, llm 47 47 do i = 1, ngrid 48 if(p(i, l) <= p_lay(i, l)) THEN48 IF (p(i, l) <= p_lay(i, l)) THEN 49 49 print 1000, "ps = ", ps(i) / 100., "hPa, p(level ", l, & 50 50 ") = ", p(i, l) / 100., " hPa <= p(layer ", l, ") = ", & 51 51 p_lay(i, l) / 100., " hPa" 52 52 end if 53 if(p_lay(i, l) <= p(i, l + 1)) THEN53 IF (p_lay(i, l) <= p(i, l + 1)) THEN 54 54 print 1000, "ps = ", ps(i) / 100., "hPa, p(layer ", l, ") = ", & 55 55 p_lay(i, l) / 100., " hPa <= p(level ", l + 1, ") = ", &
Note: See TracChangeset
for help on using the changeset viewer.