[cig-commits] r15594 - in short/3D/PyLith/trunk: libsrc/problems playpen/faultfaces/test

brad at geodynamics.org brad at geodynamics.org
Tue Aug 25 17:46:07 PDT 2009


Author: brad
Date: 2009-08-25 17:46:07 -0700 (Tue, 25 Aug 2009)
New Revision: 15594

Modified:
   short/3D/PyLith/trunk/libsrc/problems/SolverLinear.cc
   short/3D/PyLith/trunk/playpen/faultfaces/test/pylithapp.cfg
Log:
Changed arg to KSPSolve to SAME_NONZERO_PATTERN to prevent reallocation of sparse matrix.

Modified: short/3D/PyLith/trunk/libsrc/problems/SolverLinear.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/problems/SolverLinear.cc	2009-08-26 00:18:22 UTC (rev 15593)
+++ short/3D/PyLith/trunk/libsrc/problems/SolverLinear.cc	2009-08-26 00:46:07 UTC (rev 15594)
@@ -110,7 +110,7 @@
 
   const PetscMat jacobianMat = jacobian.matrix();
   err = KSPSetOperators(_ksp, jacobianMat, jacobianMat, 
-			DIFFERENT_NONZERO_PATTERN); CHECK_PETSC_ERROR(err);
+			SAME_NONZERO_PATTERN); CHECK_PETSC_ERROR(err);
 
   const PetscVec residualVec = residual.vector();
   const PetscVec solutionVec = solution->vector();

Modified: short/3D/PyLith/trunk/playpen/faultfaces/test/pylithapp.cfg
===================================================================
--- short/3D/PyLith/trunk/playpen/faultfaces/test/pylithapp.cfg	2009-08-26 00:18:22 UTC (rev 15593)
+++ short/3D/PyLith/trunk/playpen/faultfaces/test/pylithapp.cfg	2009-08-26 00:46:07 UTC (rev 15594)
@@ -33,7 +33,7 @@
 # mesh_generator
 # ----------------------------------------------------------------------
 [pylithapp.mesh_generator]
-debug = 0
+debug = 1
 reader = pylith.meshio.MeshIOLagrit
 reader.filename_gmv = tets.gmv
 reader.filename_pset = x_neg.pset



More information about the CIG-COMMITS mailing list