install.tex 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. The whole package containing the models "Planet Simulator" and "PUMA"
  2. along with "MoSt", the "Model Starter" comes in a single file,
  3. usually named "Most(n).tgz" with (n) specifying a version number.
  4. The following subsection gives an example, assuming version 16.
  5. \section{Quick Installation}
  6. \begin{verbatim}
  7. tar -zxvf Most16.tgz
  8. cd Most16
  9. ./configure.sh
  10. ./most.x
  11. \end{verbatim}
  12. if your tar-command doesn't support the "-z" option (e.g. on Sun UNIX)
  13. type instead:
  14. \begin{verbatim}
  15. gunzip Most16.tgz
  16. tar -xvf Most16.tar
  17. cd Most16
  18. ./configure.sh
  19. ./most.x
  20. \end{verbatim}
  21. If this sequence of commands produces error messages,
  22. consult the "FAQ" (Frequent Asked Questions) and README files
  23. in the {\most} directory. They are plain text files,
  24. that can be read with the command "more" or any text editor.
  25. \section{{\most} directory }
  26. \begin{verbatim}
  27. home/Most16> ls -lG
  28. -rw-r--r-- 1 1548 cc_check.c <- Used by configure.sh
  29. -rwxr-xr-x 1 57 cleanplasim <- Delete run, bld and bin for PLASIM
  30. -rwxr-xr-x 1 51 cleanpuma <- Delete run, bld and bin for PUMA
  31. drwxr-xr-x 2 4096 common <- Topography files
  32. -rwxr-xr-x 1 3911 configure.sh <- The configure script
  33. -rw-r--r-- 1 308 csub.c <- Currently unused
  34. -rw-r--r-- 1 234 f90check.f90 <- Used by configure.sh
  35. -rw-r--r-- 1 3033 FAQ <- Frequently Asked Questions
  36. drwxr-xr-x 2 4096 images <- Directory for images
  37. -rw-r--r-- 1 154 makecheck <- Used by configure.sh
  38. -rw-r--r-- 1 85 makefile <- Used to "make" most.x
  39. -rw-r--r-- 1 107844 most.c <- Source for MoSt (Model Starter)
  40. -rw-r--r-- 1 6399 NEW_IN_VERSION_16 <- New in this version
  41. drwxr-xr-x 8 4096 plasim <- Planet Simulator directory
  42. drwxr-xr-x 2 4096 postprocessor <- Postprocessor directory
  43. drwxr-xr-x 8 4096 puma <- PUMA directory
  44. -rw-r--r-- 1 839 README <- Read this first
  45. -rw-r--r-- 1 191 README_MAC_USER <- Notes for MAC user
  46. -rw-r--r-- 1 698 README_WINDOWS_USER <- Notes for Windows user
  47. \end{verbatim}
  48. The directory structure must not be changed, even empty directories must be
  49. kept as they are, the Most program relies on the existence of these directories!
  50. For each model, currently "Planet Simulator" and "PUMA" exists a directory
  51. (plasim) and (puma) with following subdirectories:
  52. \begin{verbatim}
  53. Most16/plasim> ls -lg
  54. drwxr-xr-x 2 128 bin <- model executables
  55. drwxr-xr-x 2 1824 bld <- build directory
  56. drwxr-xr-x 2 280 dat <- initial and boundary data
  57. drwxr-xr-x 2 80 doc <- documentation, user's guide, reference manual
  58. drwxr-xr-x 2 928 run <- run directory
  59. drwxr-xr-x 2 1744 src <- source code
  60. \end{verbatim}
  61. After installation only "dat", "doc" and "src" contain files,
  62. all other directories are empty.
  63. Running "Most" to setup a model configuration and define an experiment uses the
  64. directories in the following manner:
  65. \section{Model build phase}
  66. Most writes an executable shell script to the "bld" directory
  67. and executes it directly hereafter.
  68. It copies all necessary source files from "src" to "bld" and modifies
  69. them according to the selected parameter configuration.
  70. Modification of source code is necessary for vertical and horizontal
  71. resolution change and for using more than 1 processor (parallel program
  72. execution). The original files in the "src" directory are not changed by Most.
  73. The program modules are then compiled and linked using the "make" command
  74. (in bld/most\_plasim\_build),
  75. also issued by Most. Most provides a makefile named make\_\modir \ for
  76. building the executable. For modules that exist in more than one
  77. version the selection of the module to use is done by environment
  78. variables that are set automatically by MoSt but may be changed
  79. manually by the user. Look into the make\_\modir \ for further information.
  80. The resolution and CPU parameters are coded into the filename of the
  81. executable, in order to have different names for different versions.
  82. E.g. the executable "most\_\modir\_t21\_l10\_p2.x"
  83. is an executable compiled for a horizontal resolution of T21,
  84. a vertical resolution of 10 levels and 2 CPU's.
  85. The executable is copied to the models "bin" directory after building.
  86. Each time Most is used to setup a new experiment it checks the "bin"
  87. directory for a matching executable. If it's there, it's used without
  88. rebuilding otherwise a new executable with the selected parameters
  89. is created. Rebuilding may be forced by using the clean\modir \ command
  90. in the Most directory.
  91. The build directory is not cleared after usage. The user may want
  92. to modify the makefile or the build script for his own purposes
  93. and start the building directly by executing "most\_\modir\_build".
  94. For permanent user modifications
  95. the contents of the "bld" directories have to be copied elsewhere,
  96. because each usage of Most overwrites the contents of "bld".
  97. \section{Model run phase}
  98. After building the model with the selected configuration,
  99. Most writes or copies all necessary files to the model's
  100. "run" directory. These are the executable, initial and boundary data,
  101. namelist files containing the parameter and finally the
  102. run script itself. Depending on the exit from Most,
  103. either "Save \& Exit" or "Run \& Exit", the run script is started
  104. from Most and takes control of the model run. A checkmark on
  105. GUI invokes also the
  106. Graphical User Interface for user control and display
  107. of variables during the run.
  108. Again all contents of the "run" directory are subject of change
  109. for the user. But it would be wise to keep changed run setups
  110. in other, user created directories, because each usage of
  111. Most overwrites the contents of the run directory.
  112. \section{Running long simulations}
  113. For long simulations make a new directory on a filesystem,
  114. that has enough free disk space to store the results.
  115. You may use the "df" command to check filesystems.
  116. Hint 1: Don't use your home directory if there are filequotas.
  117. Your run may crash due to file quota exceeded.
  118. Hint 2: Use a local disk, not NFS mounted filesystems if possible.
  119. The model runs much faster writing output to local disks.
  120. Example:
  121. \begin{itemize}
  122. \item cd {\most}
  123. \item ./most.x
  124. \item Select model and resolution
  125. \item Switch GUI off
  126. \item Switch Output on
  127. \item Edit number of years to run
  128. \item Click on "Save \& Exit"
  129. \item Make a directory, e.g. mkdir /data/longsim
  130. \item cp \modir/run/* /data/longsim
  131. \item cd /data/longsim
  132. \item edit most\_\modir\_run for experiment name
  133. \item edit namelist files if necessary
  134. \item start simulation with most\_\modir\_run \&
  135. \end{itemize}