Документ взят из кэша поисковой машины. Адрес оригинального документа : http://theory.sinp.msu.ru/comphep_html/tutorial/node47.html
Дата изменения: Sat Aug 12 07:46:20 2000
Дата индексирования: Mon Oct 1 22:50:17 2012
Кодировка:
Scheme of calls in the CompHEP  session LOCK files CompHEP
 files and commands Files and
 commands in the working directory Contents

Scheme of calls in the CompHEP  session

The command ./comphep being issued from within the WORK directory launches the

$COMPHEP/s_comphep
command. The latter is the main CompHEP  program. Prefix 's_' denotes symbolic. It performs symbolic calculations and generates the C  and Fortran  codes of calculated Feynman diagrams.

Below we would like to describe commands for compilation and numerical module launching. The command names in the C  and Fortran  cases are distinguished by suffixes 'c' and 'f' correspondingly. We shall use the '*' symbol as a common notation for these 'c' and 'f'. The general scheme of calls can be presented by the following diagram

                                  |                    |nCompil*
                                  |make__n_comphep * ->| 
s_comphep -> launch_n_comphep * ->|                    |ld_*
                                  |n_comphep_*

The binary executable n_comphep_* is created in the WORK/results sub-directory as a result of compilation. Other commands are disposed in the $COMPHEP directory. They are shell scripts except of binary s_comphep. It is assumed that s_comphep and launch_n_comphep are started from the WORK directory, whereas other commands are started from within the WORK/results sub-directory.

The program nCompil_* compiles the source code produced prior by s_comphep. After successful compilation it creates a library of object files and then removes the source and the object files.

Another command ld_* calls a linker to create the executable file n_comphep_* for numerical job.

The command make__n_comphep with parameter 'c' or 'f' is used to start nCompil_* and ld_* subsequently.

In its turn, make__n_comphep is started by launch_n_comphep in a special window. In the case of successful compilation the window is closed and just created n_comphep_* is started in another window.

If you copy $COMPHEP/make__n_comphep into your WORK/ directory, then launch_n_comphep will call for your own version. It gives you a possibility to modify a compilation procedure if necessary.

The s_comphep command starts launch_n_comphep via the functions

............
C-compiler
Fortran compiler

of Menu 6 (Fig.) and thus the chain of above calls is realized.

If you have prepared the C  or Fortran  codes you could compile them outside of the symbolic session by the make__n_comphep command with the c/f argument started from within the results directory.

Let us say some words about other programs stored in the $COMPHEP directory. The program genEvents is used to prepare an event flow and histograms using the information saved by Monte Carlo session. The programs unweight, randomize, filter2D, filterND, and mk_tab transform the event flow generated by genEvents. See Section CompHEP  event generator for details. The program tab_view provides the user with a possibility of visual presentation of distributions. See Section Elements of the user interface.


LOCK files CompHEP
 files and commands Files and
 commands in the working directory Contents