amrex: add +pic variant (#21849)

This commit is contained in:
eugeneswalker 2021-02-22 10:54:00 -08:00 committed by GitHub
parent 671f0ff32b
commit 04a8e59872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,8 @@ class Amrex(CMakePackage, CudaPackage, ROCmPackage):
description='Enable Hypre interfaces') description='Enable Hypre interfaces')
variant('petsc', default=False, variant('petsc', default=False,
description='Enable PETSc interfaces') description='Enable PETSc interfaces')
variant('pic', default=False,
description='Enable PIC')
# Build dependencies # Build dependencies
depends_on('mpi', when='+mpi') depends_on('mpi', when='+mpi')
@ -190,6 +192,7 @@ def cmake_args(self):
self.define_from_variant('AMReX_HDF5', 'hdf5'), self.define_from_variant('AMReX_HDF5', 'hdf5'),
self.define_from_variant('AMReX_HYPRE', 'hypre'), self.define_from_variant('AMReX_HYPRE', 'hypre'),
self.define_from_variant('AMReX_PETSC', 'petsc'), self.define_from_variant('AMReX_PETSC', 'petsc'),
self.define_from_variant('AMReX_PIC', 'pic'),
] ]
if self.spec.satisfies('%fj'): if self.spec.satisfies('%fj'):