diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-10-27 15:38:42 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-10-27 15:38:42 +0000 |
commit | 125f4d426329c16df2a5307cac4373ec20459b80 (patch) | |
tree | 280aa9a8a7e9d17eeb10077dcb96c185ee02d0d9 /doc/UsersGuide/ThornWriters.tex | |
parent | 40eee8fdb5507b1ff9020afb36d16dc834133ba3 (diff) |
Explain changes to function aliasing in Fortran.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3440 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/UsersGuide/ThornWriters.tex')
-rw-r--r-- | doc/UsersGuide/ThornWriters.tex | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/UsersGuide/ThornWriters.tex b/doc/UsersGuide/ThornWriters.tex index 6d75dcf8..8a908941 100644 --- a/doc/UsersGuide/ThornWriters.tex +++ b/doc/UsersGuide/ThornWriters.tex @@ -3820,10 +3820,11 @@ USES FUNCTION SumStuff } A prototype of this function will be available to any C routine that -includes the {\tt cctk.h} header file. However, in a Fortran file that -uses the {\tt implicit none} declaration the function will have to be -explicitly declared; a definition will not be included in the {\tt - DECLARE\_CCTK\_FUNCTIONS} macro. The keywords {\tt IN} and {\tt OUT} +includes the {\tt cctk.h} header file. +In a Fortran file, the declaration of the function will be included +in the {\tt DECLARE\_CCTK\_FUNCTIONS} macro, which is available after +the statement \texttt{\#include "cctk\_Functions.h"}. +The keywords {\tt IN} and {\tt OUT} work in the same fashion as {\tt INTENT} statements in Fortran 90. That is, the C prototype will expect an argument with intent {\tt IN} to be a value and one with intent {\tt OUT} to be a pointer. There |