Quinoa all test code coverage report
Current view: top level - IO - HyperMeshReader.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/HyperMeshReader.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     Hyper mesh reader class declaration
       9                 :            :   \details   Hyper mesh reader class declaration. Only supports tetrahedra.
      10                 :            : */
      11                 :            : // *****************************************************************************
      12                 :            : #ifndef HyperMeshReader_h
      13                 :            : #define HyperMeshReader_h
      14                 :            : 
      15                 :            : #include <iosfwd>
      16                 :            : #include <utility>
      17                 :            : 
      18                 :            : #include "Reader.hpp"
      19                 :            : 
      20                 :            : namespace tk {
      21                 :            : 
      22                 :            : class UnsMesh;
      23                 :            : 
      24                 :            : //! \brief HyperMeshReader : tk::Reader
      25                 :            : //! \details Mesh reader class facilitating reading a mesh from a file saved by
      26                 :            : //!   the HyperMesh mesh generator by Altair:
      27                 :            : //!    http://www.altairhyperworks.com/product/HyperMesh
      28                 :          1 : class HyperMeshReader : public Reader {
      29                 :            : 
      30                 :            :   public:
      31                 :            :     //! Constructor
      32                 :          1 :     explicit HyperMeshReader( const std::string& filename ) :
      33 [ +  - ][ +  - ]:          1 :       Reader( filename ) {}
      34                 :            : 
      35                 :            :     //! Read Hyper mesh
      36                 :            :     void readMesh( UnsMesh& mesh );
      37                 :            : 
      38                 :            :   private:
      39                 :            :     //! Read Hyper mesh metadata and extract filenames we need to read
      40                 :            :     std::pair< std::string, std::string > getFileNames() const;
      41                 :            : 
      42                 :            :     //! Read nodes
      43                 :            :     void readNodes( const std::string& filename, UnsMesh& mesh ) const;
      44                 :            : 
      45                 :            :     //! Read element connectivity
      46                 :            :     void readElements( const std::string& filename, UnsMesh& mesh ) const;
      47                 :            : };
      48                 :            : 
      49                 :            : } // tk::
      50                 :            : 
      51                 :            : #endif // HyperMeshReader_h

Generated by: LCOV version 1.14