Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nektar
Nektar
Commits
c31d8206
Commit
c31d8206
authored
Apr 25, 2016
by
Douglas Serson
Browse files
Small fix to make DriverAdaptive more general
parent
333366c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
library/LibUtilities/BasicUtils/NekManager.hpp
View file @
c31d8206
...
...
@@ -258,6 +258,19 @@ namespace Nektar
}
}
static
bool
PoolCreated
(
std
::
string
whichPool
)
{
bool
value
=
false
;
typename
ValueContainerPool
::
iterator
x
;
x
=
m_ValueContainerPool
.
find
(
whichPool
);
if
(
x
!=
m_ValueContainerPool
.
end
())
{
value
=
true
;
}
return
value
;
}
static
void
EnableManagement
(
std
::
string
whichPool
=
""
)
{
typename
FlagContainerPool
::
iterator
x
;
...
...
library/SolverUtils/DriverAdaptive.cpp
View file @
c31d8206
...
...
@@ -293,9 +293,14 @@ void DriverAdaptive::v_Execute(ostream &out)
//
// @todo This could be made better by replacing individual matrices
// within the linear system.
LibUtilities
::
NekManager
<
MultiRegions
::
GlobalLinSysKey
,
MultiRegions
::
GlobalLinSys
>::
ClearManager
(
std
::
string
(
"GlobalLinSys"
));
if
(
LibUtilities
::
NekManager
<
MultiRegions
::
GlobalLinSysKey
,
MultiRegions
::
GlobalLinSys
>::
PoolCreated
(
std
::
string
(
"GlobalLinSys"
)))
{
LibUtilities
::
NekManager
<
MultiRegions
::
GlobalLinSysKey
,
MultiRegions
::
GlobalLinSys
>::
ClearManager
(
std
::
string
(
"GlobalLinSys"
));
}
int
chkNumber
=
m_equ
[
0
]
->
GetCheckpointNumber
();
int
chkSteps
=
m_equ
[
0
]
->
GetCheckpointSteps
();
...
...
Douglas Serson
@d.serson
mentioned in commit
3ba9dfa4
·
May 22, 2016
mentioned in commit
3ba9dfa4
mentioned in commit 3ba9dfa42c49133edf2a870e6a079c6bbc009129
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment