Skip to content

Commit

Permalink
Fix 1d HDF5 compilation (#3939)
Browse files Browse the repository at this point in the history
Close #3937
  • Loading branch information
WeiqunZhang committed May 12, 2024
1 parent 6af30a6 commit ac2f116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/Extern/HDF5/AMReX_ParticleHDF5.H
Expand Up @@ -1200,7 +1200,8 @@ ParticleContainer_impl<ParticleType, NArrayReal, NArrayInt, Allocator, CellAssig
/* particle_box_arrays[lev].readFrom(phdr_file); */
particle_box_arrays[lev] = ParticleBoxArray(lev);
for (int i = 0; i < (int)ngrid; i++) {
Box tmp ({AMREX_D_DECL(boxes[i*AMREX_SPACEDIM], boxes[i*AMREX_SPACEDIM+1], boxes[i*AMREX_SPACEDIM+2])}, {AMREX_D_DECL(boxes[i*AMREX_SPACEDIM*2], boxes[i*AMREX_SPACEDIM*2+1], boxes[i*AMREX_SPACEDIM*2+2])});
Box tmp (IntVect{AMREX_D_DECL(boxes[i*AMREX_SPACEDIM], boxes[i*AMREX_SPACEDIM+1], boxes[i*AMREX_SPACEDIM+2])},
IntVect{AMREX_D_DECL(boxes[i*AMREX_SPACEDIM*2], boxes[i*AMREX_SPACEDIM*2+1], boxes[i*AMREX_SPACEDIM*2+2])});
particle_box_arrays[lev][i] = tmp;
}

Expand Down

0 comments on commit ac2f116

Please sign in to comment.