Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
agnumpde
dune-tectonic
Commits
7fcc7ca6
Commit
7fcc7ca6
authored
10 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Rename: TrivialFunction -> ZeroFunction
parent
e588da8a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/tectonic/frictionpotential.hh
+1
-1
1 addition, 1 deletion
dune/tectonic/frictionpotential.hh
dune/tectonic/globalratestatefriction.hh
+3
-3
3 additions, 3 deletions
dune/tectonic/globalratestatefriction.hh
with
4 additions
and
4 deletions
dune/tectonic/frictionpotential.hh
+
1
−
1
View file @
7fcc7ca6
...
...
@@ -102,7 +102,7 @@ class RegularisedRateState : public FrictionPotential {
double
Vmin
;
};
class
Trivial
Function
:
public
FrictionPotential
{
class
Zero
Function
:
public
FrictionPotential
{
public:
double
evaluate
(
double
)
const
{
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
dune/tectonic/globalratestatefriction.hh
+
3
−
3
View file @
7fcc7ca6
...
...
@@ -29,8 +29,8 @@ class GlobalRateStateFriction : public GlobalFriction<Matrix, Vector> {
ScalarVector
const
&
weights
,
ScalarVector
const
&
weightedNormalStress
)
:
restrictions
(
weightedNormalStress
.
size
())
{
auto
trivial
Nonlinearity
=
std
::
make_shared
<
Friction
>
(
std
::
make_shared
<
Trivial
Function
>
());
auto
zero
Nonlinearity
=
std
::
make_shared
<
Friction
>
(
std
::
make_shared
<
Zero
Function
>
());
Dune
::
MultipleCodimMultipleGeomTypeMapper
<
GridView
,
Dune
::
MCMGVertexLayout
>
const
vertexMapper
(
gridView
);
...
...
@@ -39,7 +39,7 @@ class GlobalRateStateFriction : public GlobalFriction<Matrix, Vector> {
auto
const
i
=
vertexMapper
.
index
(
*
it
);
auto
const
coordinate
=
it
->
geometry
().
corner
(
0
);
if
(
not
frictionalBoundary
.
containsVertex
(
i
))
{
restrictions
[
i
]
=
trivial
Nonlinearity
;
restrictions
[
i
]
=
zero
Nonlinearity
;
continue
;
}
auto
const
fp
=
std
::
make_shared
<
ScalarFriction
>
(
...
...
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