Changeset 3735


Ignore:
Timestamp:
Apr 23, 2025, 11:35:47 AM (3 months ago)
Author:
afalco
Message:

Pluto: stole controle descriptor from Generic.
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/phypluto/phyredem.F90

    r3640 r3735  
    1414                       emisice, emissiv,             &
    1515                       iceradius, dtemisice, phisfi
    16   use iostart, only : open_restartphy, close_restartphy, & 
     16  use iostart, only : open_restartphy, close_restartphy, &
    1717                      put_var, put_field, length
    1818  use mod_grid_phy_lmdz, only : klon_glo
     
    4141  real,intent(in) :: pzgam(ngrid)
    4242  real,intent(in) :: pzthe(ngrid)
    43  
     43
     44  character(ndscrpt), dimension(ldscrpt), parameter :: dscrpt_tab_cntrl = (/ &
     45      "(1)  Number of atmospheric columns in physics     ", &
     46      "(2)  Number of atmospheric layers                 ", &
     47      "(3)  Final day                                    ", &
     48      "(4)  Final time of day                            ", &
     49      "(5)  Planet radius (m)                            ", &
     50      "(6)  Rotation rate (rad.s-1)                      ", &
     51      "(7)  Gravity (m.s-2)                              ", &
     52      "(8)  Molar mass of the atmosphere (g.mol-1)       ", &
     53      "(9)  = r/Cp           (=kappa in the dynamics)    ", &
     54      "(10) Length of a solar day (s)                    ", &
     55      "(11) Physics time step (s)                        ", &
     56      "(12) -                                            ", &
     57      "(13) -                                            ", &
     58      "(14) Length of year (in solar days)               ", &
     59      "(15) Minimum star-planet distance (AU)            ", &
     60      "(16) Maximum star-planet distance (AU)            ", &
     61      "(17) Date of periastro (sols since N. spring)     ", &
     62      "(18) Obliquity of the planet (deg)                ", &
     63      "(19) Default surface roughness (m)                ", &
     64      "(20) -                                            ", &
     65      "(21) -                                            ", &
     66      "(22) -                                            ", &
     67      "(23) -                                            ", &
     68      "(24) Emissivity of northern cap ~0.95             ", &
     69      "(25) Emissivity of southern cap ~0.95             ", &
     70      "(26) Emissivity of martian soil ~.95              ", &
     71      "(27) -                                            ", &
     72      "(28) -                                            ", &
     73      "(29) -                                            ", &
     74      "(30) -                                            ", &
     75      "(31) Mean scat radius of CO2 snow (north)         ", &
     76      "(32) Mean scat radius of CO2 snow (south)         ", &
     77      "(33) Time scale for snow metamorphism (north)     ", &
     78      "(34) Time scale for snow metamorphism (south)     ", &
     79      "(35) Soil volumetric heat capacity                "/)
    4480  real :: tab_cntrl(length) ! nb "length=100" defined in iostart module
    45  
     81
    4682  ! Create physics start file
    4783  call open_restartphy(filename)
     
    5591  tab_cntrl(1) = float(klon_glo)  ! number of nodes on physics grid
    5692  tab_cntrl(2) = float(nlay) ! number of atmospheric layers
    57   tab_cntrl(3) = day_ini + int(time)         ! final day 
     93  tab_cntrl(3) = day_ini + int(time)         ! final day
    5894  tab_cntrl(4) = time -int(time)            ! final time of day
    5995
     
    73109  tab_cntrl(14) = year_day  ! length of year (sols) ~668.6
    74110  tab_cntrl(15) = periastr  ! min. star-planet distance (AU)
    75   tab_cntrl(16) = apoastr   ! max. star-planet distance (AU) 
     111  tab_cntrl(16) = apoastr   ! max. star-planet distance (AU)
    76112  tab_cntrl(17) = peri_day  ! date of periastron (sols since N. spring)
    77113  tab_cntrl(18) = obliquit  ! Obliquity of the planet (deg) ~23.98
     
    91127  tab_cntrl(34) = dtemisice(2) ! time scale for snow metamorphism (south)
    92128
    93   tab_cntrl(28) = 0. 
     129  tab_cntrl(28) = 0.
    94130  tab_cntrl(29) = 0.
    95131  tab_cntrl(30) = 0.
     
    98134
    99135  call put_var("controle","Control parameters",tab_cntrl)
    100  
     136
     137  ! Write the controle array descriptor
     138  call put_var(nid_restart,"controle_descriptor",&
     139               "Description of control parameters",dscrpt_tab_cntrl)
     140
    101141  ! Write the mid-layer depths
    102142  call put_var("soildepth","Soil mid-layer depth",mlayer)
    103  
     143
    104144  ! Write longitudes
    105145  call put_field("longitude","Longitudes of physics grid",lonfi)
    106  
     146
    107147  ! Write latitudes
    108148  call put_field("latitude","Latitudes of physics grid",latfi)
    109  
     149
    110150  ! Write mesh areas
    111151  call put_field("area","Mesh area",cell_area)
    112  
     152
    113153  ! Write surface geopotential
    114154  call put_field("phisfi","Geopotential at the surface",phisfi)
    115  
     155
    116156  ! Write surface albedo
    117157  !call put_field("albedodat","Albedo of bare ground",alb)
    118  
     158
    119159  ! Subgrid topogaphy variables
    120160  call put_field("ZMEA","Relief: mean relief",zmea)
     
    123163  call put_field("ZGAM","Relief: gamma parameter",zgam)
    124164  call put_field("ZTHE","Relief: theta parameter",zthe)
    125  
     165
    126166  ! Close file
    127167  call close_restartphy
    128  
     168
    129169end subroutine physdem0
    130170
     
    133173                    emis,alb,q2,qsurf)
    134174  ! write time-dependent variable to restart file
    135   use iostart, only : open_restartphy, close_restartphy, & 
     175  use iostart, only : open_restartphy, close_restartphy, &
    136176                      put_var, put_field
    137177  use tracer_h, only: noms
     
    155195
    156196  integer :: iq
    157  
     197
    158198  ! Open file
    159199  call open_restartphy(filename)
     
    162202  ! set time counter in file
    163203  !call put_var("Time","Temps de simulation",time)
    164  
     204
    165205  ! Surface temperature
    166206  call put_field("tsurf","Surface temperature",tsurf)
     
    168208  ! Soil inertia
    169209  call put_field("inertiedat","Soil thermal inertia",inertiesoil)
    170  
     210
    171211  ! Soil temperature
    172212  call put_field("tsoil","Soil temperature",tsoil)
    173  
     213
    174214  ! Emissivity of the surface
    175215  call put_field("emis","Surface emissivity",emis)
     
    177217  ! Albedo of the surface
    178218  call put_field("albedodat","Albedo of bare ground",alb)
    179  
     219
    180220  ! Planetary Boundary Layer
    181221  call put_field("q2","pbl wind variance",q2)
    182  
     222
    183223! cloud fraction and sea ice !AF24: removed
    184224
Note: See TracChangeset for help on using the changeset viewer.