Skip to content

Commit

Permalink
signature changes
Browse files Browse the repository at this point in the history
  • Loading branch information
guj committed Jul 13, 2023
1 parent 26fe364 commit e350f9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Tests/openPMDTests/ptls/warpxBTD.H
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AMReX_warpxBTDWriter final : public AMReX_warpxWriter

/*
*/
void AllocatePtlProperties(openPMD::ParticleSpecies& currSpecies,
bool AllocatePtlProperties(openPMD::ParticleSpecies& currSpecies,
const amrex::Vector<int>& write_real_comp,
const amrex::Vector<std::string>& real_comp_names,
const amrex::Vector<int>& write_int_comp,
Expand Down Expand Up @@ -130,7 +130,7 @@ void AMReX_warpxBTDWriter::Init(openPMD::Access access)
AMReX_openPMDWriter::Init(access);
}

void AMReX_warpxBTDWriter::AllocatePtlProperties(openPMD::ParticleSpecies& currSpecies,
bool AMReX_warpxBTDWriter::AllocatePtlProperties(openPMD::ParticleSpecies& currSpecies,
const amrex::Vector<int>& write_real_comp,
const amrex::Vector<std::string>& real_comp_names,
const amrex::Vector<int>& write_int_comp,
Expand All @@ -141,17 +141,17 @@ void AMReX_warpxBTDWriter::AllocatePtlProperties(openPMD::ParticleSpecies& currS
if (np > 0)
{
//AMReX_openPMDWriter::SetupPos(currSpecies, np + m_AssignedPtlOffset);
AMReX_openPMDWriter::AllocatePtlProperties(currSpecies, write_real_comp, real_comp_names,
return AMReX_openPMDWriter::AllocatePtlProperties(currSpecies, write_real_comp, real_comp_names,
write_int_comp, int_comp_names, np + GetGrandOffset());
return;
}
// np == 0
if ( m_LastFlush && ( m_AssignedPtlOffset == 0 ) )
{
// properties were never allocated
//AMReX_openPMDWriter::SetupPos(currSpecies, np);
AMReX_openPMDWriter::AllocatePtlProperties(currSpecies, write_real_comp, real_comp_names, write_int_comp, int_comp_names, np);
}
}
return false;
}

/*
Expand Down
4 changes: 2 additions & 2 deletions Tests/openPMDTests/ptls/warpxWriter.H
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public:
// fields related funcitons
//
void SetupMeshComp (openPMD::Mesh& mesh,
amrex::Geometry& full_geom,
const amrex::Geometry& full_geom,
amrex::MultiFab const& mf,
const amrex::openpmd_api::AMReX_VarNameParser& varName) const override;

Expand All @@ -54,7 +54,7 @@ private:


void AMReX_warpxWriter::SetupMeshComp (openPMD::Mesh& mesh,
amrex::Geometry& full_geom,
const amrex::Geometry& full_geom,
amrex::MultiFab const& mf,
const amrex::openpmd_api::AMReX_VarNameParser& varName) const
{
Expand Down

0 comments on commit e350f9a

Please sign in to comment.