Changeset 5101 for LMDZ6/branches/Amaury_dev/libf/phydev
- Timestamp:
- Jul 23, 2024, 8:22:55 AM (6 months ago)
- Location:
- LMDZ6/branches/Amaury_dev/libf/phydev
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phydev/iophy.F90
r5099 r5101 103 103 104 104 #ifndef CPP_IOIPSL_NO_OUTPUT 105 callflio_dom_set(mpi_size,mpi_rank,ddid,dsg,dsl,dpf,dpl,dhs,dhe, &105 CALL flio_dom_set(mpi_size,mpi_rank,ddid,dsg,dsl,dpf,dpl,dhs,dhe, & 106 106 'APPLE',phys_domain_id) 107 107 #endif … … 157 157 !$OMP MASTER 158 158 if (is_sequential) then 159 callhistbeg(name,nbp_lon,io_lon, jj_nb,io_lat(jj_begin:jj_end), &159 CALL histbeg(name,nbp_lon,io_lon, jj_nb,io_lat(jj_begin:jj_end), & 160 160 1,nbp_lon,1,jj_nb,itau0, zjulian, dtime, nhori, nid_day) 161 161 else 162 callhistbeg(name,nbp_lon,io_lon, jj_nb,io_lat(jj_begin:jj_end), &162 CALL histbeg(name,nbp_lon,io_lon, jj_nb,io_lat(jj_begin:jj_end), & 163 163 1,nbp_lon,1,jj_nb,itau0, zjulian, dtime, nhori, nid_day,phys_domain_id) 164 164 endif -
LMDZ6/branches/Amaury_dev/libf/phydev/phyetat0.F90
r5099 r5101 7 7 8 8 USE dimphy, only: klon 9 USE iostart, ONLY 10 USE iophy, ONLY 11 USE geometry_mod, ONLY 9 USE iostart, ONLY: open_startphy,get_field,close_startphy 10 USE iophy, ONLY: init_iophy_new 11 USE geometry_mod, ONLY: longitude_deg, latitude_deg 12 12 13 13 IMPLICIT NONE -
LMDZ6/branches/Amaury_dev/libf/phydev/phyredem.F90
r5099 r5101 4 4 SUBROUTINE phyredem (fichnom) 5 5 6 USE geometry_mod, ONLY 6 USE geometry_mod, ONLY: longitude_deg, latitude_deg 7 7 USE iostart, ONLY: open_restartphy, close_restartphy, enddef_restartphy, put_field, put_var 8 8 -
LMDZ6/branches/Amaury_dev/libf/phydev/phys_state_var_mod.F90
r5099 r5101 7 7 !====================================================================== 8 8 9 !USE dimphy, only: klon9 !USE dimphy, ONLY: klon 10 10 11 11 … … 17 17 !====================================================================== 18 18 SUBROUTINE phys_state_var_init() 19 ! use dimphy, only: klon19 ! use dimphy, ONLY: klon 20 20 21 21 ! if (.not.allocated(rlat)) then … … 29 29 !====================================================================== 30 30 SUBROUTINE phys_state_var_end 31 ! use dimphy, only: klon31 ! use dimphy, ONLY: klon 32 32 33 33 ! deallocate(rlat,rlon) -
LMDZ6/branches/Amaury_dev/libf/phydev/physiq_mod.F90
r5099 r5101 13 13 d_u, d_v, d_t, d_qx, d_ps) 14 14 15 USE dimphy, only: klon,klev16 USE infotrac_phy, only: nqtot17 USE geometry_mod, only: latitude18 USE comcstphy, only: rg19 USE iophy, only: histbeg_phy,histwrite_phy20 USE ioipsl, only: getin,histvert,histdef,histend,ymds2ju21 USE mod_phys_lmdz_para, only: jj_nb22 USE phys_state_var_mod, only: phys_state_var_init15 USE dimphy, ONLY: klon,klev 16 USE infotrac_phy, ONLY: nqtot 17 USE geometry_mod, ONLY: latitude 18 USE comcstphy, ONLY: rg 19 USE iophy, ONLY: histbeg_phy,histwrite_phy 20 USE ioipsl, ONLY: getin,histvert,histdef,histend,ymds2ju 21 USE mod_phys_lmdz_para, ONLY: jj_nb 22 USE phys_state_var_mod, ONLY: phys_state_var_init 23 23 USE mod_grid_phy_lmdz, ONLY: nbp_lon,nbp_lat 24 24 … … 33 33 integer,intent(in) :: nlon ! number of atmospheric colums 34 34 integer,intent(in) :: nlev ! number of vertical levels (should be =klev) 35 logical,intent(in) :: debut ! signals first callto physics36 logical,intent(in) :: lafin ! signals last callto physics35 logical,intent(in) :: debut ! signals first CALL to physics 36 logical,intent(in) :: lafin ! signals last CALL to physics 37 37 real,intent(in) :: pdtphys ! physics time step (s) 38 38 real,intent(in) :: paprs(klon,klev+1) ! interlayer pressure (Pa) … … 75 75 76 76 ! initializations 77 if (debut) then ! Things to do only for the first call to physics77 if (debut) then ! Things to do only for the first CALL to physics 78 78 ! load initial conditions for physics (including the grid) 79 callphys_state_var_init() ! some initializations, required before calling phyetat080 callphyetat0("startphy.nc")79 CALL phys_state_var_init() ! some initializations, required before calling phyetat0 80 CALL phyetat0("startphy.nc") 81 81 82 82 ! Initialize outputs: … … 84 84 !$OMP MASTER 85 85 iwrite_phys_omp=1 !default: output every physics timestep 86 ! NB: getin() is not threadsafe; only one thread should callit.87 callgetin("iwrite_phys",iwrite_phys_omp)86 ! NB: getin() is not threadsafe; only one thread should CALL it. 87 CALL getin("iwrite_phys",iwrite_phys_omp) 88 88 !$OMP END MASTER 89 89 !$OMP BARRIER … … 93 93 ! compute zjulian for annee0=1979 and month=1 dayref=1 and hour=0.0 94 94 !CALL ymds2ju(annee0, month, dayref, hour, zjulian) 95 callymds2ju(1979, 1, 1, 0.0, zjulian)95 CALL ymds2ju(1979, 1, 1, 0.0, zjulian) 96 96 dtime=pdtphys 97 97 #ifndef CPP_IOIPSL_NO_OUTPUT 98 98 ! Initialize IOIPSL output file 99 callhistbeg_phy("histins.nc",itau0,zjulian,dtime,nhori,nid_hist)99 CALL histbeg_phy("histins.nc",itau0,zjulian,dtime,nhori,nid_hist) 100 100 #endif 101 101 … … 105 105 ! IOIPSL 106 106 ! define vertical coordinate 107 callhistvert(nid_hist,"presnivs","Vertical levels","Pa",klev, &107 CALL histvert(nid_hist,"presnivs","Vertical levels","Pa",klev, & 108 108 presnivs,zvertid,'down') 109 109 ! define variables which will be written in "histins.nc" file 110 callhistdef(nid_hist,'temperature','Atmospheric temperature','K', &110 CALL histdef(nid_hist,'temperature','Atmospheric temperature','K', & 111 111 nbp_lon,jj_nb,nhori,klev,1,klev,zvertid,32, & 112 112 'inst(X)',t_ops,t_wrt) 113 callhistdef(nid_hist,'u','Eastward Zonal Wind','m/s', &113 CALL histdef(nid_hist,'u','Eastward Zonal Wind','m/s', & 114 114 nbp_lon,jj_nb,nhori,klev,1,klev,zvertid,32, & 115 115 'inst(X)',t_ops,t_wrt) 116 callhistdef(nid_hist,'v','Northward Meridional Wind','m/s', &116 CALL histdef(nid_hist,'v','Northward Meridional Wind','m/s', & 117 117 nbp_lon,jj_nb,nhori,klev,1,klev,zvertid,32, & 118 118 'inst(X)',t_ops,t_wrt) 119 callhistdef(nid_hist,'ps','Surface Pressure','Pa', &119 CALL histdef(nid_hist,'ps','Surface Pressure','Pa', & 120 120 nbp_lon,jj_nb,nhori,1,1,1,zvertid,32, & 121 121 'inst(X)',t_ops,t_wrt) 122 122 ! end definition sequence 123 callhistend(nid_hist)123 CALL histend(nid_hist) 124 124 #endif 125 125 … … 166 166 #ifndef CPP_IOIPSL_NO_OUTPUT 167 167 if (modulo(itau,iwrite_phys)==0) then 168 callhistwrite_phy(nid_hist,.false.,"temperature",itau,t)169 callhistwrite_phy(nid_hist,.false.,"u",itau,u)170 callhistwrite_phy(nid_hist,.false.,"v",itau,v)171 callhistwrite_phy(nid_hist,.false.,"ps",itau,paprs(:,1))168 CALL histwrite_phy(nid_hist,.false.,"temperature",itau,t) 169 CALL histwrite_phy(nid_hist,.false.,"u",itau,u) 170 CALL histwrite_phy(nid_hist,.false.,"v",itau,v) 171 CALL histwrite_phy(nid_hist,.false.,"ps",itau,paprs(:,1)) 172 172 endif 173 173 #endif … … 192 192 ! if lastcall, then it is time to write "restartphy.nc" file 193 193 if (lafin) then 194 callphyredem("restartphy.nc")194 CALL phyredem("restartphy.nc") 195 195 endif 196 196
Note: See TracChangeset
for help on using the changeset viewer.