From fae2cdffde2057be27595b0258eab7b3d2db54f8 Mon Sep 17 00:00:00 2001 From: allen Date: Mon, 17 Mar 2003 15:13:07 +0000 Subject: E14 I write my thorns with Fortran, do you have any general advice. Yes. Read the section "Fortran Thorn Writers" in the Users Guide, and follow these general recommendations - use IMPLICIT NONE in your Cactus subroutines and functions, this will help in finding errors at compile time. E15 In my Fortran thorn the value of a Cactus integer parameter is totally wrong when I print it, but when I print it from C it is fine. Check that you remembered to add DECLARE_CCTK_PARAMETERS to the declaration area of the subroutine. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3175 17b73243-c579-4c4c-a9d2-2d5706c11dac --- doc/FAQ | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'doc/FAQ') diff --git a/doc/FAQ b/doc/FAQ index 58661f1b..42dfa119 100644 --- a/doc/FAQ +++ b/doc/FAQ @@ -1,7 +1,7 @@ Cactus Code Frequently Asked Questions -$Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/doc/FAQ,v 1.61 2003-03-11 07:58:44 allen Exp $ +$Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/doc/FAQ,v 1.62 2003-03-17 15:13:07 allen Exp $ Also available at http://www.cactuscode.org/Documentation/FAQ @@ -224,6 +224,11 @@ E12 I'm getting wierd syntax errors in Fortran code, with an extra E13 I want to write the value of a KEYWORD parameter in Fortran code to a file, but nothing I try works. +E14 I write my thorns with Fortran, do you have any general advice. + +E15 In my Fortran thorn the value of a Cactus integer parameter is totally + wrong when I print it, but when I print it from C it is fine. + ------------------------------------------------------------------------------ General @@ -1213,6 +1218,20 @@ E13 I want to write the value of a KEYWORD parameter in Fortran code to want to print the value to the standard output there is also the routine CCTK_PrintString. +E14 I write my thorns with Fortran, do you have any general advice. + + Yes. Read the section "Fortran Thorn Writers" in the Users Guide, and + follow these general recommendations + + - use IMPLICIT NONE in your Cactus subroutines and functions, this + will help in finding errors at compile time. + +E15 In my Fortran thorn the value of a Cactus integer parameter is totally + wrong when I print it, but when I print it from C it is fine. + + Check that you remembered to add DECLARE_CCTK_PARAMETERS to the + declaration area of the subroutine. + ------------------------------------------------------------------------------ General -- cgit v1.2.3