Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux-course
Merge requests
!300
Use DiscretizationDefaultLocalOperator.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Use DiscretizationDefaultLocalOperator.
feature/default-discretization-local-operator
into
master
Overview
0
Commits
2
Pipelines
4
Changes
4
Merged
Ivan Buntic
requested to merge
feature/default-discretization-local-operator
into
master
4 weeks ago
Overview
0
Commits
2
Pipelines
4
Changes
4
Expand
A possible extension to
#83 (closed)
.
0
0
Merge request reports
Compare
master
version 3
afbbb2ae
3 weeks ago
version 2
7f75762f
3 weeks ago
version 1
eaf35f3c
4 weeks ago
master (base)
and
version 2
latest version
00875fa6
2 commits,
3 weeks ago
version 3
afbbb2ae
1 commit,
3 weeks ago
version 2
7f75762f
1 commit,
3 weeks ago
version 1
eaf35f3c
1 commit,
4 weeks ago
4 files
+
20
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
exercises/exercise-properties/mylocalresidual.hh
+
6
−
4
Options
@@ -15,6 +15,7 @@
#include
<dumux/common/properties.hh>
#include
<dumux/common/numeqvector.hh>
#include
<dumux/discretization/defaultlocaloperator.hh>
namespace
Dumux
{
@@ -24,9 +25,10 @@ namespace Dumux
* using the n-phase immiscible fully implicit models.
*/
template
<
class
TypeTag
>
class
MyLocalResidual
:
public
GetPropType
<
TypeTag
,
Properties
::
BaseLocalResidual
>
class
MyLocalResidual
:
public
DiscretizationDefaultLocalOperator
<
TypeTag
>
{
using
ParentType
=
GetPropType
<
TypeTag
,
Properties
::
BaseLocalResidual
>
;
using
GridGeometry
=
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>
;
using
ParentType
=
DiscretizationDefaultLocalOperator
<
TypeTag
>
;
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
Problem
=
GetPropType
<
TypeTag
,
Properties
::
Problem
>
;
using
NumEqVector
=
Dumux
::
NumEqVector
<
GetPropType
<
TypeTag
,
Properties
::
PrimaryVariables
>>
;
@@ -34,10 +36,10 @@ class MyLocalResidual : public GetPropType<TypeTag, Properties::BaseLocalResidua
using
ElementVolumeVariables
=
typename
GetPropType
<
TypeTag
,
Properties
::
GridVolumeVariables
>::
LocalView
;
using
FluxVariables
=
GetPropType
<
TypeTag
,
Properties
::
FluxVariables
>
;
using
ElementFluxVariablesCache
=
typename
GetPropType
<
TypeTag
,
Properties
::
GridFluxVariablesCache
>::
LocalView
;
using
FVElementGeometry
=
typename
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>
::
LocalView
;
using
FVElementGeometry
=
typename
GridGeometry
::
LocalView
;
using
SubControlVolume
=
typename
FVElementGeometry
::
SubControlVolume
;
using
SubControlVolumeFace
=
typename
FVElementGeometry
::
SubControlVolumeFace
;
using
GridView
=
typename
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>
::
GridView
;
using
GridView
=
typename
GridGeometry
::
GridView
;
using
Element
=
typename
GridView
::
template
Codim
<
0
>
::
Entity
;
using
EnergyLocalResidual
=
GetPropType
<
TypeTag
,
Properties
::
EnergyLocalResidual
>
;
Loading