LCOV - code coverage report
Current view: top level - src/mesquite/TargetMetric - TMetricBarrier.cpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 2 10 20.0 %
Date: 2020-07-18 00:09:26 Functions: 3 7 42.9 %
Branches: 3 14 21.4 %

           Branch data     Line data    Source code
       1                 :            : /* *****************************************************************
       2                 :            :     MESQUITE -- The Mesh Quality Improvement Toolkit
       3                 :            : 
       4                 :            :     Copyright 2010 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                 :            :     (2010) [email protected]
      24                 :            : 
      25                 :            :   ***************************************************************** */
      26                 :            : 
      27                 :            : /** \file TMetricBarrier.cpp
      28                 :            :  *  \brief
      29                 :            :  *  \author Boyd Tidwell
      30                 :            :  */
      31                 :            : 
      32                 :            : #include "Mesquite.hpp"
      33                 :            : #include "TMetricBarrier.hpp"
      34                 :            : #include "MsqMatrix.hpp"
      35                 :            : #include "MsqError.hpp"
      36                 :            : #include <limits>
      37                 :            : 
      38                 :            : namespace MBMesquite
      39                 :            : {
      40                 :            : 
      41         [ -  + ]:         40 : TMetricBarrier::~TMetricBarrier() {}
      42                 :            : 
      43         [ #  # ]:          0 : TMetricBarrier2D::~TMetricBarrier2D() {}
      44         [ #  # ]:          0 : TMetricBarrier3D::~TMetricBarrier3D() {}
      45                 :            : 
      46                 :          0 : bool TMetricBarrier2D::evaluate( const MsqMatrix< 3, 3 >&, double&, MsqError& err )
      47                 :            : {
      48                 :            :     MSQ_SETERR( err )
      49         [ #  # ]:          0 :     ( "2D target metric cannot be evaluated for volume elements", MsqError::UNSUPPORTED_ELEMENT );
      50                 :          0 :     return false;
      51                 :            : }
      52                 :            : 
      53                 :          0 : bool TMetricBarrier3D::evaluate( const MsqMatrix< 2, 2 >&, double&, MsqError& err )
      54                 :            : {
      55                 :            :     MSQ_SETERR( err )
      56         [ #  # ]:          0 :     ( "2D target metric cannot be evaluated for volume elements", MsqError::UNSUPPORTED_ELEMENT );
      57                 :          0 :     return false;
      58                 :            : }
      59                 :            : 
      60 [ +  - ][ +  - ]:        120 : }  // namespace MBMesquite

Generated by: LCOV version 1.11