Prism 6.0 User's Guide

Using Fortran 90 Generic Procedures

You can use Fortran 90 generic procedures in any Prism command or dialog box that asks for a procedure. If you do so, Prism will prompt you for the name(s) of the specific procedure(s) you want to use.

For example, you use the syntax stop in procedure to set a breakpoint in a procedure. If you use this syntax for a generic procedure, in graphical Prism a dialog box like the one shown in Figure 2-5 would be displayed.

Figure 2-5 Generic Procedure Dialog Box

Graphic

Commands-only Prism would prompt you as in this example:

(prism) stop in fadd
More than one identifier 'fadd'.
Select one of the following names:
0) Cancel
1) `f90_user_op_generic.x`f90_user_op_generic.f90 `fadd 
! real*4 realadd
2) `f90_user_op_generic.x`f90_user_op_generic.f90 `fadd 
! integer*4 intadd
> >

If you press the Return key, you would see a menu like this:

Select one of the following names:
0) Cancel 
1) `f90_user_op_generic.x`f90_user_op_generic.f90`fadd 
! real*4 realadd
2) `f90_user_op_generic.x`f90_user_op_generic.f90`fadd 
! integer*4 intadd
> 

If you choose 0 or press Return, the command is cancelled. If you choose other numbers, Prism sets the breakpoint(s) in the specified procedure(s). For example,

Select one of the following names:
0) Cancel
1) `f90_user_op_generic.x`f90_user_op_generic.f90`fadd 
! real*4 realadd
2) `f90_user_op_generic.x`f90_user_op_generic.f90`fadd 
! integer*4 intadd
> 1
(1) stop in fadd
(prism)