]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Temporary check-in, ignore this.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 13 Dec 1998 20:53:33 +0000 (20:53 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 13 Dec 1998 20:53:33 +0000 (20:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@704 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/tensor.cc

index 326e0ea5a3d7d6057543c0017ba8581a43874c6b..c49fe232f205ee36165ad5f6ba48ced9463bb118 100644 (file)
@@ -2,11 +2,27 @@
 #include <iostream>
 
 
+DeclException2 (Exc1,
+               int, int,
+               << "arg1=" << arg1 << " arg2=" << arg2);
+
 
 int main () {
   double a[3][3] = {{1, 2, 3}, {3, 4, 5}, {6, 7, 8}};
   double b[3][3] = {{25,31,37}, {45,57,69}, {75,96,117}};
+
+  try 
+    {
+      ThrowIfNot (1>2, Exc1(1,2));
+      cerr << "11111111111111111111";
+    }
+  catch (exception &e)
+    {
+      cerr << e.what();
+      cerr << "33333333333333333333";
+    };
   
+    
   const unsigned int dim=3;
   Tensor<2,dim> t(a);
   Tensor<2,dim> tt;

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.