
* Bump the package API of the `builtin` repo to `v2.0` * Move `var/spack/repos/builtin` -> `var/spack/repos/spack_repo/builtin` * Move test repos `var/spack/repos/{builtin.mock,tutorial,...}` -> `var/spack/test_repos/` * Update package dir names to v2 format (`-` -> `_` etc) * Change absolute imports `from spack.pkg.builtin.my_pkg ...` to relative imports `from ..my_pkg.package ...` Users who have a repo on top of builtin should change imports from ```python from spack.pkg.builtin.my_pkg import MyPkg ``` to ```python from spack_repo.builtin.packages.my_pkg.package import MyPkg ``` and can configure their editors with ``` PYTHONPATH=$spack/lib/spack:$spack/var/spack/repos ``` [skip-verify-checksums]
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
|
from spack.package 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"
|
|
|
|
license("BSD-3-Clause")
|
|
|
|
version("develop", branch="master", submodules=True)
|
|
|
|
depends_on("c", type="build") # generated
|
|
depends_on("cxx", type="build") # generated
|
|
|
|
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
|