Skip to content

Commit

Permalink
Merge pull request #94 from nataraj2/HDF5_Lightcone
Browse files Browse the repository at this point in the history
Correcting compilation errors with HDF5
  • Loading branch information
jmsexton03 authored Aug 28, 2024
2 parents e4193fd + 68d1003 commit 5d4f38b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Exec/ParticleFilterTest/DarkMatterParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ DarkMatterParticleContainer::moveKickDrift (amrex::MultiFab& acceleration,
real_comp_names_shell.push_back("xposvalid");
real_comp_names_shell.push_back("yposvalid");
real_comp_names_shell.push_back("zposvalid");
std::string compression = "None@0";
if(radius_inner>0&&radius_outer>radius_inner) {
int write_hdf5=0;
#ifdef AMREX_USE_HDF5
Expand All @@ -456,7 +457,7 @@ DarkMatterParticleContainer::moveKickDrift (amrex::MultiFab& acceleration,
ShellPC->WritePlotFile(dir, name, real_comp_names_shell);
#ifdef AMREX_USE_HDF5
else
ShellPC->WritePlotFileHDF5(dir, name, real_comp_names_shell);
ShellPC->WritePlotFileHDF5(dir, name, real_comp_names_shell, compression);
#endif
}
Print()<<"After write\t"<<ShellPC->TotalNumberOfParticles()<<"\t"<<a_old<<"\t"<<do_move<<"\t"<<lev<<"\t"<<t<<"\t"<<dt<<"\t"<<a_half<<"\t"<<where_width<<"\t"<<radius_inner<<std::endl;
Expand Down

0 comments on commit 5d4f38b

Please sign in to comment.