install.tex 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. The whole package, containing the models ``Planet Simulator'' and ``PUMA''
  2. along with the {\bf mo}del {\bf st}arter ``most''.
  3. The following subsection shows the commands to use for installation,
  4. assuming your downloadfile is named ```Most17.tgz´´´. For other
  5. formats like zip use unzip instead of tar.
  6. \section{Quick Installation}
  7. \begin{verbatim}
  8. tar -zxvf Most17.tgz
  9. cd Most17
  10. ./configure.sh
  11. ./most.x
  12. \end{verbatim}
  13. If your tar command doesn't support the ``-z'' option (e.g. on SOLARIS),
  14. type instead:
  15. \begin{verbatim}
  16. gunzip Most17.tgz
  17. tar -xvf Most17.tar
  18. cd Most17
  19. ./configure.sh
  20. ./most.x
  21. \end{verbatim}
  22. If this sequence of commands produces error messages,
  23. consult the FAQ (Frequently Asked Questions) and the README files
  24. in the Most17 directory. They are in plain text files that can be read with
  25. the more command or any other text editor.
  26. \section{Most17 directory }
  27. \begin{verbatim}
  28. home/Most17> ls -lg
  29. -rw-r--r-- 3730 FAQ <- Frequently Asked Questions
  30. -rw-r--r-- 7862 NEW_IN_VERSION_17 <- New in this version
  31. drwxr-xr-x 748 Plasim_RM_17 <- LaTeX source for RM
  32. drwxr-xr-x 612 Plasim_UG_17 <- LaTeX source for UG
  33. drwxr-xr-x 1122 Puma_UG_17 <- LaTeX source for UG
  34. -rw-r--r-- 718 README <- Read this first
  35. -rw-r--r-- 617 README.md <- File for download page
  36. -rw-r--r-- 1226 README_COUPLING_PLASIM_PUMA <- sic
  37. -rw-r--r-- 168 README_MAC_USER <- Notes for MAC user
  38. -rw-r--r-- 462 README_UBUNTU <- Notes for UBUNTU user
  39. -rw-r--r-- 698 README_WINDOWS_USER <- Notes for Windows user
  40. -rw-r--r-- 1548 cc_check.c <- Used by configure script
  41. -rwxr-xr-x 57 cleanplasim <- Empty run, bld and bin for PLASIM
  42. -rwxr-xr-x 51 cleanpuma <- Empty run, bld and bin for PUMA
  43. -rwxr-xr-x 48 cleansam <- Empty run, bld and bin for SAM
  44. -rwxr-xr-x 161 cmdpuma <- Build GUI-less PUMA
  45. -rwxr-xr-x 5611 configure.sh <- Configure script (for bash shell)
  46. -rw-r--r-- 308 csub.c <- Used by configure script
  47. -rw-r--r-- 234 f90check.f90 <- Used by configure script
  48. drwxr-xr-x 102 images <- Most images
  49. -rw-r--r-- 81 make_most <- Used by configure script
  50. -rw-r--r-- 154 makecheck <- Used by configure script
  51. -rw-r--r-- 108 makedebug <- Used by configure script
  52. -rw-r--r-- 84 makefile <- Makefile for building most.x
  53. -rw-r--r-- 113461 most.c <- C source code for most
  54. drwxr-xr-x 306 plasim <- Planet Simulator directory tree
  55. drwxr-xr-x 238 postprocessor <- Postprocessor source and docs
  56. drwxr-xr-x 306 puma <- PUMA directory tree
  57. drwxr-xr-x 510 sam <- SAM directory tree
  58. drwxr-xr-x 680 tools <- Some tools
  59. \end{verbatim}
  60. The directory structure must not be changed! Even empty directories must be
  61. kept as they are, because the Most program relies on their existence!
  62. For each model, currently ``Planet Simulator'', ``SAM'', and ``PUMA'', a directory exists
  63. (plasim or sam or puma) with the following subdirectories:
  64. \begin{verbatim}
  65. Most17/puma> ls -lg
  66. drwxr-xr-x 2 128 bin <- model executables
  67. drwxr-xr-x 2 1824 bld <- build directory
  68. drwxr-xr-x 2 280 dat <- initial and boundary data
  69. drwxr-xr-x 2 80 doc <- documentation, user's guide, reference manual
  70. drwxr-xr-x 2 928 run <- run directory
  71. drwxr-xr-x 2 1744 src <- source code
  72. \end{verbatim}
  73. After installation only ``dat'', ``doc'' and ``src'' contain files.
  74. All other directories are empty.
  75. ``MoSt'' (the executable is named most.x) is used to define parameters,
  76. build the model, create a runscript and optional start the model.
  77. The directories of the model are used in the following manner:
  78. \section{Model build phase}
  79. Most writes an executable shell script to the ``bld'' directory
  80. and then executes it.
  81. First, it copies all necessary source files from ``src'' to ``bld''
  82. and modifies them according to the selected parameter configuration.
  83. Modification of source code is necessary for vertical and horizontal
  84. resolution changes, and when using more than one processor (parallel program
  85. execution). The original files in the ``src`` directory are not changed by MoSt.
  86. The program modules are then compiled and linked using the make command,
  87. also issued by MoSt. MoSt provides two different makefiles:
  88. one for the single CPU version and the other for the parallel version
  89. (using MPI, the Message Passing Interface).
  90. For Planet Simulator the resolution and CPU parameters are coded into the filename of the
  91. executable, in order that there are different names for different versions.
  92. E.g. the executable ``most\_plasim\_t21\_l10\_p2.x''
  93. is an executable compiled for a horizontal resolution of T21,
  94. a vertical resolution of 10 levels and 2 CPU's.
  95. PUMA and SAM use universal executables, that can be used for different
  96. resolutions, because they use dynamical array allocation at runtime.
  97. The executable is copied to the model's ``bin'' directory
  98. at the end of the build.
  99. Rebuilding may be forced by using the {clean\modir} command
  100. in the most directory.
  101. The build directory is not cleared after usage. The user may want
  102. to modify the makefile or the build script for his own purposes
  103. and start the building directly by executing the ``most\_\modir\_build''
  104. script.
  105. For permanent user modifications,
  106. the contents of the ``bld'' directory has to be copied elsewhere,
  107. because each usage of MoSt overwrites its contents.
  108. \section{Model run phase}
  109. After building the model with the selected configuration,
  110. MoSt writes or copies all the necessary files to the model's
  111. ``run'' directory. These are the executable, initial and boundary data,
  112. namelist files containing the parameter, and finally the
  113. run script itself. Depending on the exit selected from MoSt,
  114. either ``Save \& Exit'' or ``Run \& Exit'', the run script is started
  115. from MoSt and takes control of the model run. A checkmark on
  116. GUI invokes the Graphical User Interface allowing the user to control
  117. and display variables during the run.
  118. Again, all the contents of the ``run'' directory are subject to change
  119. by the user. However, it is better to save the changed run setups
  120. in other user-created directories, because each usage of
  121. MoSt will overwrite the contents of the run directory.
  122. Alternatively, the user changed files could be renamed,
  123. because MoSt always generates files with names beginning with ``most\_''
  124. and leaves any other files untouched.
  125. \section{Running long simulations}
  126. For long simulations create a new directory on a file system
  127. that has enough free disk space to store the results.
  128. You can use the ``df'' command to check file systems.
  129. Hint 1: Do not use your home directory if there are file quotas.
  130. Your run may crash due to file quota being exceeded.
  131. Hint 2: If possible use a local disk for long runs.
  132. Network attached storage runs fine, but may slow down the model.
  133. Example:
  134. \begin{itemize}
  135. \item cd Most17
  136. \item ./most.x
  137. \item Select model and resolution
  138. \item Switch GUI off
  139. \item Switch Output on
  140. \item Edit number of years to run
  141. \item Click on ``Save \& Exit''
  142. \item Make a directory, e.g. mkdir /data/longsim
  143. \item cp {\modir/run/*} /data/longsim
  144. \item cd /data/longsim
  145. \item Edit the experiment name in most\_\modir\_run
  146. \item Edit the namelist files if necessary
  147. \item Start the simulation with most\_\modir\_run \&
  148. \end{itemize}