diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-03-17 15:13:07 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-03-17 15:13:07 +0000 |
commit | fae2cdffde2057be27595b0258eab7b3d2db54f8 (patch) | |
tree | 69b50c59249095ea0f4b9cf9d13aa0b78801f207 /doc/FAQ | |
parent | 33c465ecc946e4aaae2fcd5c589eaf49047db624 (diff) |
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
Diffstat (limited to 'doc/FAQ')
-rw-r--r-- | doc/FAQ | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -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 |