aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/typeprops.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-12-02 13:46:04 -0500
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 18:25:42 +0000
commit9b671a477522240bf556698ab08690e3423ffd50 (patch)
tree44a33d8022b0939450ab186b3d97c3fe8b072691 /Carpet/CarpetLib/src/typeprops.hh
parentcefdd1989d0641e9cf3da455502255ea333cd0cb (diff)
CarpetLib: Add comments to typeprops.hh
Diffstat (limited to 'Carpet/CarpetLib/src/typeprops.hh')
-rw-r--r--Carpet/CarpetLib/src/typeprops.hh5
1 files changed, 2 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/typeprops.hh b/Carpet/CarpetLib/src/typeprops.hh
index 8477530bb..f2bf44149 100644
--- a/Carpet/CarpetLib/src/typeprops.hh
+++ b/Carpet/CarpetLib/src/typeprops.hh
@@ -10,9 +10,7 @@ struct typeprops {
typedef T complex;
typedef T real;
// Create a complex number from a real number
- static inline complex fromreal (real const x) { return x; }
- // Return the specific Cactus variable type for a Cactus variable
- // type
+ static inline complex const& fromreal (real const& x) { return x; }
};
#ifdef HAVE_CCTK_COMPLEX8
@@ -44,6 +42,7 @@ struct typeprops <CCTK_COMPLEX32> {
+// Return the specific Cactus variable type for a Cactus variable type
static inline int specific_cactus_type (int const vartype)
{
switch (vartype) {