forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multilevel version of ParticleToMesh (AMReX-Codes#1945)
This uses the same algorithm as the AssignDensity method in `AmrCore/AMReX_AmrParticles.H` to handle the coarse / fine boundaries. However, it allows a user-specified lambda function to define the interpolation operation, as in the single-level `ParticleToMesh` routine.
- Loading branch information
Showing
9 changed files
with
384 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set(_sources main.cpp) | ||
set(_input_files inputs ) | ||
|
||
setup_test(_sources _input_files) | ||
|
||
unset(_sources) | ||
unset(_input_files) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
AMREX_HOME = ../../../ | ||
|
||
DEBUG = TRUE | ||
DEBUG = FALSE | ||
|
||
DIM = 3 | ||
|
||
COMP = gcc | ||
|
||
TINY_PROFILE = TRUE | ||
USE_PARTICLES = TRUE | ||
|
||
PRECISION = DOUBLE | ||
|
||
USE_MPI = TRUE | ||
USE_OMP = FALSE | ||
|
||
################################################### | ||
|
||
EBASE = main | ||
|
||
include $(AMREX_HOME)/Tools/GNUMake/Make.defs | ||
|
||
include ./Make.package | ||
include $(AMREX_HOME)/Src/Base/Make.package | ||
include $(AMREX_HOME)/Src/Boundary/Make.package | ||
include $(AMREX_HOME)/Src/Particle/Make.package | ||
include $(AMREX_HOME)/Src/AmrCore/Make.package | ||
|
||
include $(AMREX_HOME)/Tools/GNUMake/Make.rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CEXE_sources += main.cpp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
# Domain size | ||
|
||
#nx = 32 # number of grid points along the x axis | ||
#ny = 32 # number of grid points along the y axis | ||
#nz = 32 # number of grid points along the z axis | ||
|
||
#nx = 64 # number of grid points along the x axis | ||
#ny = 64 # number of grid points along the y axis | ||
#nz = 64 # number of grid points along the z axis | ||
|
||
nx = 128 # number of grid points along the x axis | ||
ny = 128 # number of grid points along the y axis | ||
nz = 128 # number of grid points along the z axis | ||
|
||
# Maximum allowable size of each subdomain in the problem domain; | ||
# this is used to decompose the domain for parallel calculations. | ||
max_grid_size = 32 | ||
|
||
# Number of particles per cell | ||
nppc = 10 | ||
|
||
# Verbosity | ||
verbose = true # set to true to get more verbosity | ||
|
||
nlevs=2 |
Oops, something went wrong.