<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php?feed=atom&amp;namespace=0&amp;title=Special%3ANewPages</id>
		<title>Planets - New pages [en]</title>
		<link rel="self" type="application/atom+xml" href="http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php?feed=atom&amp;namespace=0&amp;title=Special%3ANewPages"/>
		<link rel="alternate" type="text/html" href="http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php/Special:NewPages"/>
		<updated>2026-09-13T12:17:00Z</updated>
		<subtitle>From Planets</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php/The_1D_run.def_Input_File</id>
		<title>The 1D run.def Input File</title>
		<link rel="alternate" type="text/html" href="http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php/The_1D_run.def_Input_File"/>
				<updated>2026-06-12T14:05:44Z</updated>
		
		<summary type="html">&lt;p&gt;Jbclement: Created page with &amp;quot;== The run.def input file and its format ==  === some general comments and disambiguation to start with === This pages specifically focuses on the ''run.def'' file used by the...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== The run.def input file and its format ==&lt;br /&gt;
&lt;br /&gt;
=== some general comments and disambiguation to start with ===&lt;br /&gt;
This pages specifically focuses on the ''run.def'' file used by the 1D version of the Generic PCM. &lt;br /&gt;
&lt;br /&gt;
The run.def file is very similar to the [[The_run.def_Input_File|'''run.def''']] file, with the difference that the 3D options (linked to the dynamic core) are not used, and a whole bunch of new 1D-specific options (information contained in the start and startfi files) are now in the 1D run.def file. Especially, the 1D file has to hold the key &amp;lt;code&amp;gt;run_1d=.true.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Reference def files ==&lt;br /&gt;
Reference *.def files are provided in the LMDZ.GENERIC/deftank directory&lt;br /&gt;
&lt;br /&gt;
== Outputted used_*def files ==&lt;br /&gt;
When the GCM run finishes, for each of the input def files *.def, an ASCII output file '''used_*.def''' is generated (in practice this would be '''used_run.def''' and '''used_callphys.def''' for the 1D simulations). These files contain, along the same format as the *.def input files, the &amp;quot;key = value&amp;quot; that were used, along with comments about whether &amp;quot;value&amp;quot; was read in the input def file or if the code default was used (i.e. the sought &amp;quot;keyword&amp;quot; was not present in the input def files).&lt;br /&gt;
&lt;br /&gt;
== Example of 1D ''run.def'' file ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#---------------------------------#&lt;br /&gt;
# Run parameters for the 1D model #                                         &lt;br /&gt;
#---------------------------------#&lt;br /&gt;
&lt;br /&gt;
run_1d=.true.&lt;br /&gt;
&lt;br /&gt;
## Planetary constants&lt;br /&gt;
## ~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
## NB: those are mandatory&lt;br /&gt;
## ~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
## LENGTH OF A DAY in s&lt;br /&gt;
daysec         = 86400.&lt;br /&gt;
## GRAVITY in m s-2&lt;br /&gt;
g              = 3.72&lt;br /&gt;
## Radius of the planet, in m&lt;br /&gt;
rad = 3390000&lt;br /&gt;
## LENGTH OF A YEAR in days&lt;br /&gt;
year_day       = 3000&lt;br /&gt;
## MIN DIST STAR-PLANET in AU [periastron]&lt;br /&gt;
periastr       = 1.0&lt;br /&gt;
## MAX DIST STAR-PLANET in AU [apoastron]&lt;br /&gt;
apoastr        = 1.0&lt;br /&gt;
## DATE OF PERIASTRON in days&lt;br /&gt;
peri_day       = 0.&lt;br /&gt;
## OBLIQUITY in deg&lt;br /&gt;
obliquit       = 0.&lt;br /&gt;
## SURFACE PRESSURE in Pa&lt;br /&gt;
psurf          = 100000.&lt;br /&gt;
&lt;br /&gt;
## Time integration parameters&lt;br /&gt;
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
# Initial date (in solar days,=0 at Ls=0)&lt;br /&gt;
day0           = 0&lt;br /&gt;
# Initial local time (in hours, between 0 and 24)&lt;br /&gt;
time           = 12 &lt;br /&gt;
# Number of time steps per sol&lt;br /&gt;
day_step       = 40&lt;br /&gt;
# Number of sols to run &lt;br /&gt;
ndt            = 1000&lt;br /&gt;
# Number of steps between each writing in diagfi &lt;br /&gt;
diagfi_output_rate=12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
## Vertical levels&lt;br /&gt;
## ~~~~~~~~~~~~~~~&lt;br /&gt;
# hybrid vertical coordinate ? (.true. for hybrid and .false. for sigma levels)&lt;br /&gt;
hybrid         = .true.&lt;br /&gt;
# autocompute vertical discretisation? (useful for exoplanet runs)&lt;br /&gt;
autozlevs      = .false.&lt;br /&gt;
# Ceiling pressure (Pa) ?&lt;br /&gt;
pceil          = 0.00001&lt;br /&gt;
&lt;br /&gt;
## Thermal properties&lt;br /&gt;
## ~~~~~~~~~~~~~~~~~~&lt;br /&gt;
# Simulate global averaged conditions ? &lt;br /&gt;
global1d       = .true.&lt;br /&gt;
# Latitude (deg) [only used if global1d = F]&lt;br /&gt;
latitude       = 0.0&lt;br /&gt;
# Solar Zenith angle (deg) [only used if global1d = T]&lt;br /&gt;
szangle        = 60. &lt;br /&gt;
# Force specific heat capacity and molecular mass values&lt;br /&gt;
force_cpp      = .false.&lt;br /&gt;
# Specific heat capacity in J K-1 kg-1 [only used if force_cpp = T]&lt;br /&gt;
cpp            = 0.&lt;br /&gt;
# Molecular mass in g mol-1 [only used if force_cpp = T]&lt;br /&gt;
mugaz          = 18.&lt;br /&gt;
# Albedo of bare ground&lt;br /&gt;
albedo         = 0.1&lt;br /&gt;
# Emissivity of bare ground&lt;br /&gt;
emis           = 1.0&lt;br /&gt;
# Soil thermal inertia (SI)&lt;br /&gt;
inertia        = 1000.&lt;br /&gt;
# Initial CO2 ice on the surface (kg.m-2)&lt;br /&gt;
co2ice         = 0.&lt;br /&gt;
&lt;br /&gt;
## Wind profile&lt;br /&gt;
## ~~~~~~~~~~~~&lt;br /&gt;
## zonal eastward component of the geostrophic wind (m/s)&lt;br /&gt;
u              = 10.&lt;br /&gt;
# meridional northward component of the geostrophic wind (m/s)&lt;br /&gt;
v              = 0.&lt;br /&gt;
&lt;br /&gt;
## Initial atmospheric temperature profile&lt;br /&gt;
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
#&lt;br /&gt;
# Type of initial temperature profile&lt;br /&gt;
#         ichoice=1   Constant Temperature:  T=tref&lt;br /&gt;
#         [Mars] ichoice=2   Savidjari profile (as Seiff but with dT/dz=cte)&lt;br /&gt;
#         [Mars] ichoice=3   Lindner (polar profile)&lt;br /&gt;
#         [Mars] ichoice=4   inversion&lt;br /&gt;
#         [Mars] ichoice=5   Seiff  (standard profile, based on Viking entry)&lt;br /&gt;
#         ichoice=6   constant T  +  gaussian perturbation (levels)&lt;br /&gt;
#         ichoice=7   constant T  + gaussian perturbation (km)&lt;br /&gt;
#         ichoice=8   Read in an ascii file &amp;quot;profile&amp;quot; &lt;br /&gt;
ichoice        = 1&lt;br /&gt;
# Reference temperature tref (K)&lt;br /&gt;
tref           = 300. &lt;br /&gt;
# Add a perturbation to profile if isin=1&lt;br /&gt;
isin           = 0&lt;br /&gt;
# peak of gaussian perturbation (for ichoice=6 or 7)&lt;br /&gt;
pic            = 26.522&lt;br /&gt;
# width of the gaussian perturbation (for ichoice=6 or 7)&lt;br /&gt;
largeur        = 10&lt;br /&gt;
# height of the gaussian perturbation (for ichoice=6 or 7)&lt;br /&gt;
hauteur        = 30.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes''':&lt;br /&gt;
* Lines beginning with a hashtag are comments&lt;br /&gt;
* values associated to keywords may be logicals, integers, reals or even strings&lt;br /&gt;
* The parsing is case-sensitive : &amp;quot;thisparameter=&amp;quot; and &amp;quot;ThisParameter=&amp;quot; are identified as two distinct keywords&lt;br /&gt;
* The order in which the parameters are given in the file does not matter (except if a parameter is specified multiple times, clearly a bad idea, and then the last occurrence will prevail).&lt;br /&gt;
* Accessing a parameter and its value from ''run.def'' in the Fortran code is done using the '''getin_p''' routine, e.g.:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;fortran&amp;quot;&amp;gt;&lt;br /&gt;
       call getin_p(&amp;quot;keyword&amp;quot;,val)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
will look for the line with &amp;quot;keyword = &amp;quot; in file ''run.def'' and extract trailing value which will be use to set the value of the  '''val''' variable in the code.&lt;br /&gt;
&lt;br /&gt;
[[Category:Inputs]]&lt;br /&gt;
[[Category:WhatIs]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Generic-LMDZ]]&lt;br /&gt;
[[Category:Generic-1D]]&lt;/div&gt;</summary>
		<author><name>Jbclement</name></author>	</entry>

	<entry>
		<id>http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php/Generic_unicolumn_rcm1d_program</id>
		<title>Generic unicolumn rcm1d program</title>
		<link rel="alternate" type="text/html" href="http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php/Generic_unicolumn_rcm1d_program"/>
				<updated>2026-05-15T09:52:32Z</updated>
		
		<summary type="html">&lt;p&gt;Jbclement: /* Inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;It is possible to run the Gneric PCM in a uni-column (aka &amp;quot;single-column&amp;quot;) configuration: this can be done via the '''rcm1d''' program; quite useful form some first studies but also when developing and testing parametrizations.&lt;br /&gt;
&lt;br /&gt;
== Compilation ==&lt;br /&gt;
The main program '''rcm1d''' is compiled using the same compilation script, [[The makelmdz fcm GCM Compilation Script|makelmdz_fcm]], as for the 3D Generic lon-lat PCM. Nevertheless, there are few modifications:&lt;br /&gt;
* the ''-d'' option requires only one argument, the number of vertical levels;&lt;br /&gt;
* the main program to compile is ''rcm1d'' rather than ''gcm''.&lt;br /&gt;
So for instance to compile a case for 26 vertical levels one would run something like:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
makelmdz_fcm -arch somearch -d 26 -p generic rcm1d&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Note that it is possible to compile and run with the XIOS library, which will require compiling in &amp;quot;mpi&amp;quot; mode (required by XIOS), even though the run will be serial:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
makelmdz_fcm -arch somearch -d 26 -p generic -parallel mpi -io xios rcm1d&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Inputs ==&lt;br /&gt;
Just like the 3D GCM, the ''rcm1d'' program needs some inputs to run. The needed files are:&lt;br /&gt;
* &amp;lt;code&amp;gt;z2sig.def&amp;lt;/code&amp;gt; for the definition of vertical levels;&lt;br /&gt;
* &amp;lt;code&amp;gt;traceur.def&amp;lt;/code&amp;gt; for the definition of tracers that the user wants the model to run with;&lt;br /&gt;
* &amp;lt;code&amp;gt;callphys.def&amp;lt;/code&amp;gt; for the definition of parametrizations that the user wants the model to run with;&lt;br /&gt;
* &amp;lt;code&amp;gt;run.def&amp;lt;/code&amp;gt; for the run configuration, which is suitable for 1D: see [[The 1D run.def Input File]]. Especially, the 1D file has to hold the key &amp;lt;code&amp;gt;run_1d=.true.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Unlike the 3D GCMs, the ''rcm1d'' program can run without any start files, which is its default (&amp;lt;code&amp;gt;restart=.false.&amp;lt;/code&amp;gt;). In this setup, one can (and often needs) needs to provide initial profiles of each tracer. These consist in files called ''profile_sometracername'' containing column-wise the initial values of the considered tracer. Then, the first line corresponds to the surface tracer and the following lines correspond to the layers. At the end of a 1D simulation, ''rcm1d'' outputs a restart file '''restart.nc''' which can be used as an initial condition for a following run.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;code&amp;gt;restart=.true.&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;rcm1d.def&amp;lt;/code&amp;gt; then the program will look for start files '''start.nc''' and '''startfi.nc''' and use these as initial conditions.&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
If compiled without XIOS then ''rcm1d'' will output &amp;lt;code&amp;gt;diagfi.nc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.nc&amp;lt;/code&amp;gt; files, just like the 3D GCM and the optional &amp;lt;code&amp;gt;diagfi.def&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.def&amp;lt;/code&amp;gt; files can be respectively added to specify which variables need be outputted.&lt;br /&gt;
Likewise if compiled with XIOS then ''rcm1d'' will output all files as specified in the relevant xml files, just like the 3D GCM.&lt;br /&gt;
&lt;br /&gt;
As mentioned above, at the end of a simulation &amp;lt;code&amp;gt;rcm1d&amp;lt;/code&amp;gt; also outputs a '''restart.nc''' file containing the final computed state.&lt;br /&gt;
&lt;br /&gt;
[[Category:Generic-Model]]&lt;br /&gt;
[[Category:Generic-1D]]&lt;/div&gt;</summary>
		<author><name>Emillour</name></author>	</entry>

	</feed>