Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed May 31, 2019
2 parents b33a705 + 899631c commit ef3c8a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions Src/Particle/AMReX_ParticleContainerI.H
Expand Up @@ -50,12 +50,11 @@ ParticleContainer<NStructReal, NStructInt, NArrayReal, NArrayInt> :: Initialize
if (pp.queryarr("tile_size", tilesize, 0, AMREX_SPACEDIM)) {
for (int i=0; i<AMREX_SPACEDIM; ++i) tile_size[i] = tilesize[i];
}
if ( ( not std::is_standard_layout<ParticleType>::value ) or
( not std::is_trivial<ParticleType>::value ) )
{
amrex::Abort("Particle type must be standard layout and trivial.");
}

static_assert(std::is_standard_layout<ParticleType>::value
&& std::is_trivial<ParticleType>::value,
"Particle type must be standard layout and trivial.");

pp.query("use_prepost", usePrePost);
pp.query("do_unlink", doUnlink);

Expand Down Expand Up @@ -4045,7 +4044,6 @@ AssignCellDensitySingleLevel (int rho_index,
const auto pstruct = particles().data();
const long np = pti.numParticles();
FArrayBox& fab = (*mf_pointer)[pti];
const int *lo, *hi;
#ifdef _OPENMP
Box tile_box = pti.tilebox();
tile_box.grow(ng);
Expand All @@ -4057,7 +4055,7 @@ AssignCellDensitySingleLevel (int rho_index,
auto rhoarr = fab.array();
#endif

if (dxi == pdxi)
if (particle_lvl_offset == 0)
{
AMREX_FOR_1D( np, i,
{
Expand Down
2 changes: 1 addition & 1 deletion Tools/GNUMake/sites/Make.nersc
Expand Up @@ -23,7 +23,7 @@ ifeq ($(USE_CUDA),TRUE)
CXX = mpic++
FC = mpif90
F90 = mpif90
cori_mvapich_link_flags := $(shell mpic++ -link_info 2>&1)
cori_mvapich_link_flags := $(shell mpic++ -link_info)

# Using OPENMPI + UCX
ifeq ($(cori_mvapich_link_flags),)
Expand Down

0 comments on commit ef3c8a9

Please sign in to comment.