[cig-commits] r16199 - short/3D/PyLith/trunk/modulesrc/problems
brad at geodynamics.org
brad at geodynamics.org
Sat Jan 30 11:07:15 PST 2010
Author: brad
Date: 2010-01-30 11:07:15 -0800 (Sat, 30 Jan 2010)
New Revision: 16199
Added:
short/3D/PyLith/trunk/modulesrc/problems/SolverLumped.i
Log:
Added missing file.
Added: short/3D/PyLith/trunk/modulesrc/problems/SolverLumped.i
===================================================================
--- short/3D/PyLith/trunk/modulesrc/problems/SolverLumped.i (rev 0)
+++ short/3D/PyLith/trunk/modulesrc/problems/SolverLumped.i 2010-01-30 19:07:15 UTC (rev 16199)
@@ -0,0 +1,64 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+// Brad T. Aagaard
+// U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+/**
+ * @file modulesrc/problems/SolverLumped.hh
+ *
+ * @brief Python interface to abstract base class SolverLumped.
+ */
+
+namespace pylith {
+ namespace problems {
+
+ class SolverLumped
+ { // SolverLumped
+
+ // PUBLIC MEMBERS /////////////////////////////////////////////////
+ public :
+
+ /// Constructor.
+ SolverLumped(void);
+
+ /// Destructor
+ ~SolverLumped(void);
+
+ /// Deallocate PETSc and local data structures.
+ void deallocate(void);
+
+ /** Initialize solver.
+ *
+ * @param fields Solution fields.
+ * @param jacobian Jacobian of system.
+ * @param formulation Formulation of system of equations.
+ */
+ void
+ initialize(const pylith::topology::SolutionFields& fields,
+ const pylith::topology::Field<pylith::topology::Mesh>& jacobian,
+ Formulation* const formulation);
+
+ /** Solve the system.
+ *
+ * @param solution Solution field.
+ * @param jacobian Jacobian of the system.
+ * @param residual Residual field.
+ */
+ void solve(pylith::topology::Field<pylith::topology::Mesh>* solution,
+ const pylith::topology::Field<pylith::topology::Mesh>& jacobian,
+ const pylith::topology::Field<pylith::topology::Mesh>& residual);
+
+ }; // SolverLumped
+
+ } // problems
+} // pylith
+
+
+// End of file
More information about the CIG-COMMITS
mailing list