Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
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
eic_tools
Spack
Commits
3b72d71d
Commit
3b72d71d
authored
6 years ago
by
Tiziano Müller
Committed by
Peter Scheibel
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
packages/libvdwxc: initial commit, required for SIRIUS
parent
a5f88d6e
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
var/spack/repos/builtin/packages/libvdwxc/package.py
+53
-0
53 additions, 0 deletions
var/spack/repos/builtin/packages/libvdwxc/package.py
with
53 additions
and
0 deletions
var/spack/repos/builtin/packages/libvdwxc/package.py
0 → 100644
+
53
−
0
View file @
3b72d71d
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from
spack
import
*
class
Libvdwxc
(
AutotoolsPackage
):
"""
Portable C library of density functionals with van der Waals
interactions for density functional theory
"""
homepage
=
"
https://libvdwxc.gitlab.io/libvdwxc/
"
url
=
"
https://launchpad.net/libvdwxc/stable/0.4.0/+download/libvdwxc-0.4.0.tar.gz
"
version
(
"
0.4.0
"
,
"
68196798d69d593b62ea9f482468db66
"
)
variant
(
"
mpi
"
,
default
=
True
,
description
=
"
Enable MPI support
"
)
variant
(
"
pfft
"
,
default
=
False
,
description
=
"
Enable support for PFFT
"
)
depends_on
(
"
fftw@3:
"
,
when
=
"
~mpi
"
)
depends_on
(
"
mpi@2:
"
,
when
=
"
+mpi
"
)
depends_on
(
"
fftw@3:+mpi
"
,
when
=
"
+mpi
"
)
depends_on
(
"
pfft
"
,
when
=
"
+pfft
"
)
# pfft needs MPI
conflicts
(
"
~mpi
"
,
"
+pfft
"
)
def
configure_args
(
self
):
spec
=
self
.
spec
args
=
[
"
--{0}-pfft
"
.
format
(
"
with
"
if
self
.
spec
.
satisfies
(
"
+pfft
"
)
else
"
without
"
),
"
MPICC=
"
,
# make sure both variables are always unset
"
MPIFC=
"
,
# otherwise the configure scripts complains
]
if
spec
.
satisfies
(
"
+mpi
"
):
# work around b0rken MPI detection: the MPI detection tests are
# run with CC instead of MPICC, triggering an error. So, setting
# CC/FC to the MPI compiler wrappers.
args
+=
[
"
--with-mpi
"
,
"
CC={0}
"
.
format
(
spec
[
"
mpi
"
].
mpicc
),
"
FC={0}
"
.
format
(
spec
[
"
mpi
"
].
mpifc
),
]
else
:
args
+=
[
"
--without-mpi
"
]
return
args
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