[cig-commits] r22180 - short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8

willic3 at geodynamics.org willic3 at geodynamics.org
Thu Jun 6 18:47:47 PDT 2013


Author: willic3
Date: 2013-06-06 18:47:47 -0700 (Thu, 06 Jun 2013)
New Revision: 22180

Modified:
   short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/README
   short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/greensfns.cfg
   short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/step21.cfg
Log:
Cleanup related to Green's function example.



Modified: short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/README
===================================================================
--- short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/README	2013-06-06 00:59:51 UTC (rev 22179)
+++ short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/README	2013-06-07 01:47:47 UTC (rev 22180)
@@ -32,7 +32,12 @@
 
 where xx is the number of the desired example.
 
+Note that the exception to this is step21.cfg (Green's function example).
+It is run as follows:
 
+pylith step21.cfg --problem=pylith.problems.GreensFns
+
+
 ----------------------------------------------------------------------
 DESCRIPTION OF FILES
 ----------------------------------------------------------------------

Modified: short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/greensfns.cfg
===================================================================
--- short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/greensfns.cfg	2013-06-06 00:59:51 UTC (rev 22179)
+++ short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/greensfns.cfg	2013-06-07 01:47:47 UTC (rev 22180)
@@ -50,27 +50,4 @@
 db_impulse_amplitude.iohandler.filename = spatialdb/impulse_amplitude.spatialdb
 db_impulse_amplitude.query_type = nearest
 
-# ----------------------------------------------------------------------
-# output
-# ----------------------------------------------------------------------
-# Domain
-[greensfns.formulation.output.domain]
-writer.filename = output/step21.h5
-
-# Points
-[greensfns.formulation.output.points]
-writer.filename = output/step21-points.h5
-
-# Fault
-[greensfns.interfaces.fault.output]
-writer.filename = output/step21-fault.h5
-vertex_info_fields = [area]
-
-# Materials
-[greensfns.materials.upper_crust.output]
-writer.filename = output/step21-upper_crust.h5
-
-[greensfns.materials.lower_crust.output]
-writer.filename = output/step21-lower_crust.h5
-
 # End of file

Modified: short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/step21.cfg
===================================================================
--- short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/step21.cfg	2013-06-06 00:59:51 UTC (rev 22179)
+++ short/3D/PyLith/branches/v1.7-trunk/examples/3d/hex8/step21.cfg	2013-06-07 01:47:47 UTC (rev 22180)
@@ -24,13 +24,6 @@
 # Output will be directed to directory output.
 
 # ----------------------------------------------------------------------
-# mesh_generator
-# ----------------------------------------------------------------------
-[pylithapp.mesh_generator]
-distributor.write_partition = True
-distributor.data_writer = pylith.meshio.DataWriterHDF5Mesh
-
-# ----------------------------------------------------------------------
 # problem
 # ----------------------------------------------------------------------
 [pylithapp.problem.formulation.time_step]
@@ -108,10 +101,12 @@
 # Define output manager for domain output.
 [pylithapp.problem.formulation.output.domain]
 writer = pylith.meshio.DataWriterHDF5Mesh
+writer.filename = output/step21.h5
 
 # Define output manager for points output.
 [pylithapp.problem.formulation.output.points]
 writer = pylith.meshio.DataWriterHDF5Mesh
+writer.filename = output/step21-points.h5
 
 # Point coordinates will be read from greensfns_points.txt.
 reader.filename = greensfns_points.txt
@@ -123,6 +118,8 @@
 # Define output manager for fault output.
 [pylithapp.problem.interfaces.fault.output]
 writer = pylith.meshio.DataWriterHDF5SubSubMesh
+writer.filename = output/step21-fault.h5
+vertex_info_fields = [area]
 
 # We will not be writing any cell_info or cell_data fields for material
 # output.
@@ -130,12 +127,16 @@
 cell_info_fields = []
 cell_data_fields = []
 writer = pylith.meshio.DataWriterHDF5Mesh
+writer.filename = output/step21-upper_crust.h5
 
 [pylithapp.problem.materials.lower_crust.output]
 cell_info_fields = []
 cell_data_fields = []
 writer = pylith.meshio.DataWriterHDF5Mesh
+writer.filename = output/step21-lower_crust.h5
 
 # Mesh partition information.
-[pylithapp.mesh_generator.distributor.data_writer]
-filename = output/step21-partition.h5
+[pylithapp.mesh_generator]
+distributor.write_partition = True
+distributor.data_writer = pylith.meshio.DataWriterHDF5Mesh
+distributor.data_writer.filename = output/step21-partition.h5



More information about the CIG-COMMITS mailing list