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
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_pdata
Commits
c7c0cefc
Commit
c7c0cefc
authored
Apr 15, 2018
by
incardon
Browse files
Fixing installation of PETSC
parent
3dca0d86
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/install_PETSC.sh
View file @
c7c0cefc
...
...
@@ -362,15 +362,28 @@ fi
tar
-xf
petsc-lite-3.7.6.tar.gz
cd
petsc-3.7.6
echo
"./configure COPTFLAGS="
-O3
-g
" CXXOPTFLAGS="
-O3
-g
" FOPTFLAGS="
-O3
-g
"
$ldflags_petsc
--with-cxx-dialect=C++11
$petsc_openmp
--with-mpi-dir=
$mpi_dir
$configure_options
--with-mumps-lib="
$MUMPS_extra_lib
" --prefix=
$1
/PETSC --with-debugging=0"
if
[
x
"
$CXX
"
!=
x
"icpc"
]
;
then
function
haveProg
()
{
[
-x
"
$(
command
-v
$1
)
"
]
}
echo
"./configure COPTFLAGS="
-O3
-g
" CXXOPTFLAGS="
-O3
-g
" FOPTFLAGS="
-O3
-g
"
$ldflags_petsc
--with-cxx-dialect=C++11
$petsc_openmp
--with-mpi-dir=
$mpi_dir
$configure_options
--with-mumps-lib="
$MUMPS_extra_lib
" --prefix=
$1
/PETSC --with-debugging=0"
function
haveProg
()
{
[
-x
"
$(
command
-v
$1
)
"
]
}
$python_command
./configure
COPTFLAGS
=
"-O3 -g"
CXXOPTFLAGS
=
"-O3 -g"
FOPTFLAGS
=
"-O3 -g"
$ldflags_petsc
--with-cxx-dialect
=
C++11
$petsc_openmp
--with-mpi-dir
=
$mpi_dir
$configure_options
--with-mumps-lib
=
"
$MUMPS_extra_lib
"
--prefix
=
$1
/PETSC
--with-debugging
=
0
else
echo
"./configure COPTFLAGS="
-O3
-g
" CXXOPTFLAGS="
-O3
-g
" FOPTFLAGS="
-O3
-g
"
$ldflags_petsc
--with-cxx-dialect=C++11
$petsc_openmp
--with-mpi-dir=
$mpi_dir
$configure_options
--prefix=
$1
/PETSC --with-debugging=0"
function
haveProg
()
{
[
-x
"
$(
command
-v
$1
)
"
]
}
$python_command
./configure
COPTFLAGS
=
"-O3 -g"
CXXOPTFLAGS
=
"-O3 -g"
FOPTFLAGS
=
"-O3 -g"
$ldflags_petsc
--with-cxx-dialect
=
C++11
$petsc_openmp
--with-mpi-dir
=
$mpi_dir
$configure_options
--prefix
=
$1
/PETSC
--with-debugging
=
0
fi
$python_command
./configure
COPTFLAGS
=
"-O3 -g"
CXXOPTFLAGS
=
"-O3 -g"
FOPTFLAGS
=
"-O3 -g"
$ldflags_petsc
--with-cxx-dialect
=
C++11
$petsc_openmp
--with-mpi-dir
=
$mpi_dir
$configure_options
--with-mumps-lib
=
"
$MUMPS_extra_lib
"
--prefix
=
$1
/PETSC
--with-debugging
=
0
make all
test
make
install
...
...
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