[cig-commits] r15385 - in short/3D/PyLith/trunk: libsrc/feassemble modulesrc/feassemble

brad at geodynamics.org brad at geodynamics.org
Wed Jun 24 21:19:01 PDT 2009


Author: brad
Date: 2009-06-24 21:19:00 -0700 (Wed, 24 Jun 2009)
New Revision: 15385

Modified:
   short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.cc
   short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.hh
   short/3D/PyLith/trunk/modulesrc/feassemble/IntegratorElasticity.i
Log:
Added accessor for output fields.

Modified: short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.cc	2009-06-25 02:29:25 UTC (rev 15384)
+++ short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.cc	2009-06-25 04:19:00 UTC (rev 15385)
@@ -423,6 +423,14 @@
 } // cellField
 
 // ----------------------------------------------------------------------
+// Get output fields.
+const pylith::topology::Fields<pylith::topology::Field<pylith::topology::Mesh> >*
+pylith::feassemble::IntegratorElasticity::outputFields(void) const
+{ // outputFields
+  return _outputFields;
+} // outputFields
+
+// ----------------------------------------------------------------------
 // Allocate buffer for tensor field at quadrature points.
 void
 pylith::feassemble::IntegratorElasticity::_allocateTensorField(

Modified: short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.hh
===================================================================
--- short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.hh	2009-06-25 02:29:25 UTC (rev 15384)
+++ short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.hh	2009-06-25 04:19:00 UTC (rev 15385)
@@ -101,6 +101,13 @@
    */
   void verifyConfiguration(const topology::Mesh& mesh) const;
 
+  /** Get output fields.
+   *
+   * @returns Output (buffer) fields.
+   */
+  const topology::Fields<topology::Field<topology::Mesh> >*
+  outputFields(void) const;
+
   /** Get cell field associated with integrator.
    *
    * @param name Name of vertex field.

Modified: short/3D/PyLith/trunk/modulesrc/feassemble/IntegratorElasticity.i
===================================================================
--- short/3D/PyLith/trunk/modulesrc/feassemble/IntegratorElasticity.i	2009-06-25 02:29:25 UTC (rev 15384)
+++ short/3D/PyLith/trunk/modulesrc/feassemble/IntegratorElasticity.i	2009-06-25 04:19:00 UTC (rev 15385)
@@ -90,6 +90,13 @@
 		const pylith::topology::Mesh& mesh,
 		pylith::topology::SolutionFields* const fields =0);
       
+      /** Get output fields.
+       *
+       * @returns Output (buffer) fields.
+       */
+      const pylith::topology::Fields<pylith::topology::Field<pylith::topology::Mesh> >*
+      outputFields(void) const;
+
     }; // IntegratorElasticity
 
   } // feassemble



More information about the CIG-COMMITS mailing list