LCOV - code coverage report
Current view: top level - src/mesquite/QualityImprover - QualityImprover.cpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 15 15 100.0 %
Date: 2020-07-18 00:09:26 Functions: 5 5 100.0 %
Branches: 16 36 44.4 %

           Branch data     Line data    Source code
       1                 :            : /* *****************************************************************
       2                 :            :     MESQUITE -- The Mesh Quality Improvement Toolkit
       3                 :            : 
       4                 :            :     Copyright 2004 Sandia Corporation and Argonne National
       5                 :            :     Laboratory.  Under the terms of Contract DE-AC04-94AL85000
       6                 :            :     with Sandia Corporation, the U.S. Government retains certain
       7                 :            :     rights in 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                 :            :     [email protected], [email protected], [email protected],
      24                 :            :     [email protected], [email protected], [email protected]
      25                 :            : 
      26                 :            :   ***************************************************************** */
      27                 :            : // -*- Mode : c++; tab-width: 3; c-tab-always-indent: t; indent-tabs-mode: nil; c-basic-offset: 3
      28                 :            : // -*-
      29                 :            : //
      30                 :            : //   SUMMARY:
      31                 :            : //     USAGE:
      32                 :            : //
      33                 :            : //    AUTHOR: Thomas Leurent <[email protected]>
      34                 :            : //       ORG: Argonne National Laboratory
      35                 :            : //    E-MAIL: [email protected]
      36                 :            : //
      37                 :            : // ORIG-DATE:  7-Nov-02 at 16:22:26
      38                 :            : //  LAST-MOD:  8-Nov-02 at 10:27:00 by Thomas Leurent
      39                 :            : //
      40                 :            : // DESCRIPTION:
      41                 :            : // ============
      42                 :            : /*! \file QualityImprover.cpp
      43                 :            : 
      44                 :            : Implements a couple of default virtual functions of the virtual class
      45                 :            : 
      46                 :            :  \author Thomas Leurent
      47                 :            :  */
      48                 :            : // DESCRIP-END.
      49                 :            : //
      50                 :            : 
      51                 :            : #include "QualityImprover.hpp"
      52                 :            : #include "MsqError.hpp"
      53                 :            : 
      54                 :            : namespace MBMesquite
      55                 :            : {
      56                 :            : 
      57                 :            : /*! The default constructor initialises a few member variables
      58                 :            :     to default values.
      59                 :            :     This can be reused by concrete class constructor. */
      60                 :        326 : QualityImprover::QualityImprover()
      61                 :            : {
      62 [ +  - ][ +  - ]:        163 :     defaultOuterCriterion = new TerminationCriterion;
                 [ +  - ]
      63 [ +  - ][ +  - ]:        163 :     defaultInnerCriterion = new TerminationCriterion;
                 [ +  - ]
      64         [ +  - ]:        163 :     defaultOuterCriterion->add_iteration_limit( 1 );
      65                 :        163 :     outerTerminationCriterion = defaultOuterCriterion;
      66                 :        163 :     innerTerminationCriterion = defaultInnerCriterion;
      67                 :        163 : }
      68                 :            : 
      69                 :        312 : QualityImprover::~QualityImprover()
      70                 :            : {
      71         [ +  - ]:        156 :     delete defaultOuterCriterion;
      72         [ +  - ]:        156 :     delete defaultInnerCriterion;
      73         [ -  + ]:        156 : }
      74                 :            : 
      75                 :        130 : void QualityImprover::initialize_queue( MeshDomainAssoc* mesh_and_domain, const Settings* settings, MsqError& err )
      76                 :            : {
      77 [ -  + ][ #  # ]:        130 :     innerTerminationCriterion->initialize_queue( mesh_and_domain, settings, err );MSQ_ERRRTN( err );
                 [ -  + ]
      78 [ -  + ][ #  # ]:        130 :     outerTerminationCriterion->initialize_queue( mesh_and_domain, settings, err );MSQ_ERRRTN( err );
                 [ -  + ]
      79                 :            : }
      80                 :            : 
      81 [ +  - ][ +  - ]:        120 : }  // namespace MBMesquite

Generated by: LCOV version 1.11