Quinoa regression test code coverage report
Current view: top level - PDE/Transport/Physics - DGAdvection.hpp (source / functions) Hit Total Coverage
Commit: Quinoa_v0.3-957-gb4f0efae0 Lines: 2 2 100.0 %
Date: 2021-11-11 13:17:06 Functions: 1 1 100.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/Transport/Physics/DGAdvection.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     Physics policy for advection using continuous Galerkin (no-op)
       9                 :            :   \details   This file defines a Physics policy class for scalar transport using
      10                 :            :      discontinuous Galerkin discretization, defined in
      11                 :            :      PDE/Transport/DGTransport.h. The class defined here is used to configure
      12                 :            :      the behavior of DGTransport. See PDE/Transport/Physics/DG.h for general
      13                 :            :      requirements on Physics policy classes for DGTransport.
      14                 :            : */
      15                 :            : // *****************************************************************************
      16                 :            : #ifndef TransportPhysicsDGAdvection_h
      17                 :            : #define TransportPhysicsDGAdvection_h
      18                 :            : 
      19                 :            : #include <limits>
      20                 :            : 
      21                 :            : #include "Types.hpp"
      22                 :            : #include "Inciter/Options/Physics.hpp"
      23                 :            : 
      24                 :            : namespace inciter {
      25                 :            : namespace dg {
      26                 :            : 
      27                 :            : //! Physics policy for advection using continuous Galerkin (no-op)
      28                 :            : //! \details This class is a no-op, consistent with no additional physics needed
      29                 :            : //!   to make the basic implementation in Transport the advection equation.
      30                 :            : class TransportPhysicsAdvection {
      31                 :            : 
      32                 :            :   public:
      33                 :            : 
      34                 :            :     //! Add diffusion contribution to rhs at 2nd step stage (no-op)
      35                 :            :     static void
      36                 :            :     diffusionRhs( tk::ctr::ncomp_t,
      37                 :            :                   tk::ctr::ncomp_t,
      38                 :            :                   tk::real,
      39                 :            :                   tk::real,
      40                 :            :                   const std::array< std::array< tk::real, 3 >, 4 >&,
      41                 :            :                   const std::array< std::size_t, 4 >&,
      42                 :            :                   const std::vector< std::array< tk::real, 4 > >&,
      43                 :            :                   const std::vector< const tk::real* >&,
      44                 :            :                   tk::Fields& ) {}
      45                 :            : 
      46                 :            :     //! Compute the minimum time step size based on the diffusion
      47                 :            :     //! \return A large time step size, i.e., ignore
      48                 :            :     static tk::real
      49                 :            :     diffusion_dt( tk::ctr::ncomp_t,
      50                 :            :                   tk::ctr::ncomp_t,
      51                 :            :                   tk::real,
      52                 :            :                   const std::vector< std::array< tk::real, 4 > >& )
      53                 :            :     { return std::numeric_limits< tk::real >::max(); }
      54                 :            : 
      55                 :       7825 :     static ctr::PhysicsType type() noexcept
      56                 :       7825 :     { return ctr::PhysicsType::ADVECTION; }
      57                 :            : };
      58                 :            : 
      59                 :            : } // dg::
      60                 :            : } // inciter::
      61                 :            : 
      62                 :            : #endif // TransportPhysicsDGAdvection_h

Generated by: LCOV version 1.14