gnu: trilinos-for-dealii-openmpi: Use G-expressions.
* gnu/packages/maths.scm (trilinos-for-dealii-openmpi)[arguments]: Use G-expressions. <#:phases>: Remove trailing boolean. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
32bcadc98c
commit
18d998ffdb
@ -5182,12 +5182,13 @@ revised simplex and the branch-and-bound methods.")
|
|||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list openmpi))
|
(list openmpi))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:build-type "Release"
|
(list #:build-type "Release"
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
`("-DBUILD_SHARED_LIBS=ON"
|
#~(list "-DBUILD_SHARED_LIBS=ON"
|
||||||
;; Obtain the equivalent of RelWithDebInfo but with -O3 (the Release
|
;; Obtain the equivalent of RelWithDebInfo but with -O3
|
||||||
;; default) rather than -O2 (the RelWithDebInfo default), to conform
|
;; (the Release default) rather than -O2 (the
|
||||||
;; to candi's trilinos.package's compilation flags, which are -g -O3.
|
;; RelWithDebInfo default), to conform to candi's
|
||||||
|
;; trilinos.package's compilation flags, which are -g -O3.
|
||||||
"-DCMAKE_C_FLAGS=-g"
|
"-DCMAKE_C_FLAGS=-g"
|
||||||
"-DCMAKE_CXX_FLAGS=-g"
|
"-DCMAKE_CXX_FLAGS=-g"
|
||||||
"-DCMAKE_Fortran_FLAGS=-g"
|
"-DCMAKE_Fortran_FLAGS=-g"
|
||||||
@ -5201,8 +5202,8 @@ revised simplex and the branch-and-bound methods.")
|
|||||||
"-DTrilinos_ENABLE_ML=ON"
|
"-DTrilinos_ENABLE_ML=ON"
|
||||||
"-DTrilinos_ENABLE_MueLu=ON"
|
"-DTrilinos_ENABLE_MueLu=ON"
|
||||||
"-DTrilinos_ENABLE_ROL=ON"
|
"-DTrilinos_ENABLE_ROL=ON"
|
||||||
;; Optional; required for deal.II's GridIn::read_exodusii, but
|
;; Optional; required for deal.II's GridIn::read_exodusii,
|
||||||
;; depends on netcdf.
|
;; but depends on netcdf.
|
||||||
;; Enable if and when someone needs it.
|
;; Enable if and when someone needs it.
|
||||||
;;"-DTrilinos_ENABLE_SEACAS=ON"
|
;;"-DTrilinos_ENABLE_SEACAS=ON"
|
||||||
"-DTrilinos_ENABLE_Sacado=ON"
|
"-DTrilinos_ENABLE_Sacado=ON"
|
||||||
@ -5210,33 +5211,37 @@ revised simplex and the branch-and-bound methods.")
|
|||||||
"-DTrilinos_ENABLE_Tpetra=ON"
|
"-DTrilinos_ENABLE_Tpetra=ON"
|
||||||
"-DTrilinos_ENABLE_Zoltan=ON"
|
"-DTrilinos_ENABLE_Zoltan=ON"
|
||||||
|
|
||||||
;; Third-party libraries (TPLs) that Trilinos can interface with.
|
;; Third-party libraries (TPLs) that Trilinos can interface
|
||||||
|
;; with.
|
||||||
"-DBLAS_LIBRARY_NAMES=openblas"
|
"-DBLAS_LIBRARY_NAMES=openblas"
|
||||||
"-DTPL_ENABLE_MPI=ON"
|
"-DTPL_ENABLE_MPI=ON"
|
||||||
"-DTPL_ENABLE_MUMPS=ON"
|
"-DTPL_ENABLE_MUMPS=ON"
|
||||||
"-DTPL_ENABLE_SCALAPACK=ON"
|
"-DTPL_ENABLE_SCALAPACK=ON"
|
||||||
|
|
||||||
;; Enable the tests but not the examples (which are enabled by
|
;; Enable the tests but not the examples (which are enabled
|
||||||
;; default when enabling tests).
|
;; by default when enabling tests).
|
||||||
;; Although some examples are run as tests, they are otherwise
|
;; Although some examples are run as tests, they are
|
||||||
;; unnecessary since this is a private package meant for
|
;; otherwise unnecessary since this is a private package
|
||||||
;; dealii-openmpi.
|
;; meant for dealii-openmpi.
|
||||||
;; Besides, some MueLu and ROL examples require a lot of memory to
|
;; Besides, some MueLu and ROL examples require a lot of
|
||||||
;; compile.
|
;; memory to compile.
|
||||||
;;
|
;;
|
||||||
;; (For future reference, note that some ROL and SEACAS examples
|
;; (For future reference, note that some ROL and SEACAS
|
||||||
;; require removing gfortran from CPLUS_INCLUDE_PATH as in the
|
;; examples require removing gfortran from
|
||||||
;; dune-istl, dune-localfunctions and dune-alugrid packages.)
|
;; CPLUS_INCLUDE_PATH as in the dune-istl,
|
||||||
|
;; dune-localfunctions and dune-alugrid packages.)
|
||||||
"-DTrilinos_ENABLE_TESTS=ON"
|
"-DTrilinos_ENABLE_TESTS=ON"
|
||||||
"-DTrilinos_ENABLE_EXAMPLES=OFF"
|
"-DTrilinos_ENABLE_EXAMPLES=OFF"
|
||||||
;; MueLu tests require considerably more time and memory to compile
|
;; MueLu tests require considerably more time and memory to
|
||||||
;; than the rest of the tests.
|
;; compile than the rest of the tests.
|
||||||
"-DMueLu_ENABLE_TESTS=OFF"
|
"-DMueLu_ENABLE_TESTS=OFF"
|
||||||
|
|
||||||
;; The following options were gleaned from candi's trilinos.package.
|
;; The following options were gleaned from candi's
|
||||||
;; (We do not enable the complex instantiations, which are anyway
|
;; trilinos.package.
|
||||||
;; provided only as an option in trilinos.package, because they are
|
;; (We do not enable the complex instantiations, which are
|
||||||
;; costly in compilation time and memory usage, and disk space [1].)
|
;; anyway provided only as an option in trilinos.package,
|
||||||
|
;; because they are costly in compilation time and memory
|
||||||
|
;; usage, and disk space [1].)
|
||||||
;;
|
;;
|
||||||
;; [1]: https://www.docs.trilinos.org/files/TrilinosBuildReference.html#enabling-float-and-complex-scalar-types
|
;; [1]: https://www.docs.trilinos.org/files/TrilinosBuildReference.html#enabling-float-and-complex-scalar-types
|
||||||
"-DTrilinos_ENABLE_Ifpack2=OFF"
|
"-DTrilinos_ENABLE_Ifpack2=OFF"
|
||||||
@ -5244,23 +5249,22 @@ revised simplex and the branch-and-bound methods.")
|
|||||||
"-DTpetra_INST_INT_LONG=ON"
|
"-DTpetra_INST_INT_LONG=ON"
|
||||||
"-DTPL_ENABLE_Boost=OFF")
|
"-DTPL_ENABLE_Boost=OFF")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'configure 'fix-kokkos-config
|
(add-after 'configure 'fix-kokkos-config
|
||||||
(lambda _
|
(lambda _
|
||||||
;; GNU Make 4.3 accidentally leaves the backslash preceding the
|
;; GNU Make 4.3 accidentally leaves the backslash preceding
|
||||||
;; number sign in strings containing a literal backslash–number
|
;; the number sign in strings containing a literal
|
||||||
;; sign (\#) [1, 2].
|
;; backslash–number sign (\#) [1, 2].
|
||||||
;; This is still an issue in Trilinos 13.0.1, but should be fixed
|
;; This is still an issue in Trilinos 13.0.1, but should be
|
||||||
;; in the following version.
|
;; fixed in the following version.
|
||||||
;; (The latest versions of Kokkos incorporate the fix [2].)
|
;; (The latest versions of Kokkos incorporate the fix [2].)
|
||||||
;;
|
;;
|
||||||
;; [1]: https://github.com/GEOSX/thirdPartyLibs/issues/136
|
;; [1]: https://github.com/GEOSX/thirdPartyLibs/issues/136
|
||||||
;; [2]: https://github.com/kokkos/kokkos/blob/3.4.00/Makefile.kokkos#L441
|
;; [2]: https://github.com/kokkos/kokkos/blob/3.4.00/Makefile.kokkos#L441
|
||||||
(substitute* "KokkosCore_config.h"
|
(substitute* "KokkosCore_config.h"
|
||||||
(("\\\\#") "#"))
|
(("\\\\#") "#"))))
|
||||||
#t))
|
|
||||||
(add-before 'check 'mpi-setup
|
(add-before 'check 'mpi-setup
|
||||||
,%openmpi-setup))))
|
#$%openmpi-setup))))
|
||||||
(home-page "https://trilinos.github.io/")
|
(home-page "https://trilinos.github.io/")
|
||||||
(synopsis "Algorithms for engineering and scientific problems")
|
(synopsis "Algorithms for engineering and scientific problems")
|
||||||
(description
|
(description
|
||||||
|
Loading…
Reference in New Issue
Block a user