aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/vect.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-02-09 22:20:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-02-09 22:20:00 +0000
commit7a76d94f6d950c862502bb8f23834e78955f9c16 (patch)
tree2d2bf67ee5801b548fdd40ecc136d729e40c424b /Carpet/CarpetLib/src/vect.hh
parent672b51e26a3f1c114389a55987318bad6f87d79c (diff)
CarpetLib: Specialise some vect template members to remove compiler warnings
darcs-hash:20050209222027-891bb-e8501dfa40575303af1338c1d2d4528d08ea273c.gz
Diffstat (limited to 'Carpet/CarpetLib/src/vect.hh')
-rw-r--r--Carpet/CarpetLib/src/vect.hh19
1 files changed, 19 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/vect.hh b/Carpet/CarpetLib/src/vect.hh
index c9209de9c..3db865a08 100644
--- a/Carpet/CarpetLib/src/vect.hh
+++ b/Carpet/CarpetLib/src/vect.hh
@@ -788,6 +788,25 @@ vect (const T x, const T y, const T z, const T t) {
+// Specialise some constructors for lower dimensions
+// These functions are declared, but never defined, so that using them
+// will result in a linker error
+
+template<> vect<int,0>::vect (const int x, const int y);
+template<> vect<int,1>::vect (const int x, const int y);
+
+template<> vect<int,0>::vect (const int x, const int y, const int z);
+template<> vect<int,1>::vect (const int x, const int y, const int z);
+template<> vect<int,2>::vect (const int x, const int y, const int z);
+
+template<> vect<int,0>::vect (const int x, const int y, const int z, const int t);
+template<> vect<int,1>::vect (const int x, const int y, const int z, const int t);
+template<> vect<int,2>::vect (const int x, const int y, const int z, const int t);
+template<> vect<int,3>::vect (const int x, const int y, const int z, const int t);
+
+
+
+
// Specialise for CCTK_REAL
template<>