[cig-commits] r22808 - seismo/3D/SPECFEM3D/trunk/CUBIT_GEOCUBIT
dkomati1 at geodynamics.org
dkomati1 at geodynamics.org
Fri Sep 20 10:37:05 PDT 2013
Author: dkomati1
Date: 2013-09-20 10:37:05 -0700 (Fri, 20 Sep 2013)
New Revision: 22808
Modified:
seismo/3D/SPECFEM3D/trunk/CUBIT_GEOCUBIT/run_cubit2specfem3d.py
Log:
added the right paths to CUBIT_GEOCUBIT/run_cubit2specfem3d.py
Modified: seismo/3D/SPECFEM3D/trunk/CUBIT_GEOCUBIT/run_cubit2specfem3d.py
===================================================================
--- seismo/3D/SPECFEM3D/trunk/CUBIT_GEOCUBIT/run_cubit2specfem3d.py 2013-09-20 17:32:11 UTC (rev 22807)
+++ seismo/3D/SPECFEM3D/trunk/CUBIT_GEOCUBIT/run_cubit2specfem3d.py 2013-09-20 17:37:05 UTC (rev 22808)
@@ -1,14 +1,20 @@
#!/usr/bin/env python
-import cubit
import boundary_definition
import cubit2specfem3d
import os
import sys
+# put the path to your installation of the "bin" directory of the CUBIT package here
+sys.path.append("/home/komatits/bin/cubit/bin")
+import cubit
+
+# let us also add the local GEOCUBIT library
+sys.path.append("./geocubitlib")
+
# define the name of the CUBIT file to convert to SPECFEM format in the line below
-cubit.cmd('open "large_test_cpml.cub"')
-#cubit.cmd('open "test_cmpl_2layers.cub"')
+#cubit.cmd('open "large_test_cpml.cub"')
+cubit.cmd('open "test_cmpl_2layers.cub"')
###### This is boundary_definition.py of GEOCUBIT
More information about the CIG-COMMITS
mailing list