|
Next: Cactus Fortran Functions Up: Fortran Routines Previous: Parameters Contents Fortran Example
The Fortran routine
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
subroutine MyFRoutine(CCTK_ARGUMENTS)
c I'm very cautious, so I want to declare all variables
implicit none
DECLARE_CCTK_ARGUMENTS
integer flag
flag = 1
call MyNewRoutine(CCTK_PASS_FTOF,flag)
return
end
subroutine MyNewRoutine(CCTK_ARGUMENTS,flag)
implicit none
DECLARE_CCTK_ARGUMENTS
DECLARE_CCTK_PARAMETERS
integer flag
c Main code goes here
return
end
|