aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib
diff options
context:
space:
mode:
authorschnetter <>2004-05-04 20:12:00 +0000
committerschnetter <>2004-05-04 20:12:00 +0000
commitd718270d69bbaeca0bea8a7cf6ea56710c2f6889 (patch)
tree806f3f79efa81331378f6c602cebf954ed88f08a /Carpet/CarpetLib
parentba6da9b2bfa37c336598ce1fa85fe6e9bbe44694 (diff)
Remove unused code
darcs-hash:20040504201207-07bb3-b8a9db665cc225198475179abc2d2e6bcd7f2b2f.gz
Diffstat (limited to 'Carpet/CarpetLib')
-rw-r--r--Carpet/CarpetLib/src/vect.hh26
1 files changed, 25 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/vect.hh b/Carpet/CarpetLib/src/vect.hh
index afd38de29..f540fa029 100644
--- a/Carpet/CarpetLib/src/vect.hh
+++ b/Carpet/CarpetLib/src/vect.hh
@@ -1,4 +1,4 @@
-// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/vect.hh,v 1.26 2004/04/18 13:25:56 schnetter Exp $
+// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/vect.hh,v 1.27 2004/05/04 22:12:07 schnetter Exp $
#ifndef VECT_HH
#define VECT_HH
@@ -745,6 +745,30 @@ inline ostream& operator<< (ostream& os, const vect<T,D>& a) {
+#if 0
+// Specialise explicit constructors
+
+/** Constructor for 2-element vectors from 2 elements. */
+template<class T>
+inline vect<T,2>::vect<T,2> (const T x, const T y) {
+ elt[0]=x; elt[1]=y;
+}
+
+/** Constructor for 3-element vectors from 3 elements. */
+vect (const T x, const T y, const T z) {
+ assert (D==3);
+ elt[0]=x; elt[1]=y; elt[2]=z;
+}
+
+/** Constructor for 4-element vectors from 4 elements. */
+vect (const T x, const T y, const T z, const T t) {
+ assert (D==4);
+ elt[0]=x; elt[1]=y; elt[2]=z; elt[3]=t;
+}
+#endif
+
+
+
// Specialise for double
template<>