summaryrefslogtreecommitdiff
blob: 4830f99d6f02a985e4b7c4bbd2ff6891d024b093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- camfr_1.2/camfr/camfr_wrap.cpp	2003-11-03 16:03:13.000000000 +0100
+++ camfr_1.2_new/camfr/camfr_wrap.cpp	2006-02-23 15:29:36.000000000 +0100
@@ -352,7 +352,7 @@
   {
     PyErr_SetString(PyExc_ValueError, 
                     "set_inc_field_function only implemented for slabs.");
-    throw boost::python::argument_error();
+    exit (-1); //throw boost::python::argument_error();
   }
 
   PythonFunction f(o);
@@ -395,7 +395,7 @@
   {
     PyErr_SetString(PyExc_ValueError, 
                     "set_inc_field_gaussian only implemented for slabs.");
-    throw boost::python::argument_error();
+    exit (-1); //throw boost::python::argument_error();
   }
 
   GaussianFunction f(height,width,pos);
@@ -442,7 +442,7 @@
   {
     PyErr_SetString(PyExc_ValueError, 
                     "set_inc_field_plane_Wave only implemented for slabs.");
-    throw boost::python::argument_error();
+    exit (-1); //throw boost::python::argument_error();
   }
 
   Complex index = slab->get_core()->n();