[cig-commits] [commit] maint, williams/add-examples-grav2d: Cleanup of journal files. (eaf34a8)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 15:42:01 PST 2014


Repository : https://github.com/geodynamics/pylith

On branches: maint,williams/add-examples-grav2d
Link       : https://github.com/geodynamics/pylith/compare/f33c75b19fd60eedb2a3405db76a1fee333bb1d7...5b6d812b1612809fea3bd331c4e5af98c25a536a

>---------------------------------------------------------------

commit eaf34a80bdad3303a75333bb5dab3b87bcbe08aa
Author: Brad Aagaard <baagaard at usgs.gov>
Date:   Sun Jun 22 12:31:17 2014 -0700

    Cleanup of journal files.
    
    Move common settings to pylithapp.cfg. Reduce total time to 100*yr.


>---------------------------------------------------------------

eaf34a80bdad3303a75333bb5dab3b87bcbe08aa
 examples/2d/gravity/grav_stress.cfg            |  4 ----
 examples/2d/gravity/grav_stress_finite_is2.cfg |  8 --------
 examples/2d/gravity/grav_stress_infin_is1.cfg  | 11 -----------
 examples/2d/gravity/grav_stress_infin_is2.cfg  | 11 -----------
 examples/2d/gravity/pylithapp.cfg              |  8 ++++----
 5 files changed, 4 insertions(+), 38 deletions(-)

diff --git a/examples/2d/gravity/grav_stress.cfg b/examples/2d/gravity/grav_stress.cfg
index 58197fe..4a99d3c 100644
--- a/examples/2d/gravity/grav_stress.cfg
+++ b/examples/2d/gravity/grav_stress.cfg
@@ -24,10 +24,6 @@
 # ----------------------------------------------------------------------
 # problem
 # ----------------------------------------------------------------------
-[pylithapp.timedependent]
-gravity_field = spatialdata.spatialdb.GravityField
-gravity_field.gravity_dir = [0.0, -1.0, 0.0]
-
 [pylithapp.timedependent.formulation.time_step]
 total_time = 0.0*year
 dt = 1.0*year
diff --git a/examples/2d/gravity/grav_stress_finite_is2.cfg b/examples/2d/gravity/grav_stress_finite_is2.cfg
index 612201e..bbf26c3 100644
--- a/examples/2d/gravity/grav_stress_finite_is2.cfg
+++ b/examples/2d/gravity/grav_stress_finite_is2.cfg
@@ -34,14 +34,6 @@
 # automatically be switched to the nonlinear solver.
 formulation = pylith.problems.ImplicitLgDeform
 
-# Set gravity field (default is None)
-gravity_field = spatialdata.spatialdb.GravityField
-gravity_field.gravity_dir = [0.0, -1.0, 0.0]
-
-[pylithapp.timedependent.formulation.time_step]
-total_time = 200.0*year
-dt = 1.0*year
-
 # ----------------------------------------------------------------------
 # initial stresses
 # ----------------------------------------------------------------------
diff --git a/examples/2d/gravity/grav_stress_infin_is1.cfg b/examples/2d/gravity/grav_stress_infin_is1.cfg
index c7ef876..65a9632 100644
--- a/examples/2d/gravity/grav_stress_infin_is1.cfg
+++ b/examples/2d/gravity/grav_stress_infin_is1.cfg
@@ -24,17 +24,6 @@
 # Output will be directed to directory output.
 
 # ----------------------------------------------------------------------
-# problem
-# ----------------------------------------------------------------------
-[pylithapp.timedependent]
-gravity_field = spatialdata.spatialdb.GravityField
-gravity_field.gravity_dir = [0.0, -1.0, 0.0]
-
-[pylithapp.timedependent.formulation.time_step]
-total_time = 200.0*year
-dt = 1.0*year
-
-# ----------------------------------------------------------------------
 # initial stresses
 # ----------------------------------------------------------------------
 [pylithapp.timedependent.materials.elastic]
diff --git a/examples/2d/gravity/grav_stress_infin_is2.cfg b/examples/2d/gravity/grav_stress_infin_is2.cfg
index f73585f..4863a77 100644
--- a/examples/2d/gravity/grav_stress_infin_is2.cfg
+++ b/examples/2d/gravity/grav_stress_infin_is2.cfg
@@ -27,17 +27,6 @@
 # Output will be directed to directory output.
 
 # ----------------------------------------------------------------------
-# problem
-# ----------------------------------------------------------------------
-[pylithapp.timedependent]
-gravity_field = spatialdata.spatialdb.GravityField
-gravity_field.gravity_dir = [0.0, -1.0, 0.0]
-
-[pylithapp.timedependent.formulation.time_step]
-total_time = 200.0*year
-dt = 1.0*year
-
-# ----------------------------------------------------------------------
 # initial stresses
 # ----------------------------------------------------------------------
 [pylithapp.timedependent.materials.elastic]
diff --git a/examples/2d/gravity/pylithapp.cfg b/examples/2d/gravity/pylithapp.cfg
index 0d9b2b4..305512e 100644
--- a/examples/2d/gravity/pylithapp.cfg
+++ b/examples/2d/gravity/pylithapp.cfg
@@ -37,9 +37,12 @@ coordsys.space_dim = 2
 [pylithapp.timedependent]
 dimension = 2
 
+gravity_field = spatialdata.spatialdb.GravityField
+gravity_field.gravity_dir = [0.0, -1.0, 0.0]
+
 [pylithapp.timedependent.formulation.time_step]
 # Define the total time for the simulation and the time step size.
-total_time = 200.0*year
+total_time = 100.0*year
 dt = 1.0*year
 
 # ----------------------------------------------------------------------
@@ -168,10 +171,7 @@ writer = pylith.meshio.DataWriterHDF5
 [pylithapp.petsc]
 
 # Preconditioner settings.
-# pc_type = asm
 pc_type = ml
-sub_pc_factor_shift_type = nonzero
-# ksp_type = preonly
 
 # Convergence parameters.
 ksp_rtol = 1.0e-10



More information about the CIG-COMMITS mailing list