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
b0a72b7d
Commit
b0a72b7d
authored
13 years ago
by
Elias Pipping
Committed by
Elias Pipping
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use auto
parent
f3e63c9e
No related branches found
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
+6
-8
6 additions, 8 deletions
src/one-body-sample.cc
with
6 additions
and
8 deletions
src/one-body-sample.cc
+
6
−
8
View file @
b0a72b7d
...
@@ -302,20 +302,19 @@ int main(int argc, char *argv[]) {
...
@@ -302,20 +302,19 @@ int main(int argc, char *argv[]) {
if
(
parset
.
get
<
bool
>
(
"useTNNMG"
))
{
if
(
parset
.
get
<
bool
>
(
"useTNNMG"
))
{
// {{{ Linear Solver;
// {{{ Linear Solver;
TruncatedBlockGSStep
<
OperatorType
,
VectorType
>
*
linearBaseSolverStep
=
auto
linearBaseSolverStep
=
new
TruncatedBlockGSStep
<
OperatorType
,
VectorType
>
;
new
TruncatedBlockGSStep
<
OperatorType
,
VectorType
>
;
auto
baseEnergyNorm
=
EnergyNorm
<
OperatorType
,
VectorType
>
*
baseEnergyNorm
=
new
EnergyNorm
<
OperatorType
,
VectorType
>
(
*
linearBaseSolverStep
);
new
EnergyNorm
<
OperatorType
,
VectorType
>
(
*
linearBaseSolverStep
);
LoopSolver
<
VectorType
>
*
linearBaseSolver
=
new
LoopSolver
<
VectorType
>
(
auto
linearBaseSolver
=
new
LoopSolver
<
VectorType
>
(
linearBaseSolverStep
,
solver_maxIterations
,
solver_tolerance
,
linearBaseSolverStep
,
solver_maxIterations
,
solver_tolerance
,
baseEnergyNorm
,
Solver
::
QUIET
);
baseEnergyNorm
,
Solver
::
QUIET
);
// }}}
// }}}
// {{{ Smoothers
// {{{ Smoothers
TruncatedBlockGSStep
<
OperatorType
,
VectorType
>
*
linearPresmoother
=
auto
linearPresmoother
=
new
TruncatedBlockGSStep
<
OperatorType
,
VectorType
>
;
new
TruncatedBlockGSStep
<
OperatorType
,
VectorType
>
;
TruncatedBlockGSStep
<
OperatorType
,
VectorType
>
*
linearPostsmoother
=
auto
linearPostsmoother
=
new
TruncatedBlockGSStep
<
OperatorType
,
VectorType
>
;
new
TruncatedBlockGSStep
<
OperatorType
,
VectorType
>
;
// }}}
// }}}
...
@@ -331,8 +330,7 @@ int main(int argc, char *argv[]) {
...
@@ -331,8 +330,7 @@ int main(int argc, char *argv[]) {
// {{{ Transfer operators
// {{{ Transfer operators
linearIterationStep
->
mgTransfer_
.
resize
(
levels
-
1
);
linearIterationStep
->
mgTransfer_
.
resize
(
levels
-
1
);
for
(
size_t
i
=
0
;
i
<
linearIterationStep
->
mgTransfer_
.
size
();
i
++
)
{
for
(
size_t
i
=
0
;
i
<
linearIterationStep
->
mgTransfer_
.
size
();
i
++
)
{
CompressedMultigridTransfer
<
VectorType
>
*
newTransferOp
=
auto
newTransferOp
=
new
CompressedMultigridTransfer
<
VectorType
>
;
new
CompressedMultigridTransfer
<
VectorType
>
;
newTransferOp
->
setup
(
grid
,
i
,
i
+
1
);
newTransferOp
->
setup
(
grid
,
i
,
i
+
1
);
linearIterationStep
->
mgTransfer_
[
i
]
=
newTransferOp
;
linearIterationStep
->
mgTransfer_
[
i
]
=
newTransferOp
;
}
}
...
...
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