// -*- C++ -*- // // ====================================================================== // // Brad T. Aagaard // U.S. Geological Survey // // {LicenseText} // // ====================================================================== // /** * @file pylith/feassemble/GeometryLine1D.hh * * @brief C++ implementation of cell geometry calculations for 1-D * line cell. */ #if !defined(pylith_feassemble_geometryline1d_hh) #define pylith_feassemble_geometryline1d_hh #include "CellGeometry.hh" // ISA CellGeometry namespace pylith { namespace feassemble { class GeometryLine1D; } // feassemble } // pylith class pylith::feassemble::GeometryLine1D : public CellGeometry { // GeometryLine1D // PUBLIC METHODS /////////////////////////////////////////////////////// public : /// Default constructor. GeometryLine1D(void); /// Default destructor. ~GeometryLine1D(void); /** Create a copy of geometry. * * @returns Copy of geometry. */ CellGeometry* clone(void) const; /** Get cell geometry for lower dimension cell. * * @returns Pointer to cell geometry object corresponding to next * lower dimension, NULL if there is no lower dimension object. */ CellGeometry* geometryLowerDim(void) const; /** Compute Jacobian at location in cell. * * @param jacobian Jacobian at location. * @param det Determinant of Jacobian at location. * @param vertices Coordinates of vertices of cell. * @param location Location in reference cell at which to compute Jacobian. */ void jacobian(double_array* jacobian, double* det, const double_array& vertices, const double_array& location) const; }; // GeometryLine1D #endif // pylith_feassemble_geometryline1d_hh // End of file