amrex: add +pic variant (#21849)
This commit is contained in:
parent
671f0ff32b
commit
04a8e59872
1 changed files with 3 additions and 0 deletions
|
@ -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'):
|
||||||
|
|
Loading…
Reference in a new issue