LCOV - code coverage report
Current view: top level - src/mesquite/QualityMetric - ElementPMeanP.hpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 2 2 100.0 %
Date: 2020-07-18 00:09:26 Functions: 1 1 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* *****************************************************************
       2                 :            :     MESQUITE -- The Mesh Quality Improvement Toolkit
       3                 :            : 
       4                 :            :     Copyright 2006 Sandia National Laboratories.  Developed at the
       5                 :            :     University of Wisconsin--Madison under SNL contract number
       6                 :            :     624796.  The U.S. Government and the University of Wisconsin
       7                 :            :     retain certain rights to this software.
       8                 :            : 
       9                 :            :     This library is free software; you can redistribute it and/or
      10                 :            :     modify it under the terms of the GNU Lesser General Public
      11                 :            :     License as published by the Free Software Foundation; either
      12                 :            :     version 2.1 of the License, or (at your option) any later version.
      13                 :            : 
      14                 :            :     This library is distributed in the hope that it will be useful,
      15                 :            :     but WITHOUT ANY WARRANTY; without even the implied warranty of
      16                 :            :     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      17                 :            :     Lesser General Public License for more details.
      18                 :            : 
      19                 :            :     You should have received a copy of the GNU Lesser General Public License
      20                 :            :     (lgpl.txt) along with this library; if not, write to the Free Software
      21                 :            :     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
      22                 :            : 
      23                 :            :     (2006) [email protected]
      24                 :            : 
      25                 :            :   ***************************************************************** */
      26                 :            : 
      27                 :            : /** \file ElementPMeanP.hpp
      28                 :            :  *  \brief
      29                 :            :  *  \author Jason Kraftcheck
      30                 :            :  */
      31                 :            : 
      32                 :            : #ifndef MSQ_ELEMENT_PMEAN_P_HPP
      33                 :            : #define MSQ_ELEMENT_PMEAN_P_HPP
      34                 :            : 
      35                 :            : #include "Mesquite.hpp"
      36                 :            : #include "PMeanPMetric.hpp"
      37                 :            : #include "ElementQM.hpp"
      38                 :            : 
      39                 :            : namespace MBMesquite
      40                 :            : {
      41                 :            : 
      42                 :            : class ElemSampleQM;
      43                 :            : 
      44                 :            : class ElementPMeanP : public ElementQM, public PMeanPMetric
      45                 :            : {
      46                 :            :   public:
      47                 :            :     MESQUITE_EXPORT ElementPMeanP( double p, ElemSampleQM* metric );
      48                 :            : 
      49                 :            :     MESQUITE_EXPORT virtual ~ElementPMeanP();
      50                 :            : 
      51                 :    5638514 :     MESQUITE_EXPORT ElemSampleQM* get_quality_metric() const
      52                 :            :     {
      53                 :    5638514 :         return mMetric;
      54                 :            :     }
      55                 :            : 
      56                 :            :     MESQUITE_EXPORT virtual std::string get_name() const;
      57                 :            : 
      58                 :            :     MESQUITE_EXPORT virtual int get_negate_flag() const;
      59                 :            : 
      60                 :            :     MESQUITE_EXPORT virtual bool evaluate( PatchData& pd, size_t handle, double& value, MsqError& err );
      61                 :            : 
      62                 :            :     MESQUITE_EXPORT virtual bool evaluate_with_gradient( PatchData& pd, size_t handle, double& value,
      63                 :            :                                                          std::vector< size_t >& indices,
      64                 :            :                                                          std::vector< Vector3D >& gradient, MsqError& err );
      65                 :            : 
      66                 :            :     MESQUITE_EXPORT virtual bool evaluate_with_Hessian( PatchData& pd, size_t handle, double& value,
      67                 :            :                                                         std::vector< size_t >& indices,
      68                 :            :                                                         std::vector< Vector3D >& gradient,
      69                 :            :                                                         std::vector< Matrix3D >& Hessian, MsqError& err );
      70                 :            : 
      71                 :            :     MESQUITE_EXPORT virtual bool evaluate_with_Hessian_diagonal( PatchData& pd, size_t handle, double& value,
      72                 :            :                                                                  std::vector< size_t >& indices,
      73                 :            :                                                                  std::vector< Vector3D >& gradient,
      74                 :            :                                                                  std::vector< SymMatrix3D >& Hessian_diagonal,
      75                 :            :                                                                  MsqError& err );
      76                 :            : 
      77                 :            :   private:
      78                 :            :     ElemSampleQM* mMetric;
      79                 :            :     mutable std::vector< size_t > mHandles;
      80                 :            : };
      81                 :            : 
      82                 :            : }  // namespace MBMesquite
      83                 :            : 
      84                 :            : #endif

Generated by: LCOV version 1.11