next up previous contents
Next: Fortran Modules Up: Fortran Routines Previous: Fortran Example   Contents

Cactus Fortran Functions

Cactus Fortran functions, for example, CCTK_MyProc and CCTK_Equals, can all be declared by adding the statement

#include "cctk_Functions.h"
near the top of the file, and adding the declaration
DECLARE_CCTK_FUNCTIONS
to a module or a subroutine after the implicit none statement, but before any executable code.