Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_numerics
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
yaskovet
openfpm_numerics
Commits
a48a9359
Commit
a48a9359
authored
7 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing PETSC installation
parent
4e569e3b
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
configure.ac
+4
-1
4 additions, 1 deletion
configure.ac
m4/ax_petsc_lib.m4
+3
-3
3 additions, 3 deletions
m4/ax_petsc_lib.m4
with
7 additions
and
4 deletions
configure.ac
+
4
−
1
View file @
a48a9359
...
...
@@ -127,7 +127,6 @@ fi
## Check for PETSC
AX_LIB_PETSC()
#########
...
...
@@ -320,6 +319,10 @@ AX_EIGEN([],[])
###### Checking for libquadmath and libifcore
AX_LIB_PETSC()
AC_CHECK_LIB(ifcore, for_cpystr, [ LIBIFCORE=-lifcore ], [ LIBIFCORE= ])
AC_CHECK_LIB(quadmath, sinq, [ LIBQUADMATH=-lquadmath ], [ LIBQUADMATH= ])
AC_SUBST(LIBQUADMATH)
...
...
This diff is collapsed.
Click to expand it.
m4/ax_petsc_lib.m4
+
3
−
3
View file @
a48a9359
...
...
@@ -101,11 +101,11 @@ AC_DEFUN([AX_LIB_PETSC], [
if test -n "$with_petsc" ; then
old_CC=$CC
old_CFLAGS=$CFLAGS
old_L
DFLAGS=$LDFLAG
S
old_L
IBS=$LIB
S
AX_OPENMP([CFLAGS="$OPENMP_CFLAGS"
LDFLAGS="$OPENMP_LDFLAGS"],[])
CFLAGS="$CFLAGS -I$with_petsc/include $HDF5_INCLUDE $METIS_INCLUDE "
L
DFLAG
S="$LDFLAGS -L$with_petsc/lib $HDF5_LDFLAGS $HDF5_LIBS $METIS_LIB -lmetis "
L
IB
S="$LDFLAGS -L$with_petsc/lib $HDF5_LDFLAGS
$SUITESPARSE_LIBS
$HDF5_LIBS $METIS_LIB -lmetis "
CC=$CXX
AC_LANG_SAVE
...
...
@@ -118,7 +118,7 @@ AC_MSG_WARN([could not find header file petsc.h]))
AC_LANG_RESTORE
CFLAGS=$old_CFLAGS
L
DFLAG
S=$old_L
DFLAG
S
L
IB
S=$old_L
IB
S
CC=$old_CC
AC_MSG_CHECKING(PETSC in $with_petsc)
...
...
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