summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorfcannini <fcannini@gmail.com>2020-11-30 04:57:26 -0300
committerGitHub <noreply@github.com>2020-11-30 08:57:26 +0100
commit447ba23fac326702ce441ea0e762f43253399043 (patch)
treeb4dcc9b3dbb21f63c67f8f35edbeb7e0f61df6e8 /var
parent8130ac3acb2270c6d83f8cc495b99c5738a692bb (diff)
downloadspack-447ba23fac326702ce441ea0e762f43253399043.tar.gz
spack-447ba23fac326702ce441ea0e762f43253399043.tar.bz2
spack-447ba23fac326702ce441ea0e762f43253399043.tar.xz
spack-447ba23fac326702ce441ea0e762f43253399043.zip
dalton: New package. (#20130)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/dalton/package.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dalton/package.py b/var/spack/repos/builtin/packages/dalton/package.py
new file mode 100644
index 0000000000..7b508f9364
--- /dev/null
+++ b/var/spack/repos/builtin/packages/dalton/package.py
@@ -0,0 +1,46 @@
+# Copyright 2013-2020 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 Dalton(CMakePackage):
+ """
+ The Dalto nprogram is designed to allow convenient,
+ automated determination of a largenumber of molecular properties
+ based on an HF, HF-srDFT, DFT, MP2, CC, CI, MCSCF or MC-srDFT
+ reference wave function.
+ """
+
+ homepage = "https://daltonprogram.org"
+ git = 'https://gitlab.com/dalton/dalton.git'
+
+ version('2020.0', branch='Dalton2020.0', submodules=True)
+
+ depends_on('blas')
+ depends_on('lapack')
+ depends_on('mpi')
+
+ def setup_run_environment(self, env):
+ env.prepend_path('PATH', self.spec.prefix.join('dalton'))
+
+ def cmake_args(self):
+ spec = self.spec
+
+ args = ['-DENABLE_BUILTIN_BLAS=OFF',
+ '-DENABLE_BUILTIN_LAPACK=OFF',
+ '-DUSE_BUILTIN_LAPACK=OFF',
+ '-DENABLE_STATIC_LINKING=OFF',
+ '-DENABLE_MPI=ON',
+ '-DCMAKE_C_COMPILER={0}'.format(
+ spec['mpi'].prefix.bin.mpicc),
+ '-DCMAKE_CXX_COMPILER={0}'.format(
+ spec['mpi'].prefix.bin.mpicxx),
+ '-DCMAKE_Fortran_COMPILER={0}'.format(
+ spec['mpi'].prefix.bin.mpif90),
+ '-DMPIEXEC_MAX_NUMPROCS=128'
+ ]
+
+ return args