Quinoa all test code coverage report
Current view: top level - PDE/MultiMat/Problem - UserDefined.hpp (source / functions) Hit Total Coverage
Commit: Quinoa_v0.3-957-gb4f0efae0 Lines: 2 4 50.0 %
Date: 2021-11-11 18:25:50 Functions: 1 2 50.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/PDE/MultiMat/Problem/UserDefined.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 the multi-material compressible flow
       9                 :            :     equations
      10                 :            :   \details   This file defines a Problem policy class for the multi-material
      11                 :            :     compressible flow equations, defined under PDE/MultiMat. See
      12                 :            :     PDE/MultiMat/Problem.h for general requirements on Problem policy
      13                 :            :     classes for MultiMat.
      14                 :            : */
      15                 :            : // *****************************************************************************
      16                 :            : #ifndef MultiMatProblemUserDefined_h
      17                 :            : #define MultiMatProblemUserDefined_h
      18                 :            : 
      19                 :            : #include <string>
      20                 :            : 
      21                 :            : #include "Types.hpp"
      22                 :            : #include "Inciter/InputDeck/InputDeck.hpp"
      23                 :            : #include "FunctionPrototypes.hpp"
      24                 :            : #include "Inciter/Options/Problem.hpp"
      25                 :            : #include "MultiMat/MultiMatIndexing.hpp"
      26                 :            : 
      27                 :            : namespace inciter {
      28                 :            : 
      29                 :            : extern ctr::InputDeck g_inputdeck;
      30                 :            : 
      31                 :            : //! MultiMat system of PDEs problem: user defined
      32                 :            : class MultiMatProblemUserDefined {
      33                 :            : 
      34                 :            :   private:
      35                 :            :     using ncomp_t = tk::ctr::ncomp_t;
      36                 :            :     using eq = tag::multimat;
      37                 :            : 
      38                 :            :   public:
      39                 :            :     //! Initialize numerical solution
      40                 :            :     static tk::InitializeFn::result_type
      41                 :            :     initialize( ncomp_t system, ncomp_t ncomp,
      42                 :            :                 tk::real, tk::real, tk::real, tk::real );
      43                 :            : 
      44                 :            :     //! Evaluate analytical solution at (x,y,z,t) for all components
      45                 :            :     static std::vector< tk::real >
      46                 :          0 :     analyticSolution( ncomp_t system, ncomp_t ncomp,  tk::real x, tk::real y,
      47                 :            :                       tk::real z, tk::real t )
      48                 :          0 :     { return initialize( system, ncomp, x, y, z, t ); }
      49                 :            : 
      50                 :            :     //! Compute and return source term for Rayleigh-Taylor manufactured solution
      51                 :            :     //! \details No-op for user-deefined problems.
      52                 :            :     static tk::MultiMatSrcFn::result_type
      53                 :            :     src( ncomp_t, ncomp_t ncomp, tk::real, tk::real, tk::real, tk::real )
      54                 :            :     { std::vector< tk::real > s( ncomp, 0.0 ); }
      55                 :            : 
      56                 :            :     //! Return names of integral variables to be output to diagnostics file
      57                 :            :     static std::vector< std::string > names( ncomp_t );
      58                 :            : 
      59                 :       1565 :    static ctr::ProblemType type() noexcept
      60                 :       1565 :    { return ctr::ProblemType::USER_DEFINED; }
      61                 :            : };
      62                 :            : } // inciter::
      63                 :            : 
      64                 :            : #endif // MultiMatProblemUserDefined_h

Generated by: LCOV version 1.14