Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
argupta
openfpm_pdata
Commits
d5742828
Commit
d5742828
authored
7 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing installation of PETSC on Intel compiler
parent
f70fa7e8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
script/install_PETSC.sh
+5
-5
5 additions, 5 deletions
script/install_PETSC.sh
script/show_solutions
+3
-1
3 additions, 1 deletion
script/show_solutions
with
8 additions
and
6 deletions
script/install_PETSC.sh
+
5
−
5
View file @
d5742828
...
...
@@ -233,7 +233,7 @@ if [ x"$CXX" != x"icpc" ]; then
if
[
!
-d
"
$1
/MUMPS"
]
;
then
rm
MUMPS_5.0.1.tar.gz
rm
-rf
MUMPS_5.0.1
wget http://
ppmcore
.mpi-cbg.de/upload/MUMPS_5.0.1.tar.gz
wget http://
openfpm
.mpi-cbg.de/upload/MUMPS_5.0.1.tar.gz
if
[
$?
-ne
0
]
;
then
echo
-e
"
\0
33[91;5;1m FAILED! Installation requires an Internet connection
\0
33[0m"
exit
1
...
...
@@ -269,13 +269,13 @@ if [ x"$CXX" != x"icpc" ]; then
cp
-r
lib
$1
/MUMPS
MUMPS_extra_lib
=
"-L
$1
/MUMPS/lib -ldmumps -lmumps_common -lpord -pthread "
configure_options
=
"
$configure_options
--with-mumps=yes --with-mumps-include=
$1
/MUMPS/include"
configure_options
=
"
$configure_options
--with-mumps=yes --with-mumps-include=
$1
/MUMPS/include
/
"
fi
else
echo
"MUMPS is already installed"
MUMPS_extra_lib
=
"-L
$1
/MUMPS/lib -ldmumps -lmumps_common -lpord -pthread "
configure_options
=
"
$configure_options
--with-mumps=yes --with-mumps-include=
$1
/MUMPS/include"
configure_options
=
"
$configure_options
--with-mumps=yes --with-mumps-include=
$1
/MUMPS/include
/
"
fi
fi
...
...
@@ -362,7 +362,7 @@ 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"
echo
"./configure
CXX="
$CXX
" CC="
$CC
" FC="
$FC
" F77="
$F77
"
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
)
"
]
...
...
@@ -370,7 +370,7 @@ function haveProg() {
$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
$python_command
./configure
CXX
=
"
$CXX
"
CC
=
"
$CC
"
FC
=
"
$FC
"
F77
=
"
$F77
"
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
...
...
This diff is collapsed.
Click to expand it.
script/show_solutions
+
3
−
1
View file @
d5742828
...
...
@@ -30,7 +30,9 @@ function possible_solutions {
if
[
-a
input_install
]
;
then
eval
${
commands
[
$possible_solutions_ret
]
}
< input_install
else
eval
${
commands
[
$possible_solutions_ret
]
}
if
[
x
"
${
commands
[
$possible_solutions_ret
]
}
"
!=
"continue"
-o
x
"
${
commands
[
$possible_solutions_ret
]
}
"
!=
"Accept"
]
;
then
eval
${
commands
[
$possible_solutions_ret
]
}
if
fi
possible_solutions_command
=
${
commands
[
$possible_solutions_ret
]
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment