Quinoa all test code coverage report
Current view: top level - IO - RDGFLOMeshReader.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 3 3 100.0 %
Date: 2024-04-29 14:42:33 Functions: 0 0 -
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 4 50.0 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/IO/RDGFLOMeshReader.hpp
       4                 :            :   \copyright 2012-2015 J. Bakosi,
       5                 :            :              2016-2018 Los Alamos National Security, LLC.,
       6                 :            :              2019-2021 Triad National Security, LLC.
       7                 :            :              All rights reserved. See the LICENSE file for details.
       8                 :            :   \brief     RDGFLO mesh reader class declaration
       9                 :            :   \details   RDGFLO mesh reader class declaration. Mesh reader facilitating
      10                 :            :              reading a mesh from a simple text file used by Prof. Hong Luo at
      11                 :            :              North Carolina State University.
      12                 :            : */
      13                 :            : // *****************************************************************************
      14                 :            : #ifndef RDGFLOMeshReader_h
      15                 :            : #define RDGFLOMeshReader_h
      16                 :            : 
      17                 :            : #include <iosfwd>
      18                 :            : 
      19                 :            : #include "Reader.hpp"
      20                 :            : 
      21                 :            : namespace tk {
      22                 :            : 
      23                 :            : class UnsMesh;
      24                 :            : 
      25                 :            : //! \brief RDGFLOMeshReader : tk::Reader
      26                 :            : //! \details Mesh reader class facilitating reading a mesh from a simple text
      27                 :            : //!    file used by Prof. Hong Luo at North Carolina State University.
      28                 :          1 : class RDGFLOMeshReader : public Reader {
      29                 :            : 
      30                 :            :   public:
      31                 :            :     //! Constructor
      32                 :          1 :     explicit RDGFLOMeshReader( const std::string& filename ) :
      33 [ +  - ][ +  - ]:          1 :       Reader( filename ), m_nnode(0), m_ntet(0), m_ntri(0) {}
      34                 :            : 
      35                 :            :     //! Read RDGFLO mesh
      36                 :            :     void readMesh( UnsMesh& mesh );
      37                 :            : 
      38                 :            :   private:
      39                 :            :     std::size_t m_nnode;        //!< Number of nodes
      40                 :            :     std::size_t m_ntet;         //!< Number of tetrahedra
      41                 :            :     std::size_t m_ntri;         //!< Number of triangles
      42                 :            : 
      43                 :            :     //! Read header
      44                 :            :     void readHeader();
      45                 :            : 
      46                 :            :     //! Read nodes
      47                 :            :     void readNodes( UnsMesh& mesh );
      48                 :            : 
      49                 :            :     //! Read element connectivity
      50                 :            :     void readElements( UnsMesh& mesh );
      51                 :            : };
      52                 :            : 
      53                 :            : } // tk::
      54                 :            : 
      55                 :            : #endif // RDGFLOMeshReader_h

Generated by: LCOV version 1.14