[cig-commits] r14832 - short/3D/PyLith/branches/pylith-swig/libsrc/topology

brad at geodynamics.org brad at geodynamics.org
Fri May 1 08:38:05 PDT 2009


Author: brad
Date: 2009-05-01 08:38:05 -0700 (Fri, 01 May 2009)
New Revision: 14832

Removed:
   short/3D/PyLith/branches/pylith-swig/libsrc/topology/RestrictVisitor.hh
   short/3D/PyLith/branches/pylith-swig/libsrc/topology/RestrictVisitor.icc
Log:
Removed unsued object.

Deleted: short/3D/PyLith/branches/pylith-swig/libsrc/topology/RestrictVisitor.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/libsrc/topology/RestrictVisitor.hh	2009-05-01 04:52:55 UTC (rev 14831)
+++ short/3D/PyLith/branches/pylith-swig/libsrc/topology/RestrictVisitor.hh	2009-05-01 15:38:05 UTC (rev 14832)
@@ -1,98 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-/**
- * @file libsrc/topology/Visitor.hh
- *
- * @brief Visitor for managing values extracted from restriction of a
- * field to a cell.
- *
- * Wraps a Sieve RestrictVisitor.
- */
-
-#if !defined(pylith_topology_restrictvisitor_hh)
-#define pylith_topology_restrictvisitor_hh
-
-// Include directives ---------------------------------------------------
-#include "topologyfwd.hh" // forward declarations
-
-// RestrictVisitor ------------------------------------------------------
-template<typename field_type>
-class pylith::topology::RestrictVisitor
-{ // Field
-  friend class TestRestrictVisitor; // unit testing
-
-// PRIVATE TYPEDEFS /////////////////////////////////////////////////////
-private:
-
-  // Convenience typedefs
-  typedef typename field_type::RealSection RealSection;
-
-// PUBLIC MEMBERS ///////////////////////////////////////////////////////
-public :
-
-  /** Constructor with field and size.
-   *
-   * @param field Field over finite-element mesh.
-   * @param size Fiber dimension for field.
-   */
-  RestrictVisitor(const field_type& field,
-		  const int size);
-
-  /** Constructor with field and array.
-   *
-   * @param field Field over finite-element mesh.
-   * @param values Array of values to use for storage.
-   */
-  RestrictVisitor(const field_type& field,
-		  const double_array& values);
-
-  /// Destructor.
-  ~RestrictVisitor(void);
-
-  /** Visit field for cell and retrieve values.
-   *
-   * @param cell Cell in finite-element mesh.
-   */
-  void visit(const typename field_type::Mesh::SieveMesh::point_type& cell);
-
-  /** Get field values previously retrieved for cell.
-   *
-   * @returns Values for field.
-   */
-  const double* values(void) const;
-
-  /// Clear values associated with cell.
-  void clear(void);
-
-// PRIVATE MEMBERS //////////////////////////////////////////////////////
-private :
-
-  const field_type& _field; ///< Field associated with visitor
-
-  /// Sieve visitor that manages storage.
-  ALE::ISieveVisitor::RestrictVisitor<RealSection> _visitor;
-
-// NOT IMPLEMENTED //////////////////////////////////////////////////////
-private :
-
-  RestrictVisitor(const RestrictVisitor&); ///< Not implemented
-  const RestrictVisitor& operator=(const RestrictVisitor&); ///< Not implemented
-
-}; // Field
-
-#include "RestrictVisitor.icc"
-
-#endif // pylith_topology_restrictvisitor_hh
-
-
-// End of file 

Deleted: short/3D/PyLith/branches/pylith-swig/libsrc/topology/RestrictVisitor.icc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/libsrc/topology/RestrictVisitor.icc	2009-05-01 04:52:55 UTC (rev 14831)
+++ short/3D/PyLith/branches/pylith-swig/libsrc/topology/RestrictVisitor.icc	2009-05-01 15:38:05 UTC (rev 14832)
@@ -1,73 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#if !defined(pylith_topology_restrictvisitor_hh)
-#error "RestrictVisitor.icc must be included only from RestrictVisitor.hh"
-#else
-
-// Constructor with field and size.
-template<typename field_type>
-pylith::topology::RestrictVisitor<field_type>::RestrictVisitor(const field_type& field,
-							       const int size) :
-  _field(field),
-  _visitor(field.section(), size)
-{ // constructor
-} // constructor
-
-// Constructor with field and array.
-template<typename field_type>
-pylith::topology::RestrictVisitor<field_type>::RestrictVisitor(const field_type& field,
-							       const double_array& values) :
-  _field(field),
-  _visitor(field.section(), &values[0], values.size()
-{ // constructor
-} // constructor
-
-// Destructor.
-template<typename field_type>
-~RestrictVisitor(void)
-{ // destructor
-} // destructor
-
-// Visit field for cell and retrieve values.
-template<typename field_type>
-inline
-void
-pylith::topology::RestrictVisitor<field_type>::visit(
-		const typename field_type::Mesh::SieveMesh::point_type& cell)
-{ // visit
-  const ALE::Obj<SieveMesh>& sieveMesh = field.mesh().sieveMesh();
-  mesh->restrictClosure(cell, _visitor);
-} // visit
-
-// Get field values previously retrieved for cell.
-template<typename field_type>
-inline
-const double*
-pylith::topology::RestrictVisitor<field_type>::values(void) const
-{ // values
-  return _visitor->getValues();
-} // values
-
-// Clear values associated with cell.
-template<typename field_type>
-void
-pylith::topology::RestrictVisitor<field_type>::clear(void)
-{ // clear
-  return _visitor->clear();
-} // clear
-
-
-#endif
-
-
-// End of file



More information about the CIG-COMMITS mailing list