source: trunk/LMDZ.MARS/doc/run.tex @ 2112

Last change on this file since 2112 was 1954, checked in by emillour, 7 years ago

Mars GCM:

  • Make a "doc" subdirectory to store the documentation source files with the code.

EM

File size: 24.1 KB
Line 
1%\part{Faire tourner le mod\`ele}
2
3
4\chapter{Running the model: a practice simulation}
5
6\label{loc:contact1}
7
8This chapter is meant for first time users of the LMD model.
9As the best introduction to the model is surely to run a simulation,
10here we explain how to go about it.
11All you will need are files and scripts necessary to build the GCM (all are in
12the {\tt LMDZ.COMMON} and {\tt LMDZ.MARS} directories which you will download
13as explained in the next
14sections) as well as some initial states to initiate simulations and,
15if not working on the
16LMD machines, some extra datafiles for external forcings (topography,
17dust scenarios, radiative properties of dust and water ice, etc.).\\
18Once you have followed the example given below,
19you can then go on to change the control parameters and the initial states
20as you wish. A more detailed description of the model's organization
21as well as associated inputs and
22outputs are given in sections~\ref{sc:info} and~\ref{sc:io}.
23
24\section{Obtaining the model}
25The LMD model project is developped using subversion (svn), the free software
26versioning and a revision control system.
27To obtain (download) the latest version of the model,
28simply go to the directory where you want to
29install the model and use the relevant svn command:\\
30{\tt svn checkout http://svn.lmd.jussieu.fr/Planeto/trunk --depth empty}\\
31Then move to the newly generated {\tt trunk directory} and download
32(i.e. {\tt svn update}) the
33{\tt LMDZ.MARS} and {\tt LMDZ.COMMON} directories (the contents of these
34directories are described in chapter \ref{loc:contenu}) with:
35\begin{verbatim}
36svn update LMDZ.MARS LMDZ.COMMON UTIL
37\end{verbatim}
38
39If you are not on the LMD machines, you will also need to download a
40set of files available online at:\\
41{\verb+http://www.lmd.jussieu.fr/~lmdz/planets/mars/datadir+}\\
42(preserve the file names and subdirectory structure).
43This directory contains input files (topography, dust scenarios,
44radiative properties of scatteres, etc.) which the GCM needs to run.
45Where you put your local {\tt datadir} directory (or whatever name
46you choose for this directory) is not critical, as that location can
47be specified at runtime (see sections \ref{sc:running_gcm} and
48\ref{sc:callphys.def}).\\
49
50To run the model, you will also need some initial condition files that
51can be downloaded from:\\
52{\verb+http://www.lmd.jussieu.fr/~lmdz/planets/mars/starts+}
53(see section \ref{sc:inputfiles}).
54
55\section{Prerequisites}
56Before downloading and installing the model, a few prerequisites
57must be satisfied:
58\begin{enumerate}
59\item The NetCDF library must be installed
60 on your system, using the same
61 compiler suite (e.g. gfortran and gcc, or ifort and icc) that you will use
62 to compile the model. The latest version of the NetCDF package is available
63 on the web at the following address:
64  \begin{verbatim}
65  http://www.unidata.ucar.edu/software/netcdf
66  \end{verbatim}
67  along with instructions for building (or downloading precompiled
68  binaries of) the library.\\
69  Note that we provide in the {\tt UTIL} directory a Bash script
70  {\tt install\_netcdf4.0.1.bash} which may be used to download and install
71  version 4.0.1 of the NetCDF library; run {\tt install\_netcdf4.0.1.bash -h}
72  to list available options.
73\item Some software to load and display NetCDF files such as
74   \begin{itemize}
75   \item Ferret {\tt http://ferret.wrc.noaa.gov/Ferret}
76   \item Panoply {\tt https://www.giss.nasa.gov/tools/panoply}
77   \item GrAdS {\tt http://grads.iges.org/grads}
78   \item ncview {\tt http://meteora.ucsd.edu/\~pierce/ncview\_home\_page.html}
79   \end{itemize}
80   among others, should be installed on your system.
81\item The {\tt fcm} utility must be installed on your system.
82  If it is not already so, it may be obtained by the following svn command:\\
83  {\tt svn checkout http://forge.ipsl.jussieu.fr/fcm/svn/PATCHED/FCM\_V1.2}\\
84  And add its {\tt bin} subdirectory to your {\tt PATH} environment variable
85  to make the {\tt fcm} command available from anywhere.
86\item To run at higher resolution (and/or with many tracers) requires some memory, in particular a reasonable stacksize (which is often quite limited by default). It is thus highly recommended that you set this value to {\tt unlimited} via
87the command
88\begin{verbatim}
89ulimit -s unlimited
90\end{verbatim}
91before running the GCM, or more pragmatically by adding this instruction to you
92{\tt .bashrc} or {\tt .profile} so that it is always set.
93\end{enumerate}
94
95\section{Installing the model}
96There are two distinct ways of installing/compiling the model:
97One (nowdays depreciated) using scripts in the {\tt LMDZ.MARS}
98directory, and the other (encouraged because one can then also
99run the model on parallel computers) in the {\tt LMDZ.COMMON} directory
100
101\subsection{Settings in LMDZ.MARS (depreciated)}
102\begin{description}
103%\item {\bf -} Copy the basic model directory LMDZ.MARS to your account
104%(the contents of this directory are described in chapter \ref{loc:contenu}).
105
106\item {\bf -} Set some environment variables needed for the compilation
107       of the model (it is also possible to set the environment
108       variables in the {\tt makegcm} script, as explained below):
109  \begin{description}
110  \item {\bf LMDGCM} : Path to the directory where you have put the model
111  (full path).\\
112  If using Csh:
113  \begin{verbatim}
114  setenv  LMDGCM /where/you/put/the/model/LMDZ.MARS
115  \end{verbatim}
116  If using Bash:
117  \begin{verbatim}
118  export  LMDGCM=/where/you/put/the/model/LMDZ.MARS
119  \end{verbatim} 
120  \item {\bf LIBOGCM} : Path to the directory
121  ({\tt libo} for example) where intermediate objects will be stored
122  during the compilation of the model with the {\tt makegcm} script
123  (if that directory does not
124  exist then {\tt makegcm} will create it).\\
125  If using Csh:
126  \begin{verbatim}
127  setenv  LIBOGCM /where/you/want/objects/to/go/libo
128  \end{verbatim}
129  If using Bash:
130  \begin{verbatim}
131  export  LIBOGCM=/where/you/want/objects/to/go/libo
132  \end{verbatim}
133  \end{description}
134
135\item {\bf -} Knowing where your NetCDF library is installed,
136 set environment variables  {\bf NCDFINC} and {\bf NCDFLIB}:
137
138  \begin{description}
139  \item Once the NetCDF library has been compiled (or downloaded),
140  you should have access to the library {\tt libnetcdf.a} itself,
141  the various files ({\tt netcdf.inc}, {\tt netcdf.mod}, ...)
142  to include in programs, and basic NetCDF software ({\it ncdump}
143  and {\it ncgen}).
144
145  \item To ensure that during compilation, the model can find the
146  NetCDF library and include files,
147  you must declare environment variables {\bf NCDFLIB} and {\bf NCDFINC}
148  (again, it is also possible to set these environment
149      variables in the {\tt makegcm} script, as explained below).
150
151  \item {\bf NCDFLIB} must contain the path to the directory containing
152   the object library {\tt libnetcdf.a}
153   and {\bf NCDFINC} must contain the path to the directory containing
154   the include files ({\tt netcdf.inc},...)\\
155  If using Csh:
156  \begin{verbatim}
157  setenv NCDFINC /wherever/is/netcdf/include
158  setenv NCDFLIB /wherever/is/netcdf/lib
159  \end{verbatim}
160  If using Bash:
161  \begin{verbatim}
162  export NCDFINC=/wherever/is/netcdf/include
163  export NCDFLIB=/wherever/is/netcdf/lib
164  \end{verbatim}
165  \end{description}
166
167\item {\bf -} Go to your {\tt LMDZ.MARS} and adapt the {\tt makegcm}
168  script to fit your needs:
169  \begin{itemize}
170  \item Examples of {\tt makegcm} scripts, adapted for different compilers
171  (pgf90, g95, gfortran and ifort) are provided (files {\tt makegcm},
172  {\tt makegcm\_g95}, {\tt makegcm\_gfortran}, {\tt makegcm\_ifort}) copy or
173  rename the relevant one as {\tt makegcm} in the same directory.
174  \item As mentionned above, you may edit the script to hard code
175  values of {\tt LMDGCM}, {\tt LIBOGCM}, {\tt NCDFINC} and {\tt NCDFLIB} 
176  instead of relying on the use of environment variables (see the commented out
177  examples in the scripts at lignes 20-30). Note that since the {\tt
178  makegcm} is a Csh script, Csh syntax must be used there.
179  \end{itemize}
180
181\end{description}
182
183\subsection{Settings in LMDZ.COMMON (advised)}
184
185You should first compile the IOIPSL library which is used\footnote{It is in fact for now possible to run the GCM without the IOIPSL library but this requires adding the {\tt -io noioipsl} to the {\tt makelmdz\_fcm} command line, and might no longer be possible in the future.} by the GCM. To do this go to the {\tt LMDZ.COMMON/ioipsl} directory. There are a number of example scripts (depending on machines and compiler suites to use) to run to download and install the ioipsl library. As an illustrative example we detail here using the {\tt install\_ioipsl\_gfortran.bash} script:
186\begin{itemize}
187\item Edit script {\tt install\_ioipsl\_gfortran.bash} to set the path to your NetCDF library in the {\tt setfolder} variable, e.g. \verb+ setfolder="/usr/local/netcdf"+
188\item Run the script: \verb+ ./install_ioipsl_gfortran.bash+
189\item If all went well the script should end with the message \verb+ OK: ioipsl library is in + followed by the full path to the library {\tt libioipsl.a} and companion module files in in subdirectory \verb+modipsl/lib+
190\end{itemize}
191
192\section{Compiling the model}
193\label{sc:compile}
194\subsection{Compiling in LMDZ.MARS (depreciated)}
195\noindent As explained above, compiling the model is done
196using the {\tt makegcm} script and providing it with the appropriate
197options:
198\begin{itemize}
199\item Example 1: Compiling the Martian model at grid resolution 64x48x25
200for example, type (in compliance with the manual for the makegcm function
201given in section~\ref{sc:compil1})
202
203\begin{verbatim}
204makegcm -d 64x48x25 -p mars gcm
205\end{verbatim}
206
207\noindent
208You will find executable {\bf gcm.e} (the compiled model) in the directory
209where you ran the makegcm command.
210
211%{\bf -} Example 2: Compiling the Martian model with 3 tracers
212%(e.g. CO2, water vapour and ice to simulate the water cycle):
213%\begin{verbatim}
214%makegcm -d 64x48x25 -t 2 -p mars gcm
215%\end{verbatim}
216
217\item Example 2:
218Compiling the the Martian model with your choice of
219compiler options, e.g. to check for array overflow
220(useful for debugging: warning, the model is then much slower!):
221\begin{verbatim}
222makegcm -d 64x48x25 -p mars -O "-C" gcm
223\end{verbatim}
224Note that the {\tt makegcm} script also has a "debug" option which
225includes a collection of adequate debugging options. To use it,
226simply add the {\tt -debug} option:
227\begin{verbatim}
228makegcm -d 64x48x25 -p mars -debug gcm
229\end{verbatim}
230\end{itemize}
231
232\subsection{Compiling in LMDZ.COMMON (advised)}
233The Bash script {\tt makelmdz\_fcm} is used to compile the model.
234It needs not be modified or adapted to your settings, as all
235specificities are set in corresponding files located in the {\tt arch}
236subdirectory. For a given machine, e.g. {\tt MyMachine}, one should create
237two files, {\tt arch-MyMachine.fcm} and {\tt arch-MyMachine.path}, using the
238provided example files to set appropriate compiler options and paths
239(for instance {\tt arch-linux-ifort-para.fcm} and
240{\tt arch-linux-ifort-para.path} are adapted to run on local LMD machines).\\
241The {\tt makelmdz\_fcm} script has the mandatory option {\tt -arch MyArch}
242to specify the arch files to use (the {\tt "MyArch"} string should be replaced
243with the name used for your own arch files), and multiple options:
244\begin{itemize}
245\item Example 1: Compiling the Martian model at grid resolution 64x48x32
246\begin{verbatim}
247makelmdz_fcm -arch linux-ifort -d 64x48x29 -p mars gcm
248\end{verbatim}
249The executable, {\tt gcm\_64x48x29\_phymars\_seq.e} in the present case,
250will be generated in the {\tt bin} subdirectory.
251\item Example 2: Compiling as above but in "debug" mode
252\begin{verbatim}
253makelmdz_fcm -arch linux-ifort -d 64x48x29 -p mars -debug gcm
254\end{verbatim}
255\item Example 3: Compiling the model to run in parallel (MPI) mode:
256\begin{verbatim}
257makelmdz_fcm -arch linux-ifort -parallel mpi -d 64x48x29 -p mars gcm
258\end{verbatim}
259\item For an overview of all available options:
260\begin{verbatim}
261makelmdz_fcm -h
262\end{verbatim}
263\end{itemize}
264Upon succesfull compilation, the GCM executable is generated in the
265{\tt LMDZ.COMMON/bin} directory with the following naming convention:
266\begin{verbatim}
267gcm_XXX_phymars_YY.e
268\end{verbatim}
269where \verb+XXX+ is the model resolution (which was specified with the {\tt -d} argument) and \verb+YY+ is either \verb+seq+ or \verb+para+ depending on if the model was compiled in serial or parallel mode ({\tt -parallel} argument).
270
271\section{Input files (initial states and def files)}
272\label{sc:inputfiles}
273In directory \verb+LMDZ.MARS/deftank+
274you will find some examples of run
275parameter files ({\tt .def} files) which the model needs at runtime.
276The four files the model requires (they must be in the same directory as the
277executable {\tt gcm.e}) are:
278{\bf run.def} (described in
279section~\ref{loc:entrees}) {\bf callphys.def}
280(see section~\ref{sc:callphys.def}),
281{\bf callphys.def}, {\bf z2sig.def} and {\bf traceur.def}.\\
282
283The example {\tt .def} files given in the {\tt deftank} directory
284are for various configurations (e.g. model resolution), copy (and eventually
285rename these files to match the generic names) to the directory where
286you will run the model.\\
287
288Copy initial condition files
289{\bf start.nc} and {startfi.nc}  (described in section
290\ref{loc:entrees}) to the same directory.\\
291You can extract such files from {\bf start\_archive}
292`banks of initial states' (i.e. files which
293contain collections of initial states from
294stndard scenarios and which can thus be used
295to check if the model is installed correctly) stored on the LMD website at
296\verb+http://www.lmd.jussieu.fr/~lmdz/planets/mars/starts+.
297See section~\ref{sc:newstart} for a description of how to proceed to
298extract {\bf start} files from {\bf start\_archives}.
299
300\section{Running the model}
301\label{sc:running_gcm}
302\begin{figure}
303\centerline{\framebox[1.4\textwidth][c]{\includegraphics[width=1.2\textwidth]{Fig/inout.pdf}}}
304\caption{Input/output data}
305\label{fig:inout}
306\end{figure}
307
308Once you have the program {\bf gcm.e},
309input files {\bf start.nc} {\bf startfi.nc},
310and parameter files {\bf run.def callphys.def traceur.def z2sig.def}
311in the same directory,
312simply execute the program to run\footnote{
313Note that if you ar not running on the LMD machines, you'll have to
314modify or add, in file {\tt callphys.def}, the line:
315{\tt datadir = /path/to/datafile}\\
316Where {\tt /path/to/datafile} is the full path to the directory which
317contains the set of files downloaded from:\\
318\verb+http://www.lmd.jussieu.fr/~lmdz/planets/mars/datadir+
319}
320a simulation:
321\begin{verbatim}
322gcm.e
323\end{verbatim}
324
325
326You might also want to keep all messages and diagnotics written to standard
327output (i.e. the screen). You should then redirect the standard output
328(and error) to some file, e.g. {\tt gcm.out}:
329\begin{verbatim}
330gcm.e > gcm.out 2>&1
331\end{verbatim}
332
333
334\section{Visualizing the output files}
335
336As the model runs it generates output files {\bf diagfi.nc} and
337{\bf stats.nc} files. The former contains instantaneous values of
338various fields and the later statistics (over the whole run) of some
339variables.
340
341\subsection{Using Ferret to visualize outputs}
342Documentation and tutorials are available on the Ferret official website:
343\begin{verbatim}
344https://ferret.pmel.noaa.gov/Ferret/
345\end{verbatim}
346If you are a new user, we strongly recommend first spending some time browsing the official tutorials and documentation to learn more about Ferret capabilities and usage.\\
347
348Here is asimple illustrative example of how one may visualize temperature for the 5th layer and 9th time step from a {\tt diagfi.nc} file:
349\begin{description}
350\item {\bf -} Ferret session:
351  \begin{description}
352  \item \verb+ferret+ {\it return}
353  \item \verb!yes? use diagfi.nc!
354  \item \verb!yes? show data! (displays information about available variables and their dimensions)
355  \item \verb!yes? fill temp[k=5,l=9]! (plot temperature map of 5th layer and 9th time step)
356  \end{description}
357\end{description}
358
359\subsection{Using GrAds to visualize outputs}
360If you have never used the graphic software {\bf GrAds}, we strongly
361recommend spending half an hour to familiarize yourself with it by following
362the demonstration provided for that purpose.
363The demo is fast and easy to follow and you will learn the basic commands.
364To do this read file
365\begin{verbatim}
366/distrib/local/grads/sample
367\end{verbatim}
368
369For example, to visualize files {\tt diagfi.nc} and {\tt stats.nc}
370
371NetCDF files {\tt diagfi.nc} and {\tt stats.nc} can be accessed directly
372using GrAdS thanks to utility program gradsnc,
373(the user does not need to intervene).\\
374
375\noindent
376To visualize the temperature in the 5th layer using file
377{\tt diagfi.nc} for example:
378\label{loc:visu}
379
380\begin{description}
381\item {\bf -} GrAdS session:
382
383  \begin{description}
384  \item \verb+grads+ {\it return}
385
386  \item {\it return} (opens a landscape window)
387
388  \item \verb+ga-> sdfopen diagfi.nc+
389
390  \item \verb+ga-> query file+ (displays info about the open file, including the name of the stored variables. Shortcut: {\it q file})
391
392  \item \verb+ga-> set z 5+ (fixes the altitude to the 5th layer)
393
394  \item \verb+ga-> set t 1+ (fixes the time to the first stored value)
395
396  \item \verb+ga-> query dims+ (indicates the fixed values for the 4
397  dimensions. Shortcut: {\it q dims})
398
399  \item \verb+ga-> display temp+ (displays the temperature card for the 5th layer and for the first time value stored. Shortcut: {\it d
400  T})
401
402  \item \verb+ga-> clear+ (clears the display. Shortcut: {\it c})
403
404  \item \verb+ga-> set gxout shaded+ (not a contour plot, but a shaded one)
405
406  \item \verb+ga-> display temp+
407
408  \item \verb+ga-> set gxout contour+ (returns to contour mode to display the levels)
409
410  \item \verb+ga-> display temp+ (superimposes the contours if the clear command is not used)
411
412  \end{description}
413\end{description}
414
415
416
417%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
418
419\section{Resuming a simulation}
420At the end of a simulation, the model generates {\bf restart} files
421(files {\tt restart.nc} and {\tt restartfi.nc})
422which contain the final state of the model.
423As shown in figure~\ref{fig:inout},
424these files (which are of the same format as the start files)
425can later be used as initial
426states for a new simulation.\\
427
428\noindent
429The {\bf restart} files just need to be renamed:
430\begin{verbatim} 
431mv restart.nc start.nc
432mv restartfi.nc startfi.nc
433\end{verbatim}
434\noindent
435and running a simulation with these will in fact resume the simulation
436from where the previous run ended.
437
438\section{Chain simulations}
439
440In practice, we recommend running a chain of simulations lasting several
441days or longer (or hundreds of days at low resolution).
442
443To do this, a script named {\tt run0} is available in
444\verb+LMDZ.MARS/deftank+ , which should be used as follows:
445\begin{itemize}
446\item Set the length of each simulation in {\tt run.def}
447 (i.e. set the value of {\tt nday})
448\item Set the maximum number of simulations at the beginning of the {\tt run0}
449script (i.e. set the value of {\tt nummax})
450\item Copy start files {\tt start.nc  startfi.nc} over and rename them
451      {\tt start0.nc startfi0.nc}.
452\item Run script {\tt run0} 
453\end{itemize}
454
455{\tt run0} runs a series of simulations that generate the indexed output
456files (e.g. {\tt start1, startfi1, diagfi1}, etc.)
457including files {\tt lrun1, lrun2}, etc. containing the redirection of the
458display and the information about the run.
459
460{\it NOTE:} to restart a series of simulations after a first series
461(for example, starting from {\tt start5 and  startfi5}), just write the
462index of the initial files (e.g. 5) in the file named {\tt num\_run}.
463If {\tt num\_run} exists, the model will start from the index written in
464{\tt num\_run}. If not it will start from, {\tt start0 and startfi0}.
465
466
467{\it NOTE}: A script is available for performing annual runs with 12 seasons
468at 30$^o$ solar longitude
469as it is in the database (script {\bf \tt run\_mcd}, also found in directory
470{\tt deftank}).
471This script functions with script run0. Just set the number of simulations to
4721 in run0. Then copy run.def into run.def.ref and set nday to 9999 in this
473file. To start from startN.c, edit the file run\_mcd and comment
474(with a \#) the N months already created and describe N in {\tt num\_run}.
475Then run  {\bf \tt run\_mcd}.
476
477
478\section{Creating and modifying initial states}
479
480\label{sc:newstart}
481
482\subsection{Using program ``newstart''}
483
484Several model parameters (for example, the dust optical depth) are stored in
485the initial states (NetCDF files {\tt start.nc}
486and {\tt startfi.nc}).
487To change these parameters, or to generally change the model resolution,
488use program {\bf newstart}.
489
490This program is also used to create an initial state.
491In practice, we usually reuse an old initial state, and modify it using
492{\bf newstart}.
493
494Like the GCM, program {\bf newstart} must be
495compiled (using the {\tt makelmdz\_fcm} script)
496at the required grid resolution.
497For example:
498\begin{verbatim}
499makelmdz_fcm -arch local -d 64x48x25 -p mars newstart
500\end{verbatim}
501The resulting executable will be created in the {\tt LMDZ.COMMON/bin} directory, as \verb+newstart_XXX_phymars_seq.e+, where \verb+XXX+ is the dimension (values given to the {\tt -d} argument) for which newstart was compiled.\\
502
503Then run the newstart program in a directory containing the start
504and def file to be used:
505\begin{verbatim}
506newstart.e
507\end{verbatim}
508
509The program then gives you two options:
510\begin{verbatim}
511 From which kind of files do you want to create newstart and startfi files
512     0 - from a file start_archive
513     1 - from files start and startfi
514\end{verbatim}
515
516\begin{itemize}
517\item{-} Option ``1'' allows you to read and modify the information needed
518to create a new initial state  from the files
519\verb+ start.nc, startfi.nc +
520\item{-} Option ``0'' allows you to read and modify the information needed to
521create a new initial state from file
522\verb+ start_archive.nc + (whatever the \verb+ start_archive.nc +
523grid resolution is).\\
524\end{itemize} 
525If you use tracers, make sure that they are taken into account in your
526start files (either start or start\_archive).\\ \\
527Then answer to the various questions in the scroll menu.
528These questions allow you to modify the initial state for the following
529parameters.
530
531\input{input/questions_inistate.tex} 
532
533Program {\bf newstart.e} creates files
534{\tt restart.nc} and {\tt restartfi.nc}
535that you generally need to rename (for instance rename them in start0.nc
536and startfi0.nc if you want to use run0 or run\_mcd, starting with season 0;
537rename them {\tt start.nc} and {\tt startfi.nc} if you just want to perform
538one run with {\tt gcm.e}).
539
540
541\subsection{Creating the initial start\_archive.nc file } 
542
543Archive file
544{\tt start\_archive.nc} is created from files
545{\tt start.nc} and {\tt startfi.nc} by program {\bf start2archive}.
546Program {\bf start2archive} compiles to the same grid resolution as the
547{\tt start.nc} and {\tt startfi.nc} grid resolution. For example:
548
549\begin{verbatim}
550makelmd_fcm -arch local -d 64x48x25 -p mars start2archive
551\end{verbatim}
552Then run \verb+ start2archive.e+ \\ \\
553You now have a \verb+ start_archive.nc+ file for one season that you can
554use with newstart.
555If you want to gather other states obtained at other times of year, rerun
556{\tt start2archive.e} with the {\tt start.nc} and {\tt startfi.nc}
557 corresponding to these.
558These additional initial states will automatically be added to the
559{\tt start\_archive.nc} file present in the directory. 
560
561\subsection{Changing the horizontal or vertical grid resolution}
562
563To run at a different grid resolution than available initial conditions
564files, one needs to use tools {\bf newstart} and {\bf start2archive}
565
566For example, to create initial states at grid resolution
56732$\times$24$\times$25 from NetCDF files
568\verb+ start + and \verb+ startfi + at grid resolution
569  64$\times$48$\times$32 :
570
571\begin{itemize}
572\item Create file \verb+ start_archive.nc +
573with {\bf start2archive.e} compiled at grid resolution
57464$\times$48$\times$25 using {\bf old file {\tt z2sig.def}
575 used previously}
576
577\item Create files
578{\tt newstart.nc} and {\tt newstartfi.nc}
579 with {\bf newstart.e}
580compiled at grid resolution 32$\times$24$\times$25,
581using {\bf new file {\tt z2sig.def}}
582
583\end{itemize} 
584
585If you want to create starts files with tarcers for 49 layers using a
586{\tt start\_archive.nc} obtained for 32 layers, do not forget to use the
587\verb+ ini_q+ option in newstart in order to correctly initialize tracers
588value for layer 33 to layer 49.
589You just have to answer yes to the question on thermosphere initialization
590if you want to initialize the thermosphere part only (l=33 to l=49),
591and no if you want to initialize tracers for all layers (l=0 to l=49).\\ \\
592
Note: See TracBrowser for help on using the repository browser.