Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
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
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
Sander, Oliver
dune-gfe
Commits
0a5b3279
Commit
0a5b3279
authored
11 years ago
by
Oliver Sander
Committed by
sander
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove trailing whitespace
[[Imported from SVN: r9438]]
parent
0cbc9913
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
rod-eoc.cc
+14
-14
14 additions, 14 deletions
rod-eoc.cc
with
14 additions
and
14 deletions
rod-eoc.cc
+
14
−
14
View file @
0a5b3279
...
...
@@ -35,7 +35,7 @@ using namespace Dune;
using
std
::
string
;
void
solve
(
const
GridType
&
grid
,
SolutionType
&
x
,
SolutionType
&
x
,
int
numLevels
,
const
TargetSpace
&
dirichletValue
,
const
ParameterTree
&
parameters
)
...
...
@@ -80,9 +80,9 @@ void solve (const GridType& grid,
// Both ends are Dirichlet
BitSetVector
<
blocksize
>
dirichletNodes
(
grid
.
size
(
1
));
dirichletNodes
.
unsetAll
();
dirichletNodes
[
0
]
=
dirichletNodes
.
back
()
=
true
;
// ///////////////////////////////////////////
// Create a solver for the rod problem
// ///////////////////////////////////////////
...
...
@@ -91,7 +91,7 @@ void solve (const GridType& grid,
RiemannianTrustRegionSolver
<
GridType
,
RigidBodyMotion
<
double
,
3
>
>
rodSolver
;
#if 1
rodSolver
.
setup
(
grid
,
rodSolver
.
setup
(
grid
,
&
rodAssembler
,
x
,
dirichletNodes
,
...
...
@@ -105,7 +105,7 @@ void solve (const GridType& grid,
1e-8
,
// base tolerance
false
);
// instrumentation
#else
rodSolver
.
setupTCG
(
grid
,
rodSolver
.
setupTCG
(
grid
,
&
rodAssembler
,
x
,
dirichletNodes
,
...
...
@@ -145,7 +145,7 @@ int main (int argc, char *argv[]) try
const
double
baseTolerance
=
parameterSet
.
get
<
double
>
(
"baseTolerance"
);
const
int
numRodBaseElements
=
parameterSet
.
get
<
int
>
(
"numRodBaseElements"
);
// /////////////////////////////////////////
// Read Dirichlet values
// /////////////////////////////////////////
...
...
@@ -168,9 +168,9 @@ int main (int argc, char *argv[]) try
// ///////////////////////////////////////////////////////////
// Create the reference grid
GridType
referenceGrid
(
numRodBaseElements
,
0
,
1
);
referenceGrid
.
globalRefine
(
numLevels
-
1
);
// Solve the rod Dirichlet problem
...
...
@@ -198,7 +198,7 @@ int main (int argc, char *argv[]) try
// ///////////////////////////////////////////////////////////
// Compute on all coarser levels, and compare
// ///////////////////////////////////////////////////////////
for
(
int
i
=
1
;
i
<=
numLevels
;
i
++
)
{
GridType
grid
(
numRodBaseElements
,
0
,
1
);
...
...
@@ -224,20 +224,20 @@ int main (int argc, char *argv[]) try
H1SemiNorm
<
BlockVector
<
TargetSpace
::
TangentVector
>
>
l2Norm
(
massMatrix
);
// Compute max-norm difference
std
::
cout
<<
"Level: "
<<
i
-
1
std
::
cout
<<
"Level: "
<<
i
-
1
<<
", max-norm error: "
<<
difference
.
infinity_norm
()
<<
std
::
endl
;
std
::
cout
<<
"Level: "
<<
i
-
1
std
::
cout
<<
"Level: "
<<
i
-
1
<<
", L2 error: "
<<
l2Norm
(
difference
)
<<
std
::
endl
;
std
::
cout
<<
"Level: "
<<
i
-
1
std
::
cout
<<
"Level: "
<<
i
-
1
<<
", H1 error: "
<<
h1Norm
(
difference
)
<<
std
::
endl
;
}
}
}
catch
(
Exception
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
...
...
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