Changeset 230 for trunk/MESOSCALE_DEV/MANUAL/SRC/installation.tex
- Timestamp:
- Jul 15, 2011, 8:45:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE_DEV/MANUAL/SRC/installation.tex
r223 r230 76 76 \section{Main installation of the model sources} 77 77 78 \paragraph{Method 1: You were given a \ttt{LMD\_MM\_MARS.tar.gz} archive} Please set the environment variable \ttt{\$M OD} 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: 79 79 % 80 80 \begin{verbatim} 81 declare -x M OD=/disk/user/MODELS82 declare -x MMM=$M OD/LMD_MM_MARS83 cp LMD_MM_MARS.tar.gz $M OD84 cd $M OD81 declare -x MESO=/disk/user/MODELS 82 declare -x MMM=$MESO/LMD_MM_MARS 83 cp LMD_MM_MARS.tar.gz $MESO 84 cd $MESO 85 85 tar xzvf LMD_MM_MARS.tar.gz 86 cd $M OD/LMD_MM_MARS86 cd $MESO/LMD_MM_MARS 87 87 ./SRC/SCRIPTS/prepare ## or simply ./prepare if the script is in LMD_MM_MARS 88 88 \end{verbatim} 89 89 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{\$M OD} 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} }. 91 91 92 92 \begin{verbatim} … … 95 95 svn update LMDZ.MARS MESOSCALE 96 96 cd MESOSCALE 97 declare -x M OD=$PWD98 declare -x MMM=$M OD/LMD_MM_MARS97 declare -x MESO=$PWD ## put absolute link in your .bashrc 98 declare -x MMM=$MESO/LMD_MM_MARS 99 99 ## to get latest updates later on 100 100 cd the_name_of_your_local_destination_folder … … 107 107 108 108 \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.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{\$your_software_dir/MPI/mpich2-1.0.8/bin} directory to your \ttt{\$PATH} variable. 110 110 111 111 \begin{finger} 112 112 \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: 113 113 \begin{verbatim} 114 mkdir $ MOD/MPI115 mv mpich2-1.0.8.tar.gz $ MOD/MPI116 cd $ MOD/MPI114 mkdir $your_software_dir/MPI 115 mv mpich2-1.0.8.tar.gz $your_software_dir/MPI/ 116 cd $your_software_dir/MPI 117 117 tar xzvf mpich2-1.0.8.tar.gz 118 118 cd mpich2-1.0.8 … … 120 120 # please wait... 121 121 make > mk.log 2> mkerr.log & 122 declare -x WHERE_MPI=$ MOD/MPI/mpich2-1.0.8/bin122 declare -x WHERE_MPI=$your_software_dir/MPI/mpich2-1.0.8/bin 123 123 \end{verbatim} 124 124 \normalsize
Note: See TracChangeset
for help on using the changeset viewer.