Skip to content
GitLab
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
6804ddd9
Commit
6804ddd9
authored
Dec 28, 2019
by
Praetorius, Simon
Browse files
Merge branch 'issue/cmake_have_package_rename' into 'master'
cmake have package rename See merge request
!141
parents
ec3a3b44
1d50876a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/Environment.cpp
View file @
6804ddd9
...
...
@@ -4,7 +4,7 @@
#include
"Environment.hpp"
#if
HAVE
_PETSC
#if
AMDIS_HAS
_PETSC
#include
<petscsys.h>
#endif
...
...
@@ -25,7 +25,7 @@ namespace AMDiS
Environment
::
Environment
(
int
&
argc
,
char
**&
argv
,
std
::
string
const
&
initFileName
)
:
Environment
(
initFileName
)
{
#if
HAVE
_PETSC
#if
AMDIS_HAS
_PETSC
PetscInitialize
(
&
argc
,
&
argv
,
PETSC_NULL
,
PETSC_NULL
);
petscInitialized_
=
true
;
#endif
...
...
@@ -45,7 +45,7 @@ namespace AMDiS
Environment
::~
Environment
()
{
#if
HAVE
_PETSC
#if
AMDIS_HAS
_PETSC
if
(
petscInitialized_
)
PetscFinalize
();
#endif
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment