Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amdis-core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
amdis
amdis-core
Commits
be59860f
Commit
be59860f
authored
Sep 25, 2020
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove 'xyz is already created' warning in ProblemStat::initialize
parent
77862e92
Pipeline
#4884
passed with stage
in 61 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
amdis/ProblemStat.inc.hpp
amdis/ProblemStat.inc.hpp
+4
-15
No files found.
amdis/ProblemStat.inc.hpp
View file @
be59860f
...
@@ -26,10 +26,7 @@ void ProblemStat<Traits>::initialize(
...
@@ -26,10 +26,7 @@ void ProblemStat<Traits>::initialize(
Flag
adoptFlag
)
Flag
adoptFlag
)
{
{
// create grids
// create grids
if
(
grid_
)
{
if
(
!
grid_
)
{
warning
(
"grid already created"
);
}
else
{
if
(
initFlag
.
isSet
(
CREATE_MESH
)
||
if
(
initFlag
.
isSet
(
CREATE_MESH
)
||
(
!
adoptFlag
.
isSet
(
INIT_MESH
)
&&
(
!
adoptFlag
.
isSet
(
INIT_MESH
)
&&
(
initFlag
.
isSet
(
INIT_SYSTEM
)
||
initFlag
.
isSet
(
INIT_FE_SPACE
))))
{
(
initFlag
.
isSet
(
INIT_SYSTEM
)
||
initFlag
.
isSet
(
INIT_FE_SPACE
))))
{
...
@@ -48,10 +45,7 @@ void ProblemStat<Traits>::initialize(
...
@@ -48,10 +45,7 @@ void ProblemStat<Traits>::initialize(
warning
(
"no grid created"
);
warning
(
"no grid created"
);
// create fespace
// create fespace
if
(
globalBasis_
)
{
if
(
!
globalBasis_
)
{
warning
(
"globalBasis already created"
);
}
else
{
if
(
initFlag
.
isSet
(
INIT_FE_SPACE
)
||
if
(
initFlag
.
isSet
(
INIT_FE_SPACE
)
||
(
initFlag
.
isSet
(
INIT_SYSTEM
)
&&
!
adoptFlag
.
isSet
(
INIT_FE_SPACE
)))
{
(
initFlag
.
isSet
(
INIT_SYSTEM
)
&&
!
adoptFlag
.
isSet
(
INIT_FE_SPACE
)))
{
createGlobalBasis
();
createGlobalBasis
();
...
@@ -79,10 +73,7 @@ void ProblemStat<Traits>::initialize(
...
@@ -79,10 +73,7 @@ void ProblemStat<Traits>::initialize(
// create solver
// create solver
if
(
linearSolver_
)
{
if
(
!
linearSolver_
)
{
warning
(
"solver already created
\n
"
);
}
else
{
if
(
initFlag
.
isSet
(
INIT_SOLVER
))
if
(
initFlag
.
isSet
(
INIT_SOLVER
))
createSolver
();
createSolver
();
...
@@ -139,9 +130,7 @@ restore(Flag initFlag)
...
@@ -139,9 +130,7 @@ restore(Flag initFlag)
createMatricesAndVectors
();
createMatricesAndVectors
();
// create solver
// create solver
if
(
linearSolver_
)
if
(
!
linearSolver_
&&
initFlag
.
isSet
(
INIT_SOLVER
))
warning
(
"solver already created
\n
"
);
else
if
(
initFlag
.
isSet
(
INIT_SOLVER
))
createSolver
();
createSolver
();
// create marker
// create marker
...
...
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