summaryrefslogtreecommitdiff
path: root/src/main/Complex.c
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-07-06 13:12:36 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-07-06 13:12:36 +0000
commit49d3a9f1de541159a60d76c317dfc2f7e4b74fd4 (patch)
tree6d5cff65627bed5d7f135800618acc5f1323c7e2 /src/main/Complex.c
parentdf83f6129d4e594f5c3062a2a0f20fe7efcf967f (diff)
Fixed typo in CCTK_CmplxReal() which always returned the imaginary part.
Now output for complex numbers should be okay. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1709 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Complex.c')
-rw-r--r--src/main/Complex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/Complex.c b/src/main/Complex.c
index e6e301dc..9e04a334 100644
--- a/src/main/Complex.c
+++ b/src/main/Complex.c
@@ -57,7 +57,7 @@ CCTK_COMPLEX CCTK_Cmplx(CCTK_REAL Re, CCTK_REAL Im)
@@*/
CCTK_REAL CCTK_CmplxReal(CCTK_COMPLEX complex_number)
{
- return complex_number.Im;
+ return complex_number.Re;
}
/*@@