Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
970d0d30
There was an error fetching the commit references. Please try again later.
Commit
970d0d30
authored
7 years ago
by
Tomáš Oberhuber
Browse files
Options
Downloads
Patches
Plain Diff
Fixed solver monitor.
parent
7143e05f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/TNL/Solvers/PDE/PDESolver.h
+2
-0
2 additions, 0 deletions
src/TNL/Solvers/PDE/PDESolver.h
src/TNL/Solvers/PDE/PDESolver_impl.h
+9
-2
9 additions, 2 deletions
src/TNL/Solvers/PDE/PDESolver_impl.h
src/TNL/Solvers/SolverStarter_impl.h
+5
-0
5 additions, 0 deletions
src/TNL/Solvers/SolverStarter_impl.h
with
16 additions
and
2 deletions
src/TNL/Solvers/PDE/PDESolver.h
+
2
−
0
View file @
970d0d30
...
@@ -46,6 +46,8 @@ class PDESolver : public Object
...
@@ -46,6 +46,8 @@ class PDESolver : public Object
void
setComputeTimer
(
Timer
&
computeTimer
);
void
setComputeTimer
(
Timer
&
computeTimer
);
void
setTotalTimer
(
Timer
&
totalTimer
);
void
setTotalTimer
(
Timer
&
totalTimer
);
SolverMonitorType
&
getSolverMonitor
();
bool
writeEpilog
(
Logger
&
logger
)
const
;
bool
writeEpilog
(
Logger
&
logger
)
const
;
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Solvers/PDE/PDESolver_impl.h
+
9
−
2
View file @
970d0d30
...
@@ -46,11 +46,18 @@ setup( const Config::ParameterContainer& parameters,
...
@@ -46,11 +46,18 @@ setup( const Config::ParameterContainer& parameters,
*/
*/
this
->
solverMonitorPointer
->
setVerbose
(
parameters
.
getParameter
<
int
>
(
"verbose"
)
);
this
->
solverMonitorPointer
->
setVerbose
(
parameters
.
getParameter
<
int
>
(
"verbose"
)
);
this
->
solverMonitorPointer
->
setTimer
(
*
this
->
totalTimer
);
this
->
solverMonitorPointer
->
setTimer
(
*
this
->
totalTimer
);
SolverMonitorThread
t
(
*
this
->
solverMonitorPointer
);
return
true
;
return
true
;
}
}
template
<
typename
Real
,
typename
Index
>
typename
PDESolver
<
Real
,
Index
>::
SolverMonitorType
&
PDESolver
<
Real
,
Index
>::
getSolverMonitor
()
{
return
*
this
->
solverMonitorPointer
;
}
template
<
typename
Real
,
template
<
typename
Real
,
typename
Index
>
typename
Index
>
bool
bool
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Solvers/SolverStarter_impl.h
+
5
−
0
View file @
970d0d30
...
@@ -446,6 +446,11 @@ bool SolverStarter< ConfigTag > :: runPDESolver( Problem& problem,
...
@@ -446,6 +446,11 @@ bool SolverStarter< ConfigTag > :: runPDESolver( Problem& problem,
solver
.
setComputeTimer
(
this
->
computeTimer
);
solver
.
setComputeTimer
(
this
->
computeTimer
);
solver
.
setIoTimer
(
this
->
ioTimer
);
solver
.
setIoTimer
(
this
->
ioTimer
);
solver
.
setTotalTimer
(
this
->
totalTimer
);
solver
.
setTotalTimer
(
this
->
totalTimer
);
/****
* Create solver monitor thread
*/
SolverMonitorThread
t
(
solver
.
getSolverMonitor
()
);
/****
/****
* Start the solver
* Start the solver
...
...
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