[cig-commits] [commit] knepley/upgrade-petsc-interface: Use more efficient Field::zeroAll() rather than Field::zero(). (83238c2)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Fri Nov 15 09:43:40 PST 2013


Repository : ssh://geoshell/pylith

On branch  : knepley/upgrade-petsc-interface
Link       : https://github.com/geodynamics/pylith/compare/b685ee097b0c3233e5a4fcbff97d364d41bb0e99...83238c2f478c37e1223aa6a6afe8e4ba8762f3ac

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

commit 83238c2f478c37e1223aa6a6afe8e4ba8762f3ac
Author: Brad Aagaard <baagaard at usgs.gov>
Date:   Fri Nov 15 09:46:20 2013 -0800

    Use more efficient Field::zeroAll() rather than Field::zero().


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

83238c2f478c37e1223aa6a6afe8e4ba8762f3ac
 pylith/problems/Explicit.py    | 2 +-
 pylith/problems/Formulation.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pylith/problems/Explicit.py b/pylith/problems/Explicit.py
index cccb1e6..260d8f5 100644
--- a/pylith/problems/Explicit.py
+++ b/pylith/problems/Explicit.py
@@ -166,7 +166,7 @@ class Explicit(Formulation, ModuleExplicit):
       integrator.setupSolnDof(jacobian)
     jacobian.vectorFieldType(jacobian.VECTOR)
     jacobian.allocate()
-    jacobian.zero()
+    jacobian.zeroAll()
     self.jacobian = jacobian
     self._debug.log(resourceUsageString())
 
diff --git a/pylith/problems/Formulation.py b/pylith/problems/Formulation.py
index 7ad1062..c7bd5de 100644
--- a/pylith/problems/Formulation.py
+++ b/pylith/problems/Formulation.py
@@ -515,7 +515,7 @@ class Formulation(PetscComponent, ModuleFormulation):
     for constraint in self.constraints:
       constraint.setConstraintSizes(solution)
     solution.allocate()
-    solution.zero()
+    solution.zeroAll()
     for constraint in self.constraints:
       constraint.setConstraints(solution)
     for integrator in self.integrators:



More information about the CIG-COMMITS mailing list