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
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
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
podlesny
dune-tectonic
Commits
67b2b386
Commit
67b2b386
authored
11 years ago
by
Elias Pipping
Committed by
Elias Pipping
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of dataref
parent
14a40c3a
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/globalnonlinearity.hh
+3
-3
3 additions, 3 deletions
dune/tectonic/globalnonlinearity.hh
dune/tectonic/globalruinanonlinearity.hh
+5
-3
5 additions, 3 deletions
dune/tectonic/globalruinanonlinearity.hh
with
8 additions
and
6 deletions
dune/tectonic/globalnonlinearity.hh
+
3
−
3
View file @
67b2b386
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
namespace
Dune
{
namespace
Dune
{
template
<
class
MatrixTypeTEMPLATE
,
class
VectorTypeTEMPLATE
>
template
<
class
MatrixTypeTEMPLATE
,
class
VectorTypeTEMPLATE
>
class
GlobalNonlinearity
{
class
GlobalNonlinearity
{
pr
ivate
:
pr
otected
:
using
dataref
=
BlockVector
<
FieldVector
<
double
,
1
>>
const
&
;
using
SingletonVectorType
=
BlockVector
<
FieldVector
<
double
,
1
>>
;
public:
public:
using
MatrixType
=
MatrixTypeTEMPLATE
;
using
MatrixType
=
MatrixTypeTEMPLATE
;
...
@@ -78,7 +78,7 @@ class GlobalNonlinearity {
...
@@ -78,7 +78,7 @@ class GlobalNonlinearity {
return
res
->
regularity
(
x
);
return
res
->
regularity
(
x
);
}
}
virtual
void
updateState
(
dataref
state
)
=
0
;
virtual
void
updateState
(
SingletonVectorType
const
&
state
)
=
0
;
};
};
}
}
#endif
#endif
This diff is collapsed.
Click to expand it.
dune/tectonic/globalruinanonlinearity.hh
+
5
−
3
View file @
67b2b386
...
@@ -18,13 +18,15 @@ template <class MatrixType, class VectorType>
...
@@ -18,13 +18,15 @@ template <class MatrixType, class VectorType>
class
GlobalRuinaNonlinearity
class
GlobalRuinaNonlinearity
:
public
GlobalNonlinearity
<
MatrixType
,
VectorType
>
{
:
public
GlobalNonlinearity
<
MatrixType
,
VectorType
>
{
private:
private:
using
dataref
=
BlockVector
<
FieldVector
<
double
,
1
>>
const
&
;
using
typename
GlobalNonlinearity
<
MatrixType
,
VectorType
>::
SingletonVectorType
;
public:
public:
using
GlobalNonlinearity
<
MatrixType
,
VectorType
>::
dim
;
using
GlobalNonlinearity
<
MatrixType
,
VectorType
>::
dim
;
GlobalRuinaNonlinearity
(
Dune
::
BitSetVector
<
1
>
const
&
frictionalNodes
,
GlobalRuinaNonlinearity
(
Dune
::
BitSetVector
<
1
>
const
&
frictionalNodes
,
dataref
nodalIntegrals
,
FrictionData
const
&
fd
)
SingletonVectorType
const
&
nodalIntegrals
,
FrictionData
const
&
fd
)
:
restrictions
(
nodalIntegrals
.
size
())
{
:
restrictions
(
nodalIntegrals
.
size
())
{
auto
trivialNonlinearity
=
auto
trivialNonlinearity
=
make_shared
<
LocalFriction
<
dim
>>
(
make_shared
<
TrivialFunction
>
());
make_shared
<
LocalFriction
<
dim
>>
(
make_shared
<
TrivialFunction
>
());
...
@@ -37,7 +39,7 @@ class GlobalRuinaNonlinearity
...
@@ -37,7 +39,7 @@ class GlobalRuinaNonlinearity
}
}
}
}
void
updateState
(
dataref
state
)
override
{
void
updateState
(
SingletonVectorType
const
&
state
)
override
{
for
(
size_t
i
=
0
;
i
<
restrictions
.
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
restrictions
.
size
();
++
i
)
restrictions
[
i
]
->
updateState
(
state
[
i
]);
restrictions
[
i
]
->
updateState
(
state
[
i
]);
}
}
...
...
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