You can use mrun for running PALM in batch mode as well as for running it interactively. For interactive runs, you must (naturally) be logged in on the respective computer. For this computer the subroutines of the model must have been precompiled (see chapter 5.0). Files containing user-defined code must be stored in the directory given by the variable %add_source_path in the mrun-configuration file .mrun.config. All output-files possibly created by the model and requested by the user to be kept after the run are copied to directories on the local host corresponding to the specifications in the configuration file (in this case the file attribute tr does not cause transfer to another computer).
Since model runs usually require large amounts of CPU time, interactive runs may not be feasible, since in interactive mode CPU time is strongly limited on many hosts and runs will be aborted after the time limit has been exceeded. However, an interactive run makes sense if a suitable debugger is available, which may be used for error tracing in the model (here, error tracing in the user-defined software is meant). The preparations neccessary for debugging are described in the following. This description is limited to the IBM Regatta "hanni" and "berni" of the HLRN.
If certain routines of the
are to be debugged for errors, the complete source code of
the model, including the user-defined code, must be compiled
with special debug compiler options. For this purpose, at least the
following three lines must be included in the mrun configuration
ibmh parallel debug
:invalid::enable:-qsigtrap ibmh parallel debug
:invalid::enable:-qsigtrap:-lesslsmp ibmh parallel debug
(Attention: in the
the compiler and linker options (fopts
written in one line without any blank space before and after the
Using the compiler
debugable code is created
and check of array bounds is
switched on during run time. Option "-qinitauto=FF"
automatic variables (unfortunately not the global values of modules) to
options are needed
in order to terminate the run in case of any floating point errors
(otherwise the run will not terminate and errors can hardly be
The mrun call for debugging needs an extended argument for the option -K:
The argument of option -s must list all source code files of the default PALM code.
After compiling, the debugger TotalView is automatically called by mrun. With its assistance the user has to start the program execution manually, to set breakpoints, etc.. User manuals of TotalView are available online.
caused by errors in the
user-defined code should usually be found
unassisted. If the termination point lies outside the user code (in the
default model code), the PALM group can be asked for
assistance, but please do not expect any quick response. It is
emphasized again that error tracing and programming
user-defined code requires more or less precise knowledge of the
internal structure of PALM (see beginning of chapter
Last change: $Id: chapter_3.6.html 83 2007-04-19 16:27:07Z raasch $