Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argupta
openfpm_pdata
Commits
9a53ce73
Commit
9a53ce73
authored
Dec 25, 2018
by
incardon
Browse files
Fixing compilation of the examples when PETSC is not present
parent
aa6988ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
build.sh
View file @
9a53ce73
...
...
@@ -139,6 +139,7 @@ else
if
[
x
"
$comp_type
"
==
x
"full"
]
;
then
echo
"Installing with: ./install -i
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
-s -c
\"
$installation_dir
\"
"
./install
-i
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
-s
-c
"
$installation_dir
"
make
install
if
[
$?
-ne
0
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$hostname
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
exit
1
;
...
...
example/Numerics/Stoke_flow/0_2D_incompressible/main_petsc.cpp
View file @
9a53ce73
...
...
@@ -30,6 +30,10 @@
//! \cond [def system] \endcond
#include "config.h"
#ifdef HAVE_PETSC
#include "Grid/grid_dist_id.hpp"
#include "Matrix/SparseMatrix.hpp"
#include "Vector/Vector.hpp"
...
...
@@ -441,3 +445,12 @@ int main(int argc, char* argv[])
*/
}
#else
int
main
(
int
argc
,
char
*
argv
[])
{
return
0
;
}
#endif
example/Numerics/Stoke_flow/1_3D_incompressible/main_petsc.cpp
View file @
9a53ce73
...
...
@@ -31,6 +31,10 @@
//! \cond [def system] \endcond
#include "config.h"
#ifdef HAVE_PETSC
#include "Grid/grid_dist_id.hpp"
#include "Matrix/SparseMatrix.hpp"
#include "Vector/Vector.hpp"
...
...
@@ -502,3 +506,12 @@ int main(int argc, char* argv[])
*
*/
}
#else
int
main
(
int
argc
,
char
*
argv
[])
{
return
0
;
}
#endif
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