Line | Branch | Exec | Source |
---|---|---|---|
1 | // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- | ||
2 | // vi: set et ts=4 sw=4 sts=4: | ||
3 | // | ||
4 | // SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder | ||
5 | // SPDX-License-Identifier: GPL-3.0-or-later | ||
6 | // | ||
7 | /*! | ||
8 | * \file | ||
9 | * \ingroup OnePTests | ||
10 | * \brief Dummy assembler that fulfills the new experimental assembly interface. | ||
11 | */ | ||
12 | #ifndef DUMUX_COMPRESSIBLE_ONEP_TEST_ASSEMBLER_HH | ||
13 | #define DUMUX_COMPRESSIBLE_ONEP_TEST_ASSEMBLER_HH | ||
14 | |||
15 | namespace Dumux::OnePCompressibleTest { | ||
16 | |||
17 | // Custom assembler to test assembly with grid variables, | ||
18 | // fulfilling the foreseen required interface | ||
19 | template<class Assembler> | ||
20 | 1 | class GridVarsAssembler : public Assembler | |
21 | { | ||
22 | public: | ||
23 |
1/2✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
|
1 | using Assembler::Assembler; |
24 | using typename Assembler::GridVariables; | ||
25 | using typename Assembler::ResidualType; | ||
26 | |||
27 | using Variables = GridVariables; | ||
28 | |||
29 | void assembleJacobianAndResidual(const GridVariables& gridVars) | ||
30 | 106 | { Assembler::assembleJacobianAndResidual(gridVars.dofs()); } | |
31 | |||
32 | void assembleResidual(const GridVariables& gridVars) | ||
33 | ✗ | { Assembler::assembleResidual(gridVars.dofs()); } | |
34 | }; | ||
35 | |||
36 | } // end namespace Dumux::OnePCompressibleTest | ||
37 | |||
38 | #endif | ||
39 |