Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
f86c730b
Commit
f86c730b
authored
Dec 06, 2017
by
Dennis Gläser
Committed by
Timo Koch
Dec 12, 2017
Browse files
[elementsolution] introduce /= operator
this will be necessary in the grid data transfer for adaptive 2p models
parent
350bd384
Changes
2
Hide whitespace changes
Inline
Side-by-side
dumux/discretization/box/elementsolution.hh
View file @
f86c730b
...
...
@@ -103,6 +103,14 @@ public:
PrimaryVariables
&
operator
[](
IndexType
i
)
{
return
priVars_
[
i
];
}
//! \brief vector space division by scalar
template
<
typename
FieldType
>
BoxElementSolution
&
operator
/=
(
const
FieldType
&
k
)
{
priVars_
/=
k
;
return
*
this
;
}
private:
Dune
::
BlockVector
<
PrimaryVariables
>
priVars_
;
};
...
...
dumux/discretization/cellcentered/elementsolution.hh
View file @
f86c730b
...
...
@@ -94,6 +94,14 @@ public:
return
priVars_
;
}
//! \brief vector space division by scalar
template
<
typename
FieldType
>
CCElementSolution
&
operator
/=
(
const
FieldType
&
k
)
{
priVars_
/=
k
;
return
*
this
;
}
private:
PrimaryVariables
priVars_
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment