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
356bbef9
Commit
356bbef9
authored
11 years ago
by
Elias Pipping
Committed by
Elias Pipping
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Add io group to parset
parent
d1f00e91
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
src/one-body-sample.cc
+6
-6
6 additions, 6 deletions
src/one-body-sample.cc
src/one-body-sample.parset
+6
-7
6 additions, 7 deletions
src/one-body-sample.parset
with
12 additions
and
13 deletions
src/one-body-sample.cc
+
6
−
6
View file @
356bbef9
...
@@ -363,7 +363,7 @@ int main(int argc, char *argv[]) {
...
@@ -363,7 +363,7 @@ int main(int argc, char *argv[]) {
refinements
,
1e-12
,
// FIXME,
refinements
,
1e-12
,
// FIXME,
*
grid
,
displacementDirichletNodes
);
*
grid
,
displacementDirichletNodes
);
auto
multigridStep
=
displacementFactory
.
getSolver
();
auto
multigridStep
=
displacementFactory
.
getSolver
();
auto
const
verbosity
=
parset
.
get
<
Solver
::
VerbosityMode
>
(
"verbosity"
);
auto
const
verbosity
=
parset
.
get
<
Solver
::
VerbosityMode
>
(
"
io.
verbosity"
);
typename
LinearFactoryType
::
ConvexProblemType
myConvexProblem
(
typename
LinearFactoryType
::
ConvexProblemType
myConvexProblem
(
1.0
,
A
,
zeroNonlinearity
,
ell
,
u_initial
);
1.0
,
A
,
zeroNonlinearity
,
ell
,
u_initial
);
...
@@ -415,7 +415,7 @@ int main(int argc, char *argv[]) {
...
@@ -415,7 +415,7 @@ int main(int argc, char *argv[]) {
refinements
,
1e-12
,
// FIXME,
refinements
,
1e-12
,
// FIXME,
*
grid
,
accelerationDirichletNodes
);
*
grid
,
accelerationDirichletNodes
);
auto
multigridStep
=
accelerationFactory
.
getSolver
();
auto
multigridStep
=
accelerationFactory
.
getSolver
();
auto
const
verbosity
=
parset
.
get
<
Solver
::
VerbosityMode
>
(
"verbosity"
);
auto
const
verbosity
=
parset
.
get
<
Solver
::
VerbosityMode
>
(
"
io.
verbosity"
);
typename
LinearFactoryType
::
ConvexProblemType
myConvexProblem
(
typename
LinearFactoryType
::
ConvexProblemType
myConvexProblem
(
1.0
,
M
,
zeroNonlinearity
,
problem_rhs_initial
,
a_initial
);
1.0
,
M
,
zeroNonlinearity
,
problem_rhs_initial
,
a_initial
);
...
@@ -446,7 +446,7 @@ int main(int argc, char *argv[]) {
...
@@ -446,7 +446,7 @@ int main(int argc, char *argv[]) {
solverTolerance
,
*
grid
,
solverTolerance
,
*
grid
,
velocityDirichletNodes
);
velocityDirichletNodes
);
auto
multigridStep
=
factory
.
getSolver
();
auto
multigridStep
=
factory
.
getSolver
();
auto
const
verbosity
=
parset
.
get
<
Solver
::
VerbosityMode
>
(
"verbosity"
);
auto
const
verbosity
=
parset
.
get
<
Solver
::
VerbosityMode
>
(
"
io.
verbosity"
);
{
{
std
::
fstream
coordinateWriter
(
"coordinates"
,
std
::
fstream
::
out
);
std
::
fstream
coordinateWriter
(
"coordinates"
,
std
::
fstream
::
out
);
...
@@ -482,7 +482,7 @@ int main(int argc, char *argv[]) {
...
@@ -482,7 +482,7 @@ int main(int argc, char *argv[]) {
auto
const
damping
=
parset
.
get
<
double
>
(
"solver.damping"
);
auto
const
damping
=
parset
.
get
<
double
>
(
"solver.damping"
);
auto
const
minimalCorrectionReduction
=
auto
const
minimalCorrectionReduction
=
parset
.
get
<
double
>
(
"solver.minimal_correction_reduction"
);
parset
.
get
<
double
>
(
"solver.minimal_correction_reduction"
);
auto
const
printProgress
=
parset
.
get
<
bool
>
(
"printProgress"
);
auto
const
printProgress
=
parset
.
get
<
bool
>
(
"
io.
printProgress"
);
for
(
size_t
run
=
1
;
run
<=
timesteps
;
++
run
)
{
for
(
size_t
run
=
1
;
run
<=
timesteps
;
++
run
)
{
VectorType
u
;
VectorType
u
;
double
lastCorrection
;
double
lastCorrection
;
...
@@ -587,7 +587,7 @@ int main(int argc, char *argv[]) {
...
@@ -587,7 +587,7 @@ int main(int argc, char *argv[]) {
iterationWriter
<<
std
::
endl
;
iterationWriter
<<
std
::
endl
;
dampingWriter
<<
std
::
endl
;
dampingWriter
<<
std
::
endl
;
if
(
parset
.
get
<
bool
>
(
"writeVTK"
))
{
if
(
parset
.
get
<
bool
>
(
"
io.
writeVTK"
))
{
SingletonVectorType
vonMisesStress
;
SingletonVectorType
vonMisesStress
;
auto
const
gridDisplacement
=
auto
const
gridDisplacement
=
Dune
::
make_shared
<
BasisGridFunction
<
P1Basis
,
VectorType
>
const
>
(
Dune
::
make_shared
<
BasisGridFunction
<
P1Basis
,
VectorType
>
const
>
(
...
@@ -600,7 +600,7 @@ int main(int argc, char *argv[]) {
...
@@ -600,7 +600,7 @@ int main(int argc, char *argv[]) {
(
boost
::
format
(
"obs%d"
)
%
run
).
str
());
(
boost
::
format
(
"obs%d"
)
%
run
).
str
());
}
}
}
}
if
(
parset
.
get
<
bool
>
(
"enableTimer"
))
if
(
parset
.
get
<
bool
>
(
"
io.
enableTimer"
))
std
::
cerr
<<
std
::
endl
<<
"Making "
<<
timesteps
<<
" time steps took "
std
::
cerr
<<
std
::
endl
<<
"Making "
<<
timesteps
<<
" time steps took "
<<
timer
.
elapsed
()
<<
"s"
<<
std
::
endl
;
<<
timer
.
elapsed
()
<<
"s"
<<
std
::
endl
;
...
...
This diff is collapsed.
Click to expand it.
src/one-body-sample.parset
+
6
−
7
View file @
356bbef9
...
@@ -2,15 +2,14 @@
...
@@ -2,15 +2,14 @@
timeSteps
=
10000
timeSteps
=
10000
endOfTime
=
15
endOfTime
=
15
verbosity
=
quiet
printProgress
=
false
writeVTK
=
false
enableTimer
=
false
timeSteppingScheme
=
newmark
timeSteppingScheme
=
newmark
[
io
]
verbosity
=
quiet
printProgress
=
false
enableTimer
=
false
writeVTK
=
false
[
grid
]
[
grid
]
refinements
=
4
refinements
=
4
...
...
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