Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
ThirdParty-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Development
ThirdParty-common
Commits
c3aa2a4b
Commit
c3aa2a4b
authored
4 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
CONFIG: remove redundant petsc configure options, add '-debug' option
parent
9a393855
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
makePETSC
+14
-14
14 additions, 14 deletions
makePETSC
with
14 additions
and
14 deletions
makePETSC
+
14
−
14
View file @
c3aa2a4b
...
...
@@ -49,6 +49,7 @@ options:
-force Force compilation, even if include/library already exists
-gcc Force use of gcc/g++
-inplace Build/install inplace (expert option)
-debug Build with debugging enabled
-hypre=URL Specify hypre download location
-no-hypre Disable automatic hypre download/detection
-help
...
...
@@ -68,7 +69,7 @@ USAGE
#------------------------------------------------------------------------------
exportCompiler
# Compiler info for CMake/configure
unset
optForce optInplace optHypre
unset
optDebug
optForce optInplace optHypre
# Parse options
while
[
"$#"
-gt
0
]
...
...
@@ -80,13 +81,12 @@ do
-gcc
)
useGcc
;;
-force
)
optForce
=
true
;;
-inplace
)
optInplace
=
true
;;
-debug
)
optDebug
=
true
;;
lib|libso
)
targetType
=
"
$1
"
;;
lib|libso
)
targetType
=
"
$1
"
;;
-hypre
=
*
)
optHypre
=
"
${
1
#*=
}
"
# URL for download
d
optHypre
=
"
${
1
#*=
}
"
# URL for download
unset
hyprePACKAGE HYPRE_ARCH_PATH
;;
...
...
@@ -186,9 +186,15 @@ echo
(
# Configuration options
configOpt
=
"--with-cc=
$(
whichMpicc
)
--with-cxx=
$(
whichMpicxx
)
"
configOpt
=
"
$configOpt
--with-debugging=0"
# A reasonable assumption
configOpt
=
"
$configOpt
--COPTFLAGS=-O3 --CXXOPTFLAGS=-O3"
if
[
"
$optDebug
"
=
true
]
then
configOpt
=
"
$configOpt
--with-debugging=1"
else
# A reasonable assumption for optimization
configOpt
=
"
$configOpt
--with-debugging=0"
configOpt
=
"
$configOpt
--COPTFLAGS=-O3 --CXXOPTFLAGS=-O3"
fi
if
[
"
$targetType
"
=
libso
]
then
...
...
@@ -247,9 +253,6 @@ echo
rm
-rf
"
$PETSC_ARCH_PATH
"
# No clean here, if we have multiple arch in the same directory
## without tests? --testdir=..
## configOpt="$configOpt --download-f2cblaslapack=1"
echo
set
-x
./configure
\
...
...
@@ -258,9 +261,6 @@ echo
--with-petsc-arch
=
"
$archOpt
"
\
--with-clanguage
=
C
\
--with-fc
=
0
\
--with-scalapack
=
0
\
--with-superlu_dist
=
0
\
--with-suitesparse
=
0
\
--with-x
=
0
\
$configOpt
\
&&
set
+x
\
...
...
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