Commit 7f367f21 authored by incardon's avatar incardon
Browse files

Fixing examples when PETSC is not detected

parent edf35a7a
......@@ -146,7 +146,6 @@ else
mv $HOME/openfpm_vars $HOME/openfpm_vars_$branch
source $HOME/openfpm_vars_$branch
elif [ x"$comp_type" == x"numerics" ]; then
branch=$(git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3)
./install -i $HOME/openfpm_dependencies/openfpm_pdata/$branch -m -s -c "$installation_dir"
if [ $? -ne 0 ]; then
......
......@@ -102,6 +102,10 @@
*
*/
#include "config.h"
#ifdef HAVE_PETSC
//#define SE_CLASS1
//#define PRINT_STACKTRACE
......@@ -1323,3 +1327,11 @@ int main(int argc, char* argv[])
openfpm_finalize();
}
#else
int main(int argc, char* argv[])
{
return 0;
}
#endif
......@@ -91,6 +91,10 @@
*
*/
#include "config.h"
#ifdef HAVE_PETSC
//#define SE_CLASS1
//#define PRINT_STACKTRACE
......@@ -1285,3 +1289,12 @@ int main(int argc, char* argv[])
openfpm_finalize();
}
#else
int main(int argc, char* argv[])
{
return 0;
}
#endif
......@@ -24,6 +24,10 @@
*
*/
#include "config.h"
#ifdef HAVE_PETSC
//#define SE_CLASS1
//#define PRINT_STACKTRACE
......@@ -883,3 +887,11 @@ int main(int argc, char* argv[])
openfpm_finalize();
}
#else
int main(int argc, char* argv[])
{
return 0;
}
#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