- Timestamp:
- Jan 7, 2014, 1:39:18 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE_DEV/MANUAL/SRC/advance.tex
r1100 r1154 128 128 129 129 130 %\mk 131 %\section{Running simulations with the new physics} 132 %different callphys.def 133 %the step datafile.h is not needed anymore ! use callphys.def. 134 %traceur.def 135 %run.def 136 %different callphys.def 137 %makemeso -p 138 %% mars = 3 ---> cycle poussieres : dustq + dustn [NOUVELLE PHYS seulement] 139 %% mars = 11 ---> cycle de l'eau + poussieres [1+3] [NOUVELLE PHYS seulement] 140 %% LES LES 141 %%[set to 18 for newphys] 130 \mk 131 \section{Running simulations with the new physical parameterizations} 142 132 143 %% attention init_TI n'est plus separable... il faut run real.exe a cause du modele sous surface 144 %% il faut ajouter init_Z0 ! ou il n'y a pas besoin de re executer real.exe 133 \sk 134 Using the most recent physical parameterizations means using a version of the LMD Martian Mesoscale Model that is still under development (thus experimental). It is therefore recommended to contact developers to run simulations in this mode. 145 135 146 %% si z0 n est pas dans le wrfinput on prend la valeur par defaut 136 \sk 137 For advanced users who learnt with the LMD team how to use the new physical parameterizations, here are a few differences with the physical parameterizations natively provided with the LMD Martian Mesoscale Model that must be kept in mind 138 \begin{finger} 139 \item a folder \ttt{LMDZ\_MARS} containing the latest sources of the Mars LMD GCM must be located in the same repository which contains \ttt{MESOSCALE} (easy to do with SVN) 140 \item GCM runs used to produce initial and boundary conditions for the mesoscale model must be done in \ttt{MESOSCALE/LMDZ.MARS.new} 141 \item \ttt{makemeso} must be used with option \ttt{-p} 142 \item the \ttt{callphys.def} file is different 143 \item modifying the \ttt{datafile.h} is not necessary anymore, this can be done in \ttt{callphys.def} 144 \item an additional \ttt{run.def} file is needed 145 \item the number of scatterers must be given when compiling, standard simulation uses 1 scatterer (2 is used for radiatively active water ice clouds) 146 \item in \ttt{namelist.input}, the soil model must set to 18 levels 147 \item additional \ttt{mars} modes can be accessed (e.g. for interactive dust or the radiative effect of clouds) 148 \item if \ttt{init\_TI} is modified, \ttt{real.exe} must be run again (because of subsurface modeling) 149 \item a varying map for surface roughness~$z_0$ can be used -- or a constant value can be set with \ttt{init\_Z0} in \ttt{namelist.input} (if there is a problem, the old reference of 1cm is chosen) 150 \item (versions later than late 2013) the model does not need to be recompiled if the number of tracers is changed 151 \item (experimental) cases with tracers and water cycle should use \ttt{diff\_6th\_opt = 0} for better stability 152 \end{finger} 153 154 155 156 147 157 148 158 %% cas test THARSIS 149 159 150 %% parler de diff_6th_opt = 0 obligatoire pour les cas avec traceurs151 160 152 161 -
trunk/MESOSCALE_DEV/MANUAL/SRC/compile_exec.tex
r493 r1154 120 120 121 121 \sk 122 You are asked a few questions by the \ttt{makemeso} script (see the list below) then it compiles the model for you. The script outputs a text file named \ttt{last} in which your answers to the questions are stored, which allows you to re-run the script without the ``questions to the user" step through the \ttt{makemeso < last} command line. In what follows, the answers given in brackets are the ones you want to use so that you will be able to run the test case proposed in the next section.122 You are asked a few questions by the \ttt{makemeso} script (see the list below) then it compiles the model for you. The script outputs a text file named \ttt{last} in which your answers to the questions are stored, which allows you to re-run the script without the ``questions to the user" step through the \ttt{makemeso < last} command line. 123 123 124 124 \mk … … 129 129 \item \textbf{number of grid points in latitude} [61] 130 130 \item \textbf{number of vertical levels} [61] 131 \item \textbf{number of tracers} [1]131 \item \textbf{number of tracers}\footnote{The minimum number of tracers is 1 and not 0. Setting to 0 will actually make the script to set tracer number to 1.} [1] 132 132 \item \textbf{number of domains} [1] 133 133 %\item[6.bis] (not the first time you use \ttt{makemeso}) a question for advanced users [press any key] … … 135 135 \end{asparaenum} 136 136 137 \sk 138 The answers given in brackets above are the ones you want to use so that you will be able to run the test case proposed in the next section. Otherwise, before proceeding with \ttt{makemeso}, it is good to get used to gather the following information 139 \begin{itemize} 140 \item On which machine do you want to run the model? (a good practice is to compile on the same machine as the one used to run the model). 141 \item What is the horizontal resolution you want for your simulation? How many domains? How many tracers? 142 \item If parallel computations are employed: Do you have parallel librairies installed on the machine you chose? How much processors you want to use? 143 \end{itemize} 144 137 145 \mk 138 146 A key question that often arises when using the LMD Martian Mesoscale Model is: when does the model has to be recompiled? The set of questions asked by~\ttt{makemeso} give some hints about this. Suppose you compiled a version of the model for a given set of parameters $1$ to $6$ to run a specific compilation. If you would like to run another simulation with at least one of parameters $1$ to $6$ subject to change, the model needs to be recompiled\footnote{This necessary recompilation each time the number of grid points, tracers and domains is modified is imposed by the LMD physics code. The WRF dynamical core alone is more flexible.} with \ttt{makemeso} (cf. also chapter~\ref{zeparam}). 139 147 140 148 \mk 141 Note that the \ttt{makemeso -h} command lists the various options that can be used in the \ttt{makemeso} script. Most options should be used only by advanced users and some of them will be described in the following chapters. At this stage, the only option of \ttt{makemeso} which can be useful to you is \ttt{-f} which forces the model to be recompiled from scratch . If you already compiled the model succesfully, but the model fails to compile a few days later for reasons unrelated to your operations on your system or on the model file, we recommend you to use the \ttt{-f} option in \ttt{makemeso} to try to recompile the model\footnote{A more extreme solution if \ttt{makemeso -f} does not solve your problem is to remove the corresponding \ttt{your\_compdir} directory. See chapter~\ref{faq}}.149 Note that the \ttt{makemeso -h} command lists the various options that can be used in the \ttt{makemeso} script. Most options should be used only by advanced users and some of them will be described in the following chapters. At this stage, the only option of \ttt{makemeso} which can be useful to you is \ttt{-f} which forces the model to be recompiled from scratch (this is for instance very useful if a previous compilation ran into problems, or was interrupted by the user). If you already compiled the model succesfully, but the model fails to compile a few days later for reasons unrelated to your operations on your system or on the model file, we recommend you to use the \ttt{-f} option in \ttt{makemeso} to try to recompile the model\footnote{A more extreme solution if \ttt{makemeso -f} does not solve your problem is to remove the corresponding \ttt{your\_compdir} directory. See chapter~\ref{faq}}. 142 150 143 151 \scriptsize -
trunk/MESOSCALE_DEV/MANUAL/SRC/faq.tex
r1100 r1154 72 72 73 73 \sk 74 \noindent \textbf{WPS does not compile with my favorite compiler (the one I have to use for model integrations) but seems to work with another one} 75 \begin{finger} 76 \item Go to the folder corresponding to your favorite compiler. Remove the \ttt{WPS} folder and link here the \ttt{WPS} folder obtained with the alternate compiler. The \ttt{runmeso} workflow will then work just fine if you select your favorite compiler. 77 \end{finger} 78 79 \sk 74 80 \noindent \textbf{I think I found a bug in the model.} 75 81 \begin{finger} … … 166 172 \end{finger} 167 173 168 %\mk 169 %\section{Specific simulations} 170 %\sk 171 %\noindent \textbf{It seems difficult to me to find a number of horizontal grid points for parallel nested simulations that is compliant with all constraints mentioned in section~\ref{nests}.} 172 %\begin{finger} 173 %\item A tip to find a compliant domain size for nested simulations: for the parent domain, choose \ttt{e\_we} and \ttt{e\_sn} according to~$e_{we} = n_{proc} \times i + 1$ with~$n_{proc}$ being a multiple of~$4$ and~$2 \, i +1$ being a multiple of~$3$. For child domains, set \ttt{e\_we} and \ttt{e\_sn} according to \ttt{e\_we[child domain] = e_we[parent domains] + 4}. 174 %\end{finger} 174 \sk 175 \noindent \textbf{The model seems not being able to produce outputs although the log files indicate writing files has been done. This is the case especially when I increased the number of grid points.} 176 \begin{finger} 177 \item Set the environment variable \ttt{WRFIO\_NCD\_LARGE\_FILE\_SUPPORT} to 1 178 \begin{verbatim} 179 declare -x WRFIO_NCD_LARGE_FILE_SUPPORT=1 180 \end{verbatim} 181 and recompile the model from scratch. Your model will be able then to produce very large files (especially restart files). 182 \end{finger} 183 184 \mk 185 \section{Specific simulations} 186 187 \sk 188 \noindent \textbf{It seems difficult to me to find a number of horizontal grid points for parallel nested simulations that is compliant with all constraints mentioned in section~\ref{nests}.} 189 \begin{finger} 190 \item A tip to find a compliant domain size for nested simulations: for the parent domain, choose \ttt{e\_we} and \ttt{e\_sn} according to~$e_{we} = n_{proc} \times i + 1$ with~$n_{proc}$ being a multiple of~$4$ and~$2 \, i +1$ being a multiple of~$3$. For child domains, set \ttt{e\_we} and \ttt{e\_sn} according to \ttt{e\_we[child domain] = e\_we[parent domains] + 4}. 191 \end{finger} 175 192 %%%%% TROP SPECIFIQUE !!! 176 193 %% ----------------------------------------------------------------------- … … 195 212 %%% WPS PREP_MARS peuvent être liés entre e.g. pgf et mpi, ou ifort et mpifort 196 213 197 %%% BIG FILES declare -x WRFIO_NCD_LARGE_FILE_SUPPORT=1198 199 214 %%% RESTART: see SVN 200 215 … … 205 220 206 221 207 %%% WPS does not compile with ifort208 %%% ... use pgf to compile and create a link209 222 210 223 -
trunk/MESOSCALE_DEV/MANUAL/SRC/guide.tex
r493 r1154 100 100 \item make a choice about which step to start with. 101 101 \end{citemize} 102 Note that only one instance of \ttt{runmeso} must be run at the same time, otherwise conflicting versions of initial conditions (and simulation outputs) will be obtained. If running several versions of the model are needed, it is recommended to duplicate a runmeso script for each version and modify those to be linked towards the correct model folder. 102 103 103 104 \sk -
trunk/MESOSCALE_DEV/MANUAL/SRC/installation.tex
r493 r1154 88 88 \end{verbatim} 89 89 90 \begin{finger} 91 \item If you would like to use several versions of the model in separate folders, remember to change the \ttt{\$MESO} and \ttt{\$MMM} environment variables accordingly. 92 \end{finger} 93 90 94 \paragraph{Method 2: You were given a \ttt{svn} link \ttt{the\_link}} \emph{You must have Subversion (\ttt{svn}) installed on your system to follow this method}. Please use the name of our server repository combined to an \ttt{svn checkout} command to get the model sources\footnote{At this stage, it is essential to have registered to the WRF website (see foreword) because our server contains some part of the ARW-WRF sources.}. Please also set the environment variables \ttt{\$MESO} and \ttt{\$MMM} as is detailed below. The first download of the model sources could be a bit long. Compared to method~$1$, this method~$2$ using \ttt{svn} would allow you to easily get the latest updates and bug fixes done on the LMD Martian Mesoscale Model by the development team\footnote{If you are not interested by this feature, please replace the command line featuring \ttt{svn checkout} by the command line \ttt{svn export the\_link/LMDZ.MARS the\_link/MESOSCALE} }. 91 95 … … 109 113 Parallel computations with the Message Passing Interface (MPI) standard are supported by the LMD Martian Mesoscale Model. If you want to use this capability, you would have to add the installation of \ttt{MPICH2} or \ttt{openMPI} as a additional prerequisite. Once the installation is completed, it is required to define the environment variable \ttt{\$WHERE\_MPI} to point in your MPI \ttt{bin} directory, even if you added this directory to your \ttt{\$PATH} variable. 110 114 111 \begin{finger}112 \scriptsize113 \item An installation script for openMPI is available upon request (and information can be easily retrieved from the web).114 \item Here is a brief ``how-to" to install MPICH2, although this surely does not replace reading carefully installation notes and choosing which installation suits best your system. Please download the current stable version of the sources (e.g. we choose here an old version \ttt{mpich2-1.0.8.tar.gz} for the sake of illustration) on the MPICH2 website \url{http://www.mcs.anl.gov/research/projects/mpich2} and install the MPICH2 utilities by the following commands:115 \begin{verbatim}116 mkdir $your_software_dir/MPI ; mv mpich2-1.0.8.tar.gz $your_software_dir/MPI/ ; cd $your_software_dir/MPI117 tar xzvf mpich2-1.0.8.tar.gz ; cd mpich2-1.0.8118 ./configure --prefix=$PWD --with-device=ch3:nemesis > conf.log 2> conferr.log &119 make > mk.log 2> mkerr.log &120 declare -x WHERE_MPI=$your_software_dir/MPI/mpich2-1.0.8/bin121 \end{verbatim}122 \normalsize123 \end{finger}115 %\begin{finger} 116 %\scriptsize 117 %\item An installation script for openMPI is available upon request (and information can be easily retrieved from the web). 118 %\item Here is a brief ``how-to" to install MPICH2, although this surely does not replace reading carefully installation notes and choosing which installation suits best your system. Please download the current stable version of the sources (e.g. we choose here an old version \ttt{mpich2-1.0.8.tar.gz} for the sake of illustration) on the MPICH2 website \url{http://www.mcs.anl.gov/research/projects/mpich2} and install the MPICH2 utilities by the following commands: 119 %\begin{verbatim} 120 %mkdir $your_software_dir/MPI ; mv mpich2-1.0.8.tar.gz $your_software_dir/MPI/ ; cd $your_software_dir/MPI 121 %tar xzvf mpich2-1.0.8.tar.gz ; cd mpich2-1.0.8 122 %./configure --prefix=$PWD --with-device=ch3:nemesis > conf.log 2> conferr.log & 123 %make > mk.log 2> mkerr.log & 124 %declare -x WHERE_MPI=$your_software_dir/MPI/mpich2-1.0.8/bin 125 %\end{verbatim} 126 %\normalsize 127 %\end{finger} 124 128 125 129 \clearemptydoublepage -
trunk/MESOSCALE_DEV/MANUAL/SRC/postproc.tex
r1100 r1154 55 55 56 56 \sk 57 \subsection{General remarks} 57 %This section does not replace the need for you to develop your own plotting tools to suit your needs, which should be not too difficult. 58 The model outputs, as well as the results of \ttt{api} interpolations, are written using the netCDF format which can be read by most software with graphical capabilities. For a quick inspection of model results (especially for checking model outputs while the model is running), we recommend using \ttt{ncview}; for simple manipulations of netCDF files (e.g. concatenation, difference, extraction, \ldots), we recommend using commands from the \ttt{nco} package (see chapter~\ref{install} for website links). Graphical routines based on \ttt{idl}, \ttt{ferret} and \ttt{grads} can be made available upon request (as is, i.e. undocumented yet commented scripts). Successful reading/plotting of the LMD Martian Mesoscale Model outputs on \ttt{matlab}, \ttt{octave}, \ttt{idv} are also reported. It is possible to import the model's outputs to Geographical Information System (GIS) such as \ttt{arcgis}\footnote{\ttt{idl}, \ttt{matlab} and \ttt{arcgis} are neither open-source nor free.}. Since 2012, we developped our own tool named \ttt{PLANETOPLOT} based on \ttt{Python}. More information can be found here: \url{http://www.lmd.jussieu.fr/~aslmd/planetoplot}. 58 59 59 \sk 60 This section does not replace the need for you to develop your own plotting tools to suit your needs, which should be not too difficult. The model outputs, as well as the results of \ttt{api} interpolations, are written using the netCDF format which can be read by most software with graphical capabilities. For a quick inspection of model results (especially for checking model outputs while the model is running), we recommend using \ttt{ncview}; for simple manipulations of netCDF files (e.g. concatenation, difference, extraction, \ldots), we recommend using commands from the \ttt{nco} package (see chapter~\ref{install} for website links). Graphical routines based on \ttt{idl}\footnote{Most graphics in the published papers to date about the LMD Martian Mesoscale Model were made with this software}, \ttt{ferret} and \ttt{grads} can be made available upon request (as is, i.e. undocumented yet commented scripts). Successful reading/plotting of the LMD Martian Mesoscale Model outputs on \ttt{matlab}, \ttt{octave}, \ttt{idv} are also reported. It is possible to import the model's outputs to Geographical Information System (GIS) such as \ttt{arcgis}\footnote{\ttt{idl}, \ttt{matlab} and \ttt{arcgis} are neither open-source nor free.}. 61 62 \sk 63 \subsection{Python scripts} 64 65 \sk 66 Powerful scripts based on \ttt{python+numpy+matplotlib} have been developed to obtain plots from the mesoscale model outputs. All figures in this user manual are based on the script \ttt{pp.py}. This script can be obtained with the commands: \ttt{cd \$MESO ; cd .. ; svn update UTIL ; cd UTIL/PYTHON}. It is required that \ttt{python} and numerical/graphical librairies (\ttt{numpy}, \ttt{scipy}, \ttt{matplotlib}, \ttt{basemap}, \ttt{netcdf}) are installed on your system. Perhaps the simplest way to do so is to install the user-friendly complete python distribution \ttt{epd} (cf. link in chapter~\ref{install} and readme file \ttt{UTIL/PYTHON/README.INSTALL}). 67 68 \sk 69 One of the advantages of an approach using \ttt{python}, apart from its open-source philosophy and the abundant online documentation, is that it allows, in a common framework, for scripting with various options, integrating Fortran routines, manipulating arrays, making plots with various map projections. This is exemplified by the \ttt{pp.py} script. It can both perform interpolation with \ttt{api} for the level requested by the user then generate a map, all that in one simple command line. For instance, Figures~\ref{arsia} in chapter~\ref{compile} has been generated by the following two commands\footnote{The first plot can also be obtained by the command \ttt{domain.py -f name\_of\_file}}: 70 71 \begin{verbatim} 72 pp.py -f wrfout_d01_2024-01-17_02:00:00 -p ortho -b vishires --title "" 73 pp.py -f wrfout_d01_2024-01-17_02:00:00 -i 4 -l 0.01 -v HGT -W -s 2 \ 74 --time 1 --axtime lt -m -1500. -M 20000. --div 20 -c nobar -z 25 75 \end{verbatim} 76 77 \sk 78 Many options are implemented in our \ttt{pp.py} script. The information on the existing options to~\ttt{pp.py} can be obtained by typing \ttt{pp.py -h} (cf. next page). Examples on how to use the \ttt{pp.py} script can be found in \ttt{UTIL/PYTHON/README.PP}. The script can also be edited to suit your needs if the desired option does not exist. 79 80 \begin{finger} 81 \item Please ensure that you have the rights to execute \ttt{pp.py} (otherwise use the \ttt{chmod} command). It is also necessary to set the following environment variables to ensure the command \ttt{pp.py} would execute in any working directory 82 \begin{verbatim} 83 PYTHONPATH=$MESO/../UTIL/PYTHON/ 84 export PYTHONPATH 85 PATH=$PYTHONPATH:$PATH 86 \end{verbatim} 87 \item The option \ttt{-i} in \ttt{pp.py} make use of the Fortran routines \ttt{api.F90} and \ttt{time.F}. The routines have to be converted to \ttt{python} commands using \ttt{f2py}. Please execute the script amongst \ttt{api\_g95.sh}, \ttt{api\_ifort.sh}, \ttt{api\_pgf90.sh} which corresponds to the Fortran compiler installed on your system. Check for errors/warnings in the log files and ensure that the two files \ttt{api.so} and \ttt{timestuff.so} are generated. 88 \end{finger} 89 90 \newpage 91 92 \scriptsize 93 \codesource{winds.py.help} 94 \normalsize 95 96 %% IMPORTANT IMPORTANT 97 %% now python inimeso.py in UTIL/PYTHON 98 %% mettre a jour le help 60 %\sk 61 %\subsection{Python scripts} 62 % 63 %\sk 64 %Powerful scripts based on \ttt{python+numpy+matplotlib} have been developed to obtain plots from the mesoscale model outputs. All figures in this user manual are based on the script \ttt{pp.py}. This script can be obtained with the commands: \ttt{cd \$MESO ; cd .. ; svn update UTIL ; cd UTIL/PYTHON}. It is required that \ttt{python} and numerical/graphical librairies (\ttt{numpy}, \ttt{scipy}, \ttt{matplotlib}, \ttt{basemap}, \ttt{netcdf}) are installed on your system. Perhaps the simplest way to do so is to install the user-friendly complete python distribution \ttt{epd} (cf. link in chapter~\ref{install} and readme file \ttt{UTIL/PYTHON/README.INSTALL}). 65 % 66 %\sk 67 %One of the advantages of an approach using \ttt{python}, apart from its open-source philosophy and the abundant online documentation, is that it allows, in a common framework, for scripting with various options, integrating Fortran routines, manipulating arrays, making plots with various map projections. This is exemplified by the \ttt{pp.py} script. It can both perform interpolation with \ttt{api} for the level requested by the user then generate a map, all that in one simple command line. For instance, Figures~\ref{arsia} in chapter~\ref{compile} has been generated by the following two commands\footnote{The first plot can also be obtained by the command \ttt{domain.py -f name\_of\_file}}: 68 % 69 %\begin{verbatim} 70 %pp.py -f wrfout_d01_2024-01-17_02:00:00 -p ortho -b vishires --title "" 71 %pp.py -f wrfout_d01_2024-01-17_02:00:00 -i 4 -l 0.01 -v HGT -W -s 2 \ 72 % --time 1 --axtime lt -m -1500. -M 20000. --div 20 -c nobar -z 25 73 %\end{verbatim} 74 % 75 %\sk 76 %Many options are implemented in our \ttt{pp.py} script. The information on the existing options to~\ttt{pp.py} can be obtained by typing \ttt{pp.py -h} (cf. next page). Examples on how to use the \ttt{pp.py} script can be found in \ttt{UTIL/PYTHON/README.PP}. The script can also be edited to suit your needs if the desired option does not exist. 77 % 78 %\begin{finger} 79 %\item Please ensure that you have the rights to execute \ttt{pp.py} (otherwise use the \ttt{chmod} command). It is also necessary to set the following environment variables to ensure the command \ttt{pp.py} would execute in any working directory 80 %\begin{verbatim} 81 %PYTHONPATH=$MESO/../UTIL/PYTHON/ 82 %export PYTHONPATH 83 %PATH=$PYTHONPATH:$PATH 84 %\end{verbatim} 85 %\item The option \ttt{-i} in \ttt{pp.py} make use of the Fortran routines \ttt{api.F90} and \ttt{time.F}. The routines have to be converted to \ttt{python} commands using \ttt{f2py}. Please execute the script amongst \ttt{api\_g95.sh}, \ttt{api\_ifort.sh}, \ttt{api\_pgf90.sh} which corresponds to the Fortran compiler installed on your system. Check for errors/warnings in the log files and ensure that the two files \ttt{api.so} and \ttt{timestuff.so} are generated. 86 %\end{finger} 87 % 88 %\newpage 89 % 90 %\scriptsize 91 %\codesource{winds.py.help} 92 %\normalsize 93 % 94 %%% IMPORTANT IMPORTANT 95 %%% now python inimeso.py in UTIL/PYTHON 96 %%% mettre a jour le help 99 97 100 98 \clearemptydoublepage -
trunk/MESOSCALE_DEV/MANUAL/SRC/preproc.tex
r493 r1154 44 44 ls -lt create_readmeteo.exe readmeteo.exe 45 45 cd .. 46 cd WPS/ 46 cd WPS/ 47 clean 47 48 ./configure ## select your compiler + 'NO GRIB2' option 48 49 ./compile … … 53 54 Apart from the executables just compiled, the preprocessing utilities include \ttt{real.exe}, which was compiled by the \ttt{makemeso} script along with the mesoscale model executable \ttt{wrf.exe}\footnote{Even though the name of the executable reads e.g. \ttt{real\_x61\_y61\_z61\_d1\_t1\_p1.exe}, such program is not related to the specific \ttt{makemeso} parameters -- contrary to the \ttt{wrf.exe} executable. We just found that renaming the (possibly similar if the model sources were not modified) \ttt{real.exe} executable was a practical way not to confuse between executables compiled at different moments.} (cf. chapter~\ref{compile}). \ttt{real.exe} should be copied or linked in the simulation directory (e.g. \ttt{TESTCASE} for the Arsia Mons test case) to be at the same level than \ttt{namelist.input}. 54 55 55 \sk 56 \subsection{Preparing input static data} 56 \begin{verbatim} 57 cp your_compdir/real_*.exe your_simulation_directory/ 58 cp your_compdir/wrf_*.exe your_simulation_directory/ 59 \end{verbatim} 60 61 \sk 62 \subsection{Preparing input static data}\label{wpsgeog} 57 63 58 64 \sk … … 82 88 cd $MESO/LMDZ.MARS 83 89 [edit $MESO/LMDZ.MARS/libf/phymars/datafile.h & fill absolute link $MMM/WPS_GEOG] 90 [edit compile if needed] 84 91 ./compile 85 92 \end{verbatim} … … 87 94 \sk 88 95 The other necessary operation to prepare the LMD-MGCM for step~1 is to store a set of initial states for the LMD-MGCM to start with, based on previous typical LMD-MGCM runs having reached equilibrium after ten years of integration. A reference database\footnote{If another database is used, \ttt{compile} must be edited; default is~$64 \times 48 \times 32$ GCM runs with~$2$ tracers.} can be found in the following online archive~\url{ftp://ftp.lmd.jussieu.fr/pub/aslmd/STARTBASE_64_48_32_t2.tar.gz}. This archive must be extracted somewhere on a disk that would be accessible to the system you plan to run the mesoscale model on. A link named~\ttt{startbase} towards the \ttt{STARTBASE\_64\_48\_32\_t2} directory must be created in the directory~\ttt{\$MESO/LMDZ.MARS/myGCM}. 96 97 \begin{verbatim} 98 ln -sf where_is_your_startbase/STARTBASE_64_48_32_t2 startbase 99 \end{verbatim} 100 101 \sk 102 It is important to check that the chosen reference database 1. spans the season desired for the mesoscale simulation; 2. includes the right number of tracers and vertical extent; and 3. uses GCM parameterizations that are close to the ones employed in the subsequent mesoscale simulations. 89 103 90 104 \sk … … 121 135 \begin{verbatim} 122 136 cd $MESO/LMDZ.MARS/myGCM 137 [edit run.def, in particular to modify nday] 123 138 ./launch_gcm ## answer: your desired starting sol for the simulations 124 139 \end{verbatim} … … 157 172 \end{verbatim} 158 173 159 The result of \ttt{geogrid.exe} -- and thus the definition of the mesoscale domain -- can be checked in the NETCDF file \ttt{geo\_em.d01.nc} (using for instance \ttt{ncview}, or your favorite graphical interface for netCDF files, or python-based scripts as in section~\ref{postproc}). If you are unhappy with the results or you want to change the location of the mesoscale domain on the planet, the horizontal resolution, the number of grid points \ldots, please modify the parameter file \ttt{namelist.wps}, content thereof is reproduced/commented on the next page\footnote{You may find the corresponding file in \ttt{\$MMM/SIMU/namelist.wps\_example}.}, and execute again \ttt{geogrid.exe}.174 The result of \ttt{geogrid.exe} -- and thus the definition of the mesoscale domain -- can be checked in the NETCDF file \ttt{geo\_em.d01.nc} e.g. with topographical fields \ttt{HGT\_M} \ttt{HGT\_U} \ttt{HGT\_V} (using for instance \ttt{ncview}, or your favorite graphical interface for netCDF files, or python-based scripts as in section~\ref{postproc}). If you are unhappy with the results or you want to change the location of the mesoscale domain on the planet, the horizontal resolution, the number of grid points \ldots, please modify the parameter file \ttt{namelist.wps}, content thereof is reproduced/commented on the next page\footnote{You may find the corresponding file in \ttt{\$MMM/SIMU/namelist.wps\_example}.}, and execute again \ttt{geogrid.exe}. 160 175 161 176 \begin{finger} … … 186 201 \item \ttt{'32ppd\_HRalb'}: fine-resolution albedo, coarse-resolution thermal inertia, 32ppd topography. 187 202 \end{citemize} 203 The corresponding dataset must have been built in the \ttt{WPS\_GEOG} folder previously (see section~\ref{wpsgeog}). 188 204 189 205 \sk
Note: See TracChangeset
for help on using the changeset viewer.