Quinoa unit test code coverage report
Current view: top level - Mesh - STLMesh.cpp (source / functions) Hit Total Coverage
Commit: Quinoa_v0.3-957-gb4f0efae0 Lines: 0 6 0.0 %
Date: 2021-11-09 12:13:43 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/Mesh/STLMesh.cpp
       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     ASCII STL (STereoLithography) mesh class definition
       9                 :            :   \details   ASCII STL (STereoLithography) mesh class definition.
      10                 :            : */
      11                 :            : // *****************************************************************************
      12                 :            : 
      13                 :            : #include <memory>
      14                 :            : 
      15                 :            : #include "STLMesh.hpp"
      16                 :            : 
      17                 :            : using tk::STLMesh;
      18                 :            : 
      19                 :            : void
      20                 :          0 : STLMesh::alloc( std::size_t num )
      21                 :            : // *****************************************************************************
      22                 :            : //  Allocate memory for mesh
      23                 :            : //! \param[in] num Number of vertices (nodes) in mesh
      24                 :            : // *****************************************************************************
      25                 :            : {
      26                 :            :   // Store number of nodes
      27                 :          0 :   m_nnode = num;
      28                 :            : 
      29                 :            :   // Allocate memory to store the x, y, z coordinates
      30                 :          0 :   m_x = std::make_unique< tk::real[] >( num );
      31                 :          0 :   m_y = std::make_unique< tk::real[] >( num );
      32                 :          0 :   m_z = std::make_unique< tk::real[] >( num );
      33                 :          0 : }

Generated by: LCOV version 1.14