[cig-commits] [commit] knepley/upgrade-petsc-interface: Added missing methods to module interface. (c1b02f5)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Thu Nov 7 14:52:00 PST 2013
Repository : ssh://geoshell/pylith
On branch : knepley/upgrade-petsc-interface
Link : https://github.com/geodynamics/pylith/compare/02d6f9c2f3202b524bc8b2d8c32ec207f35f3893...44dc34616c3c0f702805372f2b51e8aa7a0ccbcc
>---------------------------------------------------------------
commit c1b02f5bfdc01f6dd9c726467c695189956e6b41
Author: Brad Aagaard <baagaard at usgs.gov>
Date: Thu Nov 7 14:53:16 2013 -0800
Added missing methods to module interface.
>---------------------------------------------------------------
c1b02f5bfdc01f6dd9c726467c695189956e6b41
modulesrc/faults/FaultCohesiveLagrange.i | 6 ++++++
modulesrc/topology/Field.i | 9 +++++++++
2 files changed, 15 insertions(+)
diff --git a/modulesrc/faults/FaultCohesiveLagrange.i b/modulesrc/faults/FaultCohesiveLagrange.i
index 1384cfd..2963c57 100644
--- a/modulesrc/faults/FaultCohesiveLagrange.i
+++ b/modulesrc/faults/FaultCohesiveLagrange.i
@@ -53,6 +53,12 @@ namespace pylith {
void initialize(const pylith::topology::Mesh& mesh,
const PylithScalar upDir[3]);
+ /** Setup DOF on solution field.
+ *
+ * @param field Solution field.
+ */
+ void setupSolnDof(pylith::topology::Field* field);
+
/** Integrate contributions to residual term (r) for operator that
* do not require assembly across processors.
*
diff --git a/modulesrc/topology/Field.i b/modulesrc/topology/Field.i
index 8987683..c2212b9 100644
--- a/modulesrc/topology/Field.i
+++ b/modulesrc/topology/Field.i
@@ -121,6 +121,15 @@ namespace pylith {
*/
bool hasSection(void) const;
+ /// Set chart for solution.
+ void setupSolnChart(void);
+
+ /** Set default DOF for solution.
+ *
+ * @param fiberDim Total number of components in solution.
+ */
+ void setupSolnDof(const int fiberDim);
+
/** Create PETSc section and set chart and fiber dimesion.
*
* @param domain Type of points over which to define section.
More information about the CIG-COMMITS
mailing list