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
3b3941e6
Commit
3b3941e6
authored
11 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Move declarations
parent
374fd746
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/one-body-sample.cc
+2
-4
2 additions, 4 deletions
src/one-body-sample.cc
with
2 additions
and
4 deletions
src/one-body-sample.cc
+
2
−
4
View file @
3b3941e6
...
@@ -244,6 +244,7 @@ int main(int argc, char *argv[]) {
...
@@ -244,6 +244,7 @@ int main(int argc, char *argv[]) {
;
;
}
}
}
}
BoundaryPatch
<
GridView
>
const
frictionalBoundary
(
leafView
,
frictionalNodes
);
// Set up functions for time-dependent boundary conditions
// Set up functions for time-dependent boundary conditions
using
FunctionType
=
Dune
::
VirtualFunction
<
double
,
double
>
;
using
FunctionType
=
Dune
::
VirtualFunction
<
double
,
double
>
;
...
@@ -324,9 +325,6 @@ int main(int argc, char *argv[]) {
...
@@ -324,9 +325,6 @@ int main(int argc, char *argv[]) {
EnergyNorm
<
SingletonMatrixType
,
SingletonVectorType
>
const
stateEnergyNorm
(
EnergyNorm
<
SingletonMatrixType
,
SingletonVectorType
>
const
stateEnergyNorm
(
frictionalBoundaryMassMatrix
);
frictionalBoundaryMassMatrix
);
{
{
BoundaryPatch
<
GridView
>
const
frictionalBoundary
(
leafView
,
frictionalNodes
);
BoundaryMassAssembler
<
BoundaryMassAssembler
<
GridType
,
BoundaryPatch
<
GridView
>
,
P1Basis
::
LocalFiniteElement
,
GridType
,
BoundaryPatch
<
GridView
>
,
P1Basis
::
LocalFiniteElement
,
P1Basis
::
LocalFiniteElement
,
SmallSingletonMatrix
>
const
P1Basis
::
LocalFiniteElement
,
SmallSingletonMatrix
>
const
...
@@ -580,10 +578,10 @@ int main(int argc, char *argv[]) {
...
@@ -580,10 +578,10 @@ int main(int argc, char *argv[]) {
relaxationWriter
<<
std
::
endl
;
relaxationWriter
<<
std
::
endl
;
if
(
parset
.
get
<
bool
>
(
"io.writeVTK"
))
{
if
(
parset
.
get
<
bool
>
(
"io.writeVTK"
))
{
SingletonVectorType
vonMisesStress
;
auto
const
gridDisplacement
=
auto
const
gridDisplacement
=
Dune
::
make_shared
<
BasisGridFunction
<
P1Basis
,
VectorType
>
const
>
(
Dune
::
make_shared
<
BasisGridFunction
<
P1Basis
,
VectorType
>
const
>
(
p1Basis
,
u
);
p1Basis
,
u
);
SingletonVectorType
vonMisesStress
;
VonMisesStressAssembler
<
GridType
>
localStressAssembler
(
VonMisesStressAssembler
<
GridType
>
localStressAssembler
(
E
,
nu
,
gridDisplacement
);
E
,
nu
,
gridDisplacement
);
p0Assembler
.
assembleFunctional
(
localStressAssembler
,
vonMisesStress
);
p0Assembler
.
assembleFunctional
(
localStressAssembler
,
vonMisesStress
);
...
...
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