Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
Commits
258ba261
Commit
258ba261
authored
9 years ago
by
Dennis Gläser
Committed by
Timo Koch
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Implicit][VolVars] Remove evalPoint, adjust update() interface
parent
a514dfd0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!617
[WIP] Next
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/implicit/volumevariables.hh
+3
-60
3 additions, 60 deletions
dumux/implicit/volumevariables.hh
with
3 additions
and
60 deletions
dumux/implicit/volumevariables.hh
+
3
−
60
View file @
258ba261
...
@@ -46,59 +46,10 @@ class ImplicitVolumeVariables
...
@@ -46,59 +46,10 @@ class ImplicitVolumeVariables
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
)
GridView
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
)
GridView
;
typedef
typename
GridView
::
template
Codim
<
0
>
::
Entity
Element
;
typedef
typename
GridView
::
template
Codim
<
0
>
::
Entity
Element
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
FVElementGeometry
)
FVElementGeometry
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
FVElementGeometry
)
FVElementGeometry
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
SubControlVolume
)
SubControlVolume
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
PrimaryVariables
)
PrimaryVariables
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
PrimaryVariables
)
PrimaryVariables
;
public:
public:
// default constructor
ImplicitVolumeVariables
()
{
evalPoint_
=
0
;
}
// copy constructor
ImplicitVolumeVariables
(
const
ImplicitVolumeVariables
&
v
)
{
evalPoint_
=
0
;
priVars_
=
v
.
priVars_
;
extrusionFactor_
=
v
.
extrusionFactor_
;
}
/*!
* \brief Assignment operator
*/
ImplicitVolumeVariables
&
operator
=
(
const
ImplicitVolumeVariables
&
v
)
{
evalPoint_
=
0
;
priVars_
=
v
.
priVars_
;
extrusionFactor_
=
v
.
extrusionFactor_
;
return
*
this
;
}
/*!
* \brief Sets the evaluation point used by the local jacobian.
*
* The evaluation point is only used by semi-smooth models.
*/
void
setEvalPoint
(
const
Implementation
*
ep
)
{
evalPoint_
=
ep
;
Valgrind
::
CheckDefined
(
evalPoint_
);
}
// /*!
// * \brief Returns the evaluation point used by the local jacobian.
// *
// * The evaluation point is only used by semi-smooth models.
// */
// const Implementation &evalPoint() const
// { return (evalPoint_ == 0)?asImp_():*evalPoint_; }
// /*!
// * \brief Set the volume variables which should be used as initial
// * conditions for complex calculations.
// */
// void setHint(const Implementation *hint)
// {}
/*!
/*!
* \brief Update all quantities for a given control volume
* \brief Update all quantities for a given control volume
...
@@ -119,13 +70,11 @@ public:
...
@@ -119,13 +70,11 @@ public:
void
update
(
const
PrimaryVariables
&
priVars
,
void
update
(
const
PrimaryVariables
&
priVars
,
const
Problem
&
problem
,
const
Problem
&
problem
,
const
Element
&
element
,
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
SubControlVolume
&
scv
)
const
int
scvIdx
,
const
bool
isOldSol
)
{
{
Valgrind
::
CheckDefined
(
priVars
);
Valgrind
::
CheckDefined
(
priVars
);
priVars_
=
priVars
;
priVars_
=
priVars
;
extrusionFactor_
=
problem
.
boxExtrusionFactor
(
element
,
fvGeometry
,
scvIdx
);
extrusionFactor_
=
problem
.
boxExtrusionFactor
(
element
,
scv
);
}
}
/*!
/*!
...
@@ -164,9 +113,6 @@ public:
...
@@ -164,9 +113,6 @@ public:
{
{
#if !defined NDEBUG && HAVE_VALGRIND
#if !defined NDEBUG && HAVE_VALGRIND
Valgrind
::
CheckDefined
(
priVars_
);
Valgrind
::
CheckDefined
(
priVars_
);
Valgrind
::
CheckDefined
(
evalPoint_
);
if
(
evalPoint_
&&
evalPoint_
!=
this
)
evalPoint_
->
checkDefined
();
#endif
#endif
}
}
...
@@ -176,9 +122,6 @@ protected:
...
@@ -176,9 +122,6 @@ protected:
Implementation
&
asImp_
()
Implementation
&
asImp_
()
{
return
*
static_cast
<
Implementation
*>
(
this
);
}
{
return
*
static_cast
<
Implementation
*>
(
this
);
}
// the evaluation point of the local jacobian
const
Implementation
*
evalPoint_
;
PrimaryVariables
priVars_
;
PrimaryVariables
priVars_
;
Scalar
extrusionFactor_
;
Scalar
extrusionFactor_
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment