Commit 6804ddd9 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'issue/cmake_have_package_rename' into 'master'

cmake have package rename

See merge request !141
parents ec3a3b44 1d50876a
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "Environment.hpp" #include "Environment.hpp"
#if HAVE_PETSC #if AMDIS_HAS_PETSC
#include <petscsys.h> #include <petscsys.h>
#endif #endif
...@@ -25,7 +25,7 @@ namespace AMDiS ...@@ -25,7 +25,7 @@ namespace AMDiS
Environment::Environment(int& argc, char**& argv, std::string const& initFileName) Environment::Environment(int& argc, char**& argv, std::string const& initFileName)
: Environment(initFileName) : Environment(initFileName)
{ {
#if HAVE_PETSC #if AMDIS_HAS_PETSC
PetscInitialize(&argc, &argv, PETSC_NULL, PETSC_NULL); PetscInitialize(&argc, &argv, PETSC_NULL, PETSC_NULL);
petscInitialized_ = true; petscInitialized_ = true;
#endif #endif
...@@ -45,7 +45,7 @@ namespace AMDiS ...@@ -45,7 +45,7 @@ namespace AMDiS
Environment::~Environment() Environment::~Environment()
{ {
#if HAVE_PETSC #if AMDIS_HAS_PETSC
if (petscInitialized_) if (petscInitialized_)
PetscFinalize(); PetscFinalize();
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment