17 | | The default configuration file ({{{trunk/SCRIPTS/.mrun.config.default}}}) already includes this setting.\\ |
18 | | 3. Modify the interface routines according to your needs.\\ |
19 | | 4. Start a PALM run by executing |
| 19 | The files {{{user_***.f90}}} will be automatically compiled as part of this run, before PALM is executed, and will replace {{{PALM}}}‘s respective default user-interface routines. The compiled binaries are put into a folder named {{{SOURCES_FOR_RUN_$configuration_identifier_$run_identifier}}}, where they replace the default binaries that have been created via {{{palmbuild}}}. The {{{SOURCES_FOR_RUN}}} folder is created in the directory that is defined by variable {{{bla}}} in the configuration file. \\\\ |
| 20 | |
| 21 | Since the run identifier is part of the user-interface's SOURCE path, you can use different interfaces for different runs at the same time. Just store the respective interface-files in sub-folders {{{JOB/abcd/USER_CODE}}}, {{{JOBS/cdef/USER_CODE}}}, etc. and call {{{palmrun}}} with option "{{{-d abcd}}}", "{{{-d cdef}}}", etc. \\\\ |
| 22 | If you like to add additional routines which are not part of the default user-interface (see the [wiki:doc/app/userint/int list of available interface routines]), you can a) append this routines to the default user-interface file {{{user_additional_routines.f90}}} or b) create new files in your user-interface folder. These files must have names different from the default {{{PALM}}} source code files. In case of b), you must also copy the default {{{Makefile}}} into the user-interface folder, e.g.: |
25 | | The above method with including {{{$fname}}} in the additional source path allows using different user interfaces for different runs at the same time. Just store the respective interface-files in subdirectories {{{USER_CODE/abcd}}}, {{{USER_CODE/cdef}}}, etc. and start '''mrun''' with option "{{{-d abcd}}}", "{{{-d cdef}}}", etc. \\\\ |
26 | | If the user wants to add additional routines, he/she can a) put them into the default user-interface file {{{user_additional_routines.f90}}} or b) can create new files in the additional source directory. These files must have names different from the default {{{PALM}}} source code files. In case of b), the user must also copy the default makefile into the additional source directory: |
27 | | {{{ |
28 | | cp trunk/SOURCE/Makefile USER_CODE/example |
29 | | }}} |
30 | | The makefile must be modified appropriately following the "make"-rules in order to allow the new files to be compiled.\\\\ |
31 | | '''The modified user-interface files cannot be pre-compiled by using mbuild! '''\\\\ |
32 | | While programming user-defined code, errors are frequently made. For possible ways of error tracing, see [../../intdbg Debugging]. |
| 28 | It is important to know, that in general '''the modified user-interface files cannot be pre-compiled.''' with {{{palmbuild}}}. \\\\ |