Quinoa all test code coverage report
Current view: top level - PDE/MultiMat/Problem - SinewavePacket.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 0 5 0.0 %
Date: 2024-04-22 13:03:21 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 0.0 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/PDE/MultiMat/Problem/SinewavePacket.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     Problem configuration for advection of sinewave packet
       9                 :            :   \details   This file defines a policy class for the multi-material
      10                 :            :     compressible flow equations, defined in PDE/MultiMat/MultiMat.hpp.
      11                 :            :     See PDE/MultiMat/Problem.hpp for general requirements on Problem policy
      12                 :            :     classes for MultiMat.
      13                 :            : */
      14                 :            : // *****************************************************************************
      15                 :            : #ifndef MultiMatProblemSinewavePacket_h
      16                 :            : #define MultiMatProblemSinewavePacket_h
      17                 :            : 
      18                 :            : #include <string>
      19                 :            : 
      20                 :            : #include "Types.hpp"
      21                 :            : #include "Vector.hpp"
      22                 :            : #include "FunctionPrototypes.hpp"
      23                 :            : #include "Inciter/Options/Problem.hpp"
      24                 :            : #include "Inciter/InputDeck/InputDeck.hpp"
      25                 :            : #include "EoS/EOS.hpp"
      26                 :            : 
      27                 :            : namespace inciter {
      28                 :            : 
      29                 :            : //! MultiMat system of PDEs problem: sinewave packet advection
      30                 :            : class MultiMatProblemSinewavePacket {
      31                 :            : 
      32                 :            :   protected:
      33                 :            :     using ncomp_t = tk::ncomp_t;
      34                 :            :     using eq = tag::multimat;
      35                 :            : 
      36                 :            :   public:
      37                 :            :     //! Initialize numerical solution
      38                 :            :     static tk::InitializeFn::result_type
      39                 :            :     initialize( ncomp_t ncomp, const std::vector< EOS >&,
      40                 :            :                 tk::real x, tk::real, tk::real, tk::real );
      41                 :            : 
      42                 :            :     //! Evaluate analytical solution at (x,y,z,t) for all components
      43                 :            :     static std::vector< tk::real >
      44                 :            :     analyticSolution( ncomp_t ncomp,
      45                 :            :                       const std::vector< EOS >& mat_blk, tk::real x,
      46                 :            :                       tk::real y, tk::real z, tk::real t )
      47                 :          0 :     { return initialize( ncomp, mat_blk, x, y, z, t ); }
      48                 :            : 
      49                 :            :     //! Compute and return source term for this problem
      50                 :            :     static tk::SrcFn::result_type
      51                 :          0 :     src( ncomp_t, const std::vector< EOS >&,
      52                 :            :          tk::real, tk::real, tk::real, tk::real,
      53                 :            :          std::vector< tk::real >& sv )
      54                 :            :     {
      55         [ -  - ]:          0 :       for (std::size_t i=0; i<sv.size(); ++i) {
      56                 :          0 :         sv[i] = 0.0;
      57                 :            :       }
      58                 :          0 :     }
      59                 :            : 
      60                 :            :     //! Return problem type
      61                 :            :     static ctr::ProblemType type() noexcept
      62                 :            :     { return ctr::ProblemType::SINEWAVE_PACKET; }
      63                 :            : };
      64                 :            : 
      65                 :            : } // inciter::
      66                 :            : 
      67                 :            : #endif // MultiMatProblemSinewavePacket_h

Generated by: LCOV version 1.14