Skip to content

Commit

Permalink
Reorganize Make.package in Src/Particle (AMReX-Codes#2703)
Browse files Browse the repository at this point in the history
* reorganize Make.package in Src/Particle

* now must turn on particles in HDF5 test
  • Loading branch information
atmyers authored Apr 9, 2022
1 parent e5dda40 commit 8c3c4c9
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 16 deletions.
69 changes: 53 additions & 16 deletions Src/Particle/Make.package
Original file line number Diff line number Diff line change
@@ -1,20 +1,57 @@

DEFINES += -DAMREX_PARTICLES

AMREX_PARTICLE=EXE

C$(AMREX_PARTICLE)_sources += AMReX_TracerParticles.cpp AMReX_ParticleMPIUtil.cpp AMReX_ParticleUtil.cpp AMReX_ParticleBufferMap.cpp AMReX_ParticleCommunication.cpp
C$(AMREX_PARTICLE)_headers += AMReX_Particles.H AMReX_ParGDB.H AMReX_TracerParticles.H AMReX_NeighborParticles.H AMReX_NeighborParticlesI.H
C$(AMREX_PARTICLE)_headers += AMReX_Particle.H AMReX_ParticleInit.H AMReX_ParticleContainerI.H
C$(AMREX_PARTICLE)_headers += AMReX_ParIter.H AMReX_ParticleMPIUtil.H AMReX_StructOfArrays.H AMReX_ArrayOfStructs.H AMReX_ParticleTile.H
C$(AMREX_PARTICLE)_headers += AMReX_ParticleUtil.H AMReX_NeighborList.H AMReX_ParticleBufferMap.H AMReX_ParticleCommunication.H AMReX_ParticleReduce.H AMReX_ParticleLocator.H
C$(AMREX_PARTICLE)_headers += AMReX_NeighborParticlesCPUImpl.H AMReX_NeighborParticlesGPUImpl.H
C$(AMREX_PARTICLE)_headers += AMReX_Particle_mod_K.H AMReX_TracerParticle_mod_K.H AMReX_ParticleMesh.H AMReX_ParticleIO.H AMReX_DenseBins.H AMReX_ParticleTransformation.H AMReX_SparseBins.H AMReX_BinIterator.H
C$(AMREX_PARTICLE)_headers += AMReX_WriteBinaryParticleData.H
C$(AMREX_PARTICLE)_headers += AMReX_ParticleContainerBase.H
C$(AMREX_PARTICLE)_sources += AMReX_ParticleContainerBase.cpp
C$(AMREX_PARTICLE)_headers += AMReX_ParticleArray.H
C$(AMREX_PARTICLE)_headers += AMReX_ParticleInterpolators.H
CEXE_headers += AMReX_Particle.H
CEXE_headers += AMReX_Particles.H
CEXE_headers += AMReX_ParGDB.H
CEXE_headers += AMReX_ParticleContainerI.H
CEXE_headers += AMReX_ParticleInit.H

CEXE_headers += AMReX_ParticleContainerBase.H
CEXE_sources += AMReX_ParticleContainerBase.cpp

CEXE_headers += AMReX_ParIter.H
CEXE_headers += AMReX_StructOfArrays.H
CEXE_headers += AMReX_ArrayOfStructs.H
CEXE_headers += AMReX_ParticleTile.H

CEXE_headers += AMReX_NeighborParticles.H
CEXE_headers += AMReX_NeighborParticlesI.H
CEXE_headers += AMReX_NeighborParticlesCPUImpl.H
CEXE_headers += AMReX_NeighborParticlesGPUImpl.H
CEXE_headers += AMReX_NeighborList.H

CEXE_headers += AMReX_TracerParticles.H
CEXE_sources += AMReX_TracerParticles.cpp
CEXE_headers += AMReX_TracerParticle_mod_K.H

CEXE_headers += AMReX_ParticleUtil.H
CEXE_sources += AMReX_ParticleUtil.cpp

CEXE_headers += AMReX_ParticleMPIUtil.H
CEXE_sources += AMReX_ParticleMPIUtil.cpp

CEXE_headers += AMReX_ParticleBufferMap.H
CEXE_sources += AMReX_ParticleBufferMap.cpp

CEXE_headers += AMReX_ParticleCommunication.H
CEXE_sources += AMReX_ParticleCommunication.cpp

CEXE_headers += AMReX_ParticleReduce.H

CEXE_headers += AMReX_ParticleLocator.H
CEXE_headers += AMReX_ParticleArray.H

CEXE_headers += AMReX_Particle_mod_K.H
CEXE_headers += AMReX_ParticleMesh.H
CEXE_headers += AMReX_ParticleInterpolators.H

CEXE_headers += AMReX_ParticleIO.H
CEXE_headers += AMReX_WriteBinaryParticleData.H

CEXE_headers += AMReX_ParticleTransformation.H

CEXE_headers += AMReX_DenseBins.H
CEXE_headers += AMReX_SparseBins.H
CEXE_headers += AMReX_BinIterator.H

VPATH_LOCATIONS += $(AMREX_HOME)/Src/Particle
INCLUDE_LOCATIONS += $(AMREX_HOME)/Src/Particle
2 changes: 2 additions & 0 deletions Tests/HDF5Benchmark/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ USE_OMP = FALSE

TINY_PROFILE = TRUE

USE_PARTICLES = TRUE

###################################################

EBASE = main
Expand Down

0 comments on commit 8c3c4c9

Please sign in to comment.