summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/vpic/package.py
blob: d81474cc5c6196e5d084e0cdf0e8051cf2eb0cf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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 Vpic(CMakePackage):
    """VPIC is a general purpose particle-in-cell simulation code for modeling
       kinetic plasmas in one, two, or three spatial dimensions. It employs a
       second-order, explicit, leapfrog algorithm to update charged particle
       positions and velocities in order to solve the relativistic kinetic
       equation for each species in the plasma, along with a full Maxwell
       description for the electric and magnetic fields evolved via a second-
       order finite-difference-time-domain (FDTD) solve.
    """
    homepage = "https://github.com/lanl/vpic"
    git      = "https://github.com/lanl/vpic.git"

    version('develop', branch='master', submodules=True)

    depends_on("cmake@3.1:", type='build')
    depends_on('mpi')

    def cmake_args(self):
        options = ['-DENABLE_INTEGRATED_TESTS=ON', '-DENABLE_UNIT_TESTS=ON']

        return options