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
15657dd7
Commit
15657dd7
authored
10 years ago
by
Oliver Sander
Committed by
sander
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[bugfix] Distribute norm of correction to all processors for the stopping criterion
[[Imported from SVN: r9881]]
parent
4256f923
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
dune/gfe/riemanniantrsolver.cc
+5
-1
5 additions, 1 deletion
dune/gfe/riemanniantrsolver.cc
with
5 additions
and
1 deletion
dune/gfe/riemanniantrsolver.cc
+
5
−
1
View file @
15657dd7
...
@@ -378,6 +378,10 @@ void RiemannianTrustRegionSolver<GridType,TargetSpace>::solve()
...
@@ -378,6 +378,10 @@ void RiemannianTrustRegionSolver<GridType,TargetSpace>::solve()
corr
=
vectorComm
.
scatter
(
corr_global
);
corr
=
vectorComm
.
scatter
(
corr_global
);
// Make infinity norm of corr_global known on all processors
double
corrNorm
=
corr
.
infinity_norm
();
double
corrGlobalInfinityNorm
=
mpiHelper
.
getCollectiveCommunication
().
max
(
corrNorm
);
if
(
instrumented_
)
{
if
(
instrumented_
)
{
fprintf
(
fp
,
"Trust-region step: %d, trust-region radius: %g
\n
"
,
fprintf
(
fp
,
"Trust-region step: %d, trust-region radius: %g
\n
"
,
...
@@ -449,7 +453,7 @@ void RiemannianTrustRegionSolver<GridType,TargetSpace>::solve()
...
@@ -449,7 +453,7 @@ void RiemannianTrustRegionSolver<GridType,TargetSpace>::solve()
if
(
this
->
verbosity_
==
NumProc
::
FULL
)
if
(
this
->
verbosity_
==
NumProc
::
FULL
)
std
::
cout
<<
"Infinity norm of the correction: "
<<
corr
.
infinity_norm
()
<<
std
::
endl
;
std
::
cout
<<
"Infinity norm of the correction: "
<<
corr
.
infinity_norm
()
<<
std
::
endl
;
if
(
corr
_g
lobal
.
i
nfinity
_n
orm
()
<
this
->
tolerance_
)
{
if
(
corr
G
lobal
I
nfinity
N
orm
<
this
->
tolerance_
)
{
if
(
this
->
verbosity_
==
NumProc
::
FULL
and
rank
==
0
)
if
(
this
->
verbosity_
==
NumProc
::
FULL
and
rank
==
0
)
std
::
cout
<<
"CORRECTION IS SMALL ENOUGH"
<<
std
::
endl
;
std
::
cout
<<
"CORRECTION IS SMALL ENOUGH"
<<
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