linking user-defined code
can add their own (modified) user-interface to a PALM-run by carrying
out the following steps:
above method with including $fname in
the additional source path allows to use different user-interfaces for
different runs at the same time. Just store the respective
interface-files in subdirectories
USER_CODE/cdef, etc. and start mrun with option
abcd“, “-d cdef“,
- Copy the default
(empty) user-interface (file
user_interface.f90) to a directory of your choice, e.g.:
mkdir -p USER_CODE/example
an additional path in the configuration file
.mrun.config to allow mrun
to find and include this file:
default configuration file (trunk/SCRIPTS/.mrun.config.default)
already includes this setting.
- Modify the interface
routines according to your needs.
- Start a PALM run
mrun -d example ...
user_example.f90 will be automatically compiled within
the job and will replace PALM‘s default user-interface.
modified user-interface file cannot be pre-compiled by using mbuild!
programming user-defined code,
errors are frequently made. Possible ways of error
tracing are described in the next chapter.
$Id: chapter_3.5.5.html 62 2007-03-13 02:52:40Z steinfeld $