Parametrization data¶
After compilation and before running, one must fill parameters in namelists files and build data files.
namelist files¶
- The namelist variables are dispatches in several files, depending on themes and code organization. There are :
- paramain.txt : general namelist for the configuration (shared with all ranks) (paramain.txt)
- paracom.txt : shared with all ranks (paracom.txt)
- paraspec.txt : different for each rank (paraspec.txt)
- parasubs.txt : need if transport substances (key_substance) (parasubs.txt : namelist for substances)
- parasedim.txt : need if sediment using (key_sedim)(namelist for sediment : parasedim.txt)
- parabiolo.txt : need if using modules for biology (key_biolo) (Paramètres dédiés aux applications ECO-MARS (parabiolo.txt))
- paraconta.txt : need if using modules for contaminant (key_contaminant)
Namelist variables listed by theme¶
Definition of each variable is given into each namelist file
Theme Dates¶
namelist namelist file variable CPPkey Observations nmlmain date_ref = ‘01-Jan-1900 00:00:00‘ Do not change namdate date_start = ‘06/03/2005 00:00:00’date_end = ‘09/03/2005 00:00:00’ simulatin starting datesimulation finishing date namdat3d date_start3d = ‘03/02/2006 12:00:00’date_startagrif = ‘05/02/2008 12:00:00’date_startshift = 0.0 3D run starting date (== or > date_start)AGRIF zoom starting dateRank management
Theme General¶
namelist namelist file variable CPPkey Observations nmlmain comdir = ‘../’jhemisph=1 ./ without rank OR ../if ranks1/-1 in North/South hemisphere nmlhead file_head = ‘../../inputs/head.cool‘confname_mother = ‘cool’confname = ‘cool’suffix = ‘V10.4’ example congif “cool” namriv icon=2 /=2 to make tests on buoyancy impact (3D)namparanum | l_modele2d=.true.cflcrt=0.6 If set to .true., 2D run even though kmax>1
Theme SIGMA¶
namelist namelist file variable CPPkey Observations namgridsig l_equisig=.true.sig(1)=0.05hc = 5. (meters)b_sigtheta_siggrid_anglel_corio_cst=.false. key_grid_rotated (3D)(3D)if generalized sigma0< Bottom control <1 (Genralized sigma)0< Surface control <20 (Genralized sigma)
Theme TIME STEPS¶
namelist namelist file variable CPPkey Observations namparanum dtini=400.d0dtmin=200.d0dtmax=800.d0 dtmin < dt < dtmaxif generalized sigma
Theme TIME INTERPOLATION¶
namelist namelist file variable CPPkey Observations nmlinterp perchrono=0.1tobs=12.0 (hours)l_champroche=.false. Used if reading of onedata.dat fileDO NOT USE
Theme BATHYMETRY¶
namelist namelist file variable CPPkey Observations nambathy file_bathy=’../../inputs/hxhy.cool0’name_bathy_hx=’HX‘name_bathy_hy=’HY‘name_bathy_h0=’H0‘l_bathy_meanlev=.false.name_bathy_meanlev=’nmoy’mslshift=0.0bathy_nbsmooth=0l_bathy_comb=.false.l_bathy_pit=.false.hminim=-9.9hrdef=20.0h0fond=0.01dhj=0.05hminkxky=0.5l_tssubadv_over_smalldepth=.true.hm=1.0l_bathy_save=.false.fwetmin =1.0file_bathy_child key_netcdfkey_netcdfkey_netcdf should not be changed
Theme RESTART¶
namelist namelist file variable CPPkey Observations nmlrestart name_in_dt = ‘DT’name_in_xe = ‘XE‘.... namreprise l_initfromfilefile_init = ‘save.nc‘l_init_restart=.false.l_init_rtime=.false.l_init_rdt=.false.l_init_rssh=.false.l_init_rbtvel=.false.l_init_r3dvel=.false.l_init_rwz=.falsel_init_rturb=.false.l_init_rsal=.false.l_init_rtemp=.false. Set all the boolean to .true.to get exact results whenrestarting from a restart fileafter a break in the simulation.To read an input file preparedfrom extract programspecify which variables you wantto read anddefine l_init_restart=.false.
Theme OUTPUT¶
namelist namelist file variable CPPkey Observations nmloutput l_maxu=.true.name_out_h0=’h0‘‘.... ‘ Maximum velocities are printed onthe screen (iscreen=6) or in thelisting file (iscreen=12) namoutput file_output= ‘./output.dat’iscreen=12iscreenlog=18iwarnlog=16ierrorlog=17out_dirl_out_nc4parl_out_pack -Dkey_MPI_2D Get it emptyThe simulation is stopped if an erroroccurs. The error si described in fileerror_suffix.logTrue : each cpu writes its local domainin a unique global fileTrue : the data values are packed, i.e.saved in short precisionPacked_value = NINT((value- offset)/scale_factor
Theme SAVING¶
namelist namelist file variable CPPkey Observations nasaverestart l_saverestart_1file = .false.l_saverestart_bydate = .false.file_saverestart= ‘save.nc’saverestart_step = 1.0d0
Theme OPEN BOUNDARY CONDITIONS¶
namelist namelist file variable CPPkey Observations namobc l_obc_ogcm_rssh=.false.l_obc_ogcm_rt=.false.l_obc_ogcm_rs=.false.l_obc_ogcm_rc=.false.l_obc_ogcm_ruv=.false.l_obc_ogcm_ruvz=.false.l_obc_relax=.false.obc_coefrel=0.7e-05l_obc_cyc=.true.l_obc_cycl_x/y=.false.l_obc_mars=.true.l_obc_char=.true.l_obc_diri=.true.l_obc_tide=.true.l_obc_ogcm=.true.l_tide_harmcompo=.true.l_obc2drank_save=.true.l_obc_south=.false.file_obc_ogcm_s=’./‘l_obc_north=.false.file_obc_ogcm_n=’./‘l_obc_east=.false.file_obc_ogcm_e=’./‘l_obc_west=.false.file_obc_ogcm_w=’./‘ key_tide_fes2004 or… Reading of data issued from another MARSconfiguration or another model.Data are spatially interpolated off-line withthe use of the program named extract.Data are interpolated on time during the runl_obc_rssh=.true., the ssh relative to themean circulation comes from a coarser modell_obc_cyc=.true., If periodiczonal/meridional periodicityNo gradient of velocity at open boundaryCharacteristics methodDirichletOBCs come from a previous rankOBCs come from an OGCMSaving of open boundary condition (rank)
Theme RIVERS, TRAJECTORIES, TRACKPOINTS, DIAGNOSTIC¶
namelist namelist file variable CPPkey Observations namriv file_river=’../../inputs/.dat’icon=2 namtraj file_trajec=’tache.dat’itypetraj = 3ndtz = 50 namdiag l_diag=.false.date_startdiag = ‘01/01/1996 00:00:00’date_enddiag = ‘02/01/2001 18:00:01’file_diag=’diag.gdg51’l_points=.false.file_point=’points.dat’
Theme TIDE¶
namelist namelist file variable CPPkey Observations namtide l_tide_M2harm=.false.l_tide_M2statcoef=.T.tide_M2coef=0.0file_tide_M2coef=’bidon.dat‘file_tide_harmcp=’../../inputs/fes2004.nc‘or file_tide_harmcp=’../../inputs/schwiderski.nc’l_tide_admittance=.false.l_genpot=.false. key_tide_fes2004key_tide_schwidkey_tide_fes2004key_tide_schwid effective if l_tide_M2harm=.true.effective if l_tide_M2harm=.T. + l_tide_M2statcoef=.F.
Theme ATMOSPHERICAL FIELDS¶
namelist namelist file variable CPPkey Observations nammeteo imeteo_dragtype=0imeteo_exchtype=0paref=101500.0cds=0.0012l_sflx_rpa=.false. ...name_sflx_sat=‘sat‘ ... type of surface drag coefficient0 -> constant value (= cds) if imeteo_exchtype=01 -> large and pond (1981)2 -> smith and banke (1975)3 -> geernaert et al. (1986)4 -> charnock’s relation (1955)dependency on air-sea temperature difference forsurf drag coefficient and thermal exchange coefficient= 0 -> no dependence on tdif= 1 -> as function of tdifimeteo_dragtype and imeteo_exchtype not used ifl_meteo_hom=T or l_meteo_stat=T
Theme WIND FIELD¶
namelist namelist file variable CPPkey Observations nammeteoc l_meteo_stat = .true.l_meteo_hom = .true.wind_veloc = 0.0wind_dir = 275.0file_meteo = ‘bidon.dat’ To use constant wind field or to read a file .dat
Theme RADIATIVE HEAT FLUX¶
namelist namelist file variable CPPkey Observations namthermo l_sflx_radlossbot=.false.l_sflx_solarcst=.true.sflx_solarcst=0.0
Theme STATE EQUATION¶
namelist namelist file variable CPPkey Observations nmlthermo rhoref=1027.34saliref=35.5tetaref=10.0l_stateeq_lin=.true.saliref_lin=35.5tetaref_lin=10.0 3D3D3D
Theme THERMODYNAMICS¶
namelist namelist file variable CPPkey Observations nmlthermo rhoair=1.25chp=3986.0coext=0.1
Theme EQUATION OF MOVEMENT¶
namelist namelist file variable CPPkey Observations namfrot l_incbotstress=.true.botstressmax=3.0 2D
Theme ADVECTION OF TRACERS¶
namelist namelist file variable CPPkey Observations nmladvtra qmax = 8.0qmaxz = 10.0 3D
Theme VISCOSITY¶
namelist namelist file variable CPPkey Observations namvisc l_smagor=.false.vismin=0.1vismax=700.0cosmag=0.27fvisc=5.0sponge_nbcell=5vismul=5.0l_spongs=.false.l_spongn=.false.l_sponge=.false.l_spongw=.false. 3Dvismin, vismax, cosmag used for l_smagor=T
Theme DIFFUSION¶
namelist namelist file variable CPPkey Observations namdiff kx = 1.0ky = 1.0
Theme TURBULENCE¶
namelist namelist file variable CPPkey Observations namturb z0bot=0.0035z0surfhminfrothmaxfrotturb_nbeq =0turb_0eq_option =2turb_2eq_option=2bgdiff=1.0e-6nzinit=1.0e-4kzinit=1.0e-4l_stability=.false. 3D3D2D2D2D3D3Dif turb_nbeq=2 3D3D3D
Theme NETCDF REFERENCE (OCO 1.2)¶
namelist namelist file variable CPPkey Observations nmlconvention riog_valid_min ...=-50.0riog_valid_max ...=5000.0cg_conv_title=CONFcg_conv ....