Ignore:
Timestamp:
Jul 15, 2011, 8:45:44 PM (13 years ago)
Author:
aslmd
Message:

MESOSCALE: user manual. some updates: reference namelist.input, env variables in the text, new figures for the new TEST CASE and the FAST CASE for newphys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE_DEV/MANUAL/SRC/installation.tex

    r223 r230  
    7676\section{Main installation of the model sources}
    7777
    78 \paragraph{Method 1: You were given a \ttt{LMD\_MM\_MARS.tar.gz} archive} Please set the environment variable \ttt{\$MOD} to point at the directory where you will install the model and define the environment variable \ttt{\$MMM} as \ttt{\$MOD/LMD\_MM\_MARS}. Copy the \ttt{LMD\_MM\_MARS.tar.gz} file in the \ttt{\$MOD} directory and extract the files. Then execute the \ttt{prepare} script that would do all installation tasks\footnote{Deflate the various compressed archives contained into \ttt{LMD\_MM\_MARS}, download the ARW-WRF sources from the web, apply a (significant) ``Martian patch" to these sources and build the structure of your \ttt{LMD\_MM\_MARS} directory} for you:
     78\paragraph{Method 1: You were given a \ttt{LMD\_MM\_MARS.tar.gz} archive} Please set the environment variable \ttt{\$MESO} to point at the directory where you will install the model and define the environment variable \ttt{\$MMM} as \ttt{\$MESO/LMD\_MM\_MARS}. Copy the \ttt{LMD\_MM\_MARS.tar.gz} file in the \ttt{\$MESO} directory and extract the files. Then execute the \ttt{prepare} script that would do all installation tasks\footnote{Deflate the various compressed archives contained into \ttt{LMD\_MM\_MARS}, download the ARW-WRF sources from the web, apply a (significant) ``Martian patch" to these sources and build the structure of your \ttt{LMD\_MM\_MARS} directory} for you:
    7979%
    8080\begin{verbatim}       
    81 declare -x MOD=/disk/user/MODELS
    82 declare -x MMM=$MOD/LMD_MM_MARS
    83 cp LMD_MM_MARS.tar.gz $MOD
    84 cd $MOD
     81declare -x MESO=/disk/user/MODELS
     82declare -x MMM=$MESO/LMD_MM_MARS
     83cp LMD_MM_MARS.tar.gz $MESO
     84cd $MESO
    8585tar xzvf LMD_MM_MARS.tar.gz
    86 cd $MOD/LMD_MM_MARS
     86cd $MESO/LMD_MM_MARS
    8787./SRC/SCRIPTS/prepare  ## or simply ./prepare if the script is in LMD_MM_MARS
    8888\end{verbatim}
    8989
    90 \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 variable \ttt{\$MOD} and \ttt{\$MMM}. 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 this command line \ttt{svn export the\_link/LMDZ.MARS the\_link/MESOSCALE} }.
     90\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 variable \ttt{\$MESO} and \ttt{\$MMM}. 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 this command line \ttt{svn export the\_link/LMDZ.MARS the\_link/MESOSCALE} }.
    9191
    9292\begin{verbatim}
     
    9595svn update LMDZ.MARS MESOSCALE
    9696cd MESOSCALE
    97 declare -x MOD=$PWD
    98 declare -x MMM=$MOD/LMD_MM_MARS
     97declare -x MESO=$PWD  ## put absolute link in your .bashrc
     98declare -x MMM=$MESO/LMD_MM_MARS
    9999## to get latest updates later on
    100100cd the_name_of_your_local_destination_folder
     
    107107
    108108\sk
    109 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 MPICH2 as a additional prerequisite. Once the installation is completed, it is required to define the environment variable \ttt{\$WHERE\_MPI} to point in your \ttt{mpich} \ttt{bin} directory, even if you added the \ttt{\$MOD/MPI/mpich2-1.0.8/bin} directory to your \ttt{\$PATH} variable.
     109Parallel 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 MPICH2 as a additional prerequisite. Once the installation is completed, it is required to define the environment variable \ttt{\$WHERE\_MPI} to point in your \ttt{mpich} \ttt{bin} directory, even if you added the \ttt{\$your_software_dir/MPI/mpich2-1.0.8/bin} directory to your \ttt{\$PATH} variable.
    110110
    111111\begin{finger}
    112112\item \scriptsize Here is a brief ``how-to" to install MPICH2, although this surely does not replace reading carefully installation notes and choosing what 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} to illustrate the commands) on the MPICH2 website \url{http://www.mcs.anl.gov/research/projects/mpich2} and install the MPICH2 utilities by the following commands:
    113113\begin{verbatim}
    114 mkdir $MOD/MPI
    115 mv mpich2-1.0.8.tar.gz $MOD/MPI
    116 cd $MOD/MPI
     114mkdir $your_software_dir/MPI   
     115mv mpich2-1.0.8.tar.gz $your_software_dir/MPI/
     116cd $your_software_dir/MPI
    117117tar xzvf mpich2-1.0.8.tar.gz
    118118cd mpich2-1.0.8
     
    120120# please wait...
    121121make > mk.log 2> mkerr.log &
    122 declare -x WHERE_MPI=$MOD/MPI/mpich2-1.0.8/bin
     122declare -x WHERE_MPI=$your_software_dir/MPI/mpich2-1.0.8/bin
    123123\end{verbatim}
    124124\normalsize
Note: See TracChangeset for help on using the changeset viewer.