Quinoa all test code coverage report
Current view: top level - PDE/CompFlow/Problem - SheddingFlow.cpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 0 7 0.0 %
Date: 2024-11-22 09:12:55 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 22 0.0 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/PDE/CompFlow/Problem/SheddingFlow.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     Problem configuration for the compressible flow equations
       9                 :            :   \details   This file defines a Problem policy class for the compressible flow
      10                 :            :     equations, defined in PDE/CompFlow/CompFlow.h. See PDE/CompFlow/Problem.h
      11                 :            :     for general requirements on Problem policy classes for CompFlow.
      12                 :            : */
      13                 :            : // *****************************************************************************
      14                 :            : 
      15                 :            : #include "SheddingFlow.hpp"
      16                 :            : #include "Inciter/InputDeck/InputDeck.hpp"
      17                 :            : #include "FieldOutput.hpp"
      18                 :            : 
      19                 :            : namespace inciter {
      20                 :            : 
      21                 :            : extern ctr::InputDeck g_inputdeck;
      22                 :            : 
      23                 :            : } // ::inciter
      24                 :            : 
      25                 :            : using inciter::CompFlowProblemSheddingFlow;
      26                 :            : 
      27                 :            : tk::InitializeFn::result_type
      28                 :          0 : CompFlowProblemSheddingFlow::initialize( ncomp_t,
      29                 :            :                                          const std::vector< EOS >& mat_blk,
      30                 :            :                                          tk::real,
      31                 :            :                                          tk::real,
      32                 :            :                                          tk::real,
      33                 :            :                                          tk::real )
      34                 :            : // *****************************************************************************
      35                 :            : //! Evaluate initial solution at (x,y,z,t) for all components
      36                 :            : //! \param[in] x X coordinate where to evaluate the solution
      37                 :            : //! \return Values of all components evaluated at (x)
      38                 :            : //! \note The function signature must follow tk::InitializeFn
      39                 :            : // *****************************************************************************
      40                 :            : {
      41                 :            :   // Assign uniform initial condition according to the farfield state
      42                 :          0 :   auto r = g_inputdeck.get< tag::bc >()[0].get< tag::density >();
      43                 :          0 :   auto p = g_inputdeck.get< tag::bc >()[0].get< tag::pressure >();
      44                 :            :   const auto& u = g_inputdeck.get< tag::bc >()[0].get< tag::velocity >();
      45         [ -  - ]:          0 :   auto rE = mat_blk[0].compute< EOS::totalenergy >( r, u[0], u[1], u[2], p );
      46                 :            : 
      47                 :          0 :   return {{ r, r*u[0], r*u[1], r*u[2], rE }};
      48                 :            : }
      49                 :            : 
      50                 :            : std::vector< std::string >
      51                 :          0 : CompFlowProblemSheddingFlow::names( ncomp_t ) const
      52                 :            : // *****************************************************************************
      53                 :            : //  Return names of integral variables to be output to diagnostics file
      54                 :            : //! \return Vector of strings labelling integral variables output
      55                 :            : // *****************************************************************************
      56                 :            : {
      57 [ -  - ][ -  - ]:          0 :   return { "r", "ru", "rv", "rw", "re" };
         [ -  - ][ -  - ]
         [ -  - ][ -  - ]
         [ -  - ][ -  - ]
         [ -  - ][ -  - ]
      58                 :            : }

Generated by: LCOV version 1.14