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
949cfae4
Commit
949cfae4
authored
7 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing installation of python for PETSC installation
parent
59b93e44
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
script/install_PETSC.sh
+23
-21
23 additions, 21 deletions
script/install_PETSC.sh
with
23 additions
and
21 deletions
script/install_PETSC.sh
+
23
−
21
View file @
949cfae4
...
...
@@ -12,6 +12,29 @@ if [ -d "$1/PETSC" ]; then
exit
0
fi
if
haveProg python2
;
then
python_command
=
python2
else
python_command
=
python
fi
function
haveProg
()
{
[
-x
"
$(
command
-v
$1
)
"
]
}
if
haveProg python2
;
then
python_command
=
python2
else
# we check that python is python2
dgc_major
=
$(
python
--version
2>&1 |
grep
Python |
sed
's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1/g'
)
if
[
$dgc_major
-eq
3
]
;
then
# we have to install python2
solve_python
fi
python_command
=
python
fi
# Detect gcc pr clang
source
script/discover_os
...
...
@@ -357,28 +380,7 @@ function haveProg() {
[
-x
"
$(
command
-v
$1
)
"
]
}
if
haveProg python2
;
then
python_command
=
python2
else
python_command
=
python
fi
function
haveProg
()
{
[
-x
"
$(
command
-v
$1
)
"
]
}
if
haveProg python2
;
then
python_command
=
python2
else
# we check that python is python2
dgc_major
=
$(
python
--version
2>&1 |
grep
Python |
sed
's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1/g'
)
if
[
$dgc_major
-eq
3
]
;
then
# we have to install python2
solve_pyhton
fi
python_command
=
python
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
...
...
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