]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add dummy constructors for points of some dimension with parameter
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Jun 1999 16:37:24 +0000 (16:37 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Jun 1999 16:37:24 +0000 (16:37 +0000)
lists of another length.

git-svn-id: https://svn.dealii.org/trunk@1474 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/point.h

index 9ea1ecd648a18720483290b7f87245bc0ca4064a..1ed8336cad2a021d50f7959b1857c86255d931a9 100644 (file)
@@ -140,6 +140,10 @@ class Point : public Tensor<1,dim> {
     DeclException1 (ExcInvalidIndex,
                    int,
                    << "Invalid index " << arg1);
+                                    /**
+                                     * Exception
+                                     */
+    DeclException0 (ExcInvalidConstructorCalled);
 };
 
 
@@ -173,6 +177,22 @@ Point<1>::Point (const double x) {
 
 
 
+template <>
+inline
+Point<1>::Point (const double, const double) {
+  Assert (false, ExcInvalidConstructorCalled());
+};
+
+
+
+template <>
+inline
+Point<1>::Point (const double, const double, const double) {
+  Assert (false, ExcInvalidConstructorCalled());
+};
+
+
+
 template <>
 inline
 Point<2>::Point (const double x, const double y) {
@@ -182,6 +202,14 @@ Point<2>::Point (const double x, const double y) {
 
 
 
+template <>
+inline
+Point<2>::Point (const double, const double, const double) {
+  Assert (false, ExcInvalidConstructorCalled());
+};
+
+
+
 template <>
 inline
 Point<3>::Point (const double x, const double y, const double z) {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.