Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
be59860f
Commit
be59860f
authored
Sep 25, 2020
by
Praetorius, Simon
Browse files
remove 'xyz is already created' warning in ProblemStat::initialize
parent
77862e92
Changes
1
Hide whitespace changes
Inline
Side-by-side
amdis/ProblemStat.inc.hpp
View file @
be59860f
...
...
@@ -26,10 +26,7 @@ void ProblemStat<Traits>::initialize(
Flag
adoptFlag
)
{
// create grids
if
(
grid_
)
{
warning
(
"grid already created"
);
}
else
{
if
(
!
grid_
)
{
if
(
initFlag
.
isSet
(
CREATE_MESH
)
||
(
!
adoptFlag
.
isSet
(
INIT_MESH
)
&&
(
initFlag
.
isSet
(
INIT_SYSTEM
)
||
initFlag
.
isSet
(
INIT_FE_SPACE
))))
{
...
...
@@ -48,10 +45,7 @@ void ProblemStat<Traits>::initialize(
warning
(
"no grid created"
);
// create fespace
if
(
globalBasis_
)
{
warning
(
"globalBasis already created"
);
}
else
{
if
(
!
globalBasis_
)
{
if
(
initFlag
.
isSet
(
INIT_FE_SPACE
)
||
(
initFlag
.
isSet
(
INIT_SYSTEM
)
&&
!
adoptFlag
.
isSet
(
INIT_FE_SPACE
)))
{
createGlobalBasis
();
...
...
@@ -79,10 +73,7 @@ void ProblemStat<Traits>::initialize(
// create solver
if
(
linearSolver_
)
{
warning
(
"solver already created
\n
"
);
}
else
{
if
(
!
linearSolver_
)
{
if
(
initFlag
.
isSet
(
INIT_SOLVER
))
createSolver
();
...
...
@@ -139,9 +130,7 @@ restore(Flag initFlag)
createMatricesAndVectors
();
// create solver
if
(
linearSolver_
)
warning
(
"solver already created
\n
"
);
else
if
(
initFlag
.
isSet
(
INIT_SOLVER
))
if
(
!
linearSolver_
&&
initFlag
.
isSet
(
INIT_SOLVER
))
createSolver
();
// create marker
...
...
Write
Preview
Supports
Markdown
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