Next: The Function Information File
Up: Advanced Topics
Previous: The Control File
The user functions are designed to allow easy addition of a custom photon
spectral model to the program. Photon model terms 25 and 26 are user
functions A and B. The provided versions may be easily replaced with a custom
version. In the following directions, we assume the VMS OS.
- Set default to your own directory,
- Define the MFIT logicals in the normal manner
(section 1.2),
- Copy mfit_src_dir:mfit_user_func_a.for to the your directory
(and/or ..._B),
- Use this file as a template to write the custom function. The
function must have 11 arguments: the energy for which the function is
to be evaluated and 10 parameters, not all of which need be used. The
first parameter must be the amplitude or proportionality factor.
- Compile the custom function via:
FORTRAN/EXTEND mfit_user_func_A.
- Copy [...wingspan.setup_vms]mfit_lib.olb to your directory.
- Replace the old version of the
function with the custom version via
LIBRARY/REPLACE mfit_lib
mfit_user_func_a
- Link the new executable via [...wingspan.setup_vms]link.
Do this in the directory containing your version of the library,
- Change the logical MFIT_SHARE_DEF in wing.pro to point to
the new executable. You
MUST use the full filename including device and directory.
- You may wish to change the term name, parameter names and units,
etc. by editing the MFIT_INFO_FILE, as described in
section 5.4.
You must leave the number of parameters (10) unchanged.
Robert S. Mallozzi
Thu Sep 5 10:38:07 CDT 1996
BATSE Home Page
Responsible Manager:
Jerry Fishman
Web Curator:
Valerie Connaughton
Last Updated: November 8, 1996.