Changeset 3736 for trunk/LMDZ.PLUTO/libf/phypluto/phyredem.F90
- Timestamp:
- Apr 25, 2025, 10:57:05 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/phyredem.F90
r3735 r3736 2 2 3 3 implicit none 4 5 INTEGER,SAVE :: nid_restart ! NetCDF file identifier for restartfi.nc file 4 6 5 7 contains … … 15 17 iceradius, dtemisice, phisfi 16 18 use iostart, only : open_restartphy, close_restartphy, & 17 put_var, put_field, length 19 put_var, put_field, length, ldscrpt, ndscrpt 18 20 use mod_grid_phy_lmdz, only : klon_glo 19 21 use planete_mod, only: year_day, periastr, apoastr, peri_day, & … … 81 83 82 84 ! Create physics start file 83 call open_restartphy(filename )85 call open_restartphy(filename,nid_restart) 84 86 85 87 ! tab_cntrl() contains run parameters … … 133 135 tab_cntrl(35) = volcapa ! soil volumetric heat capacity 134 136 135 call put_var( "controle","Control parameters",tab_cntrl)137 call put_var(nid_restart,"controle","Control parameters",tab_cntrl) 136 138 137 139 ! Write the controle array descriptor … … 140 142 141 143 ! Write the mid-layer depths 142 call put_var( "soildepth","Soil mid-layer depth",mlayer)144 call put_var(nid_restart,"soildepth","Soil mid-layer depth",mlayer) 143 145 144 146 ! Write longitudes 145 call put_field( "longitude","Longitudes of physics grid",lonfi)147 call put_field(nid_restart,"longitude","Longitudes of physics grid",lonfi) 146 148 147 149 ! Write latitudes 148 call put_field( "latitude","Latitudes of physics grid",latfi)150 call put_field(nid_restart,"latitude","Latitudes of physics grid",latfi) 149 151 150 152 ! Write mesh areas 151 call put_field( "area","Mesh area",cell_area)153 call put_field(nid_restart,"area","Mesh area",cell_area) 152 154 153 155 ! Write surface geopotential 154 call put_field( "phisfi","Geopotential at the surface",phisfi)156 call put_field(nid_restart,"phisfi","Geopotential at the surface",phisfi) 155 157 156 158 ! Write surface albedo 157 !call put_field( "albedodat","Albedo of bare ground",alb)159 !call put_field(nid_restart,"albedodat","Albedo of bare ground",alb) 158 160 159 161 ! Subgrid topogaphy variables 160 call put_field( "ZMEA","Relief: mean relief",zmea)161 call put_field( "ZSTD","Relief: standard deviation",zstd)162 call put_field( "ZSIG","Relief: sigma parameter",zsig)163 call put_field( "ZGAM","Relief: gamma parameter",zgam)164 call put_field( "ZTHE","Relief: theta parameter",zthe)162 call put_field(nid_restart,"ZMEA","Relief: mean relief",zmea) 163 call put_field(nid_restart,"ZSTD","Relief: standard deviation",zstd) 164 call put_field(nid_restart,"ZSIG","Relief: sigma parameter",zsig) 165 call put_field(nid_restart,"ZGAM","Relief: gamma parameter",zgam) 166 call put_field(nid_restart,"ZTHE","Relief: theta parameter",zthe) 165 167 166 168 ! Close file 167 call close_restartphy 169 call close_restartphy(nid_restart) 168 170 169 171 end subroutine physdem0 … … 197 199 198 200 ! Open file 199 call open_restartphy(filename )201 call open_restartphy(filename, nid_restart) 200 202 201 203 ! First variable to write must be "Time", in order to correctly … … 204 206 205 207 ! Surface temperature 206 call put_field( "tsurf","Surface temperature",tsurf)208 call put_field(nid_restart,"tsurf","Surface temperature",tsurf) 207 209 208 210 ! Soil inertia 209 call put_field( "inertiedat","Soil thermal inertia",inertiesoil)211 call put_field(nid_restart,"inertiedat","Soil thermal inertia",inertiesoil) 210 212 211 213 ! Soil temperature 212 call put_field( "tsoil","Soil temperature",tsoil)214 call put_field(nid_restart,"tsoil","Soil temperature",tsoil) 213 215 214 216 ! Emissivity of the surface 215 call put_field( "emis","Surface emissivity",emis)217 call put_field(nid_restart,"emis","Surface emissivity",emis) 216 218 217 219 ! Albedo of the surface 218 call put_field( "albedodat","Albedo of bare ground",alb)220 call put_field(nid_restart,"albedodat","Albedo of bare ground",alb) 219 221 220 222 ! Planetary Boundary Layer 221 call put_field( "q2","pbl wind variance",q2)223 call put_field(nid_restart,"q2","pbl wind variance",q2) 222 224 223 225 ! cloud fraction and sea ice !AF24: removed … … 228 230 if (nq>0) then 229 231 do iq=1,nq 230 call put_field(n oms(iq),"tracer on surface",qsurf(:,iq))232 call put_field(nid_restart,noms(iq),"tracer on surface",qsurf(:,iq)) 231 233 enddo 232 234 endif ! of if (nq>0) … … 235 237 236 238 ! close file 237 CALL close_restartphy 239 CALL close_restartphy(nid_restart) 238 240 !$OMP BARRIER 239 241
Note: See TracChangeset
for help on using the changeset viewer.