gibuu is hosted by Hepforge, IPPP Durham
GiBUU

Changes between Version 1 and Version 2 of HowToIfortTraceback


Ignore:
Timestamp:
Dec 9, 2008, 8:18:32 PM (16 years ago)
Author:
gallmei
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToIfortTraceback

    v1 v2  
    1212}}}
    1313
    14 It is possible to use the same machinery for your own programmer purposes:
     14It is possible to use the same machinery for your own programmer purposes.[[BR]]
     15It is also possible, to emit an error message just as a warning and return to the calling routines.
     16
     17See also: Ifort documentation, TraceBackQQ
     18
     19
     20----
     21'''Using GiBUU:'''
     22
     23Insert at the beginning of your module:
     24{{{
     25    USE CallStack
     26}}}
     27and at the position, where you want to get the error message:
     28{{{
     29    call TRACEBACK([string],[user_exit_code])
     30}}}
     31
     32The both optional arguments are:
     33
     34 * ''string'': Text to be written
     35 * ''user_exit_code'':  By specifying a user exit code of -1, control returns to the calling program. Specifying a user exit
     36   code with a positive value requests that specified value be returned to the operating system. The default
     37   value is 0, which causes the application to abort execution.
     38
     39If you are not compiling with ifort: the behavior of the module stays the same, just without printing the call stack; text is written or not, code stops or not.
     40
     41----
     42'''In General:'''
    1543
    1644
     
    2452}}}
    2553
    26 It is also possible, to emit an error message just as a warning and return to the calling routines.
    27 
    28 See also: Ifort documentation, TraceBackQQ