Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation without openpmd #1132

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/laser/MultiLaser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@ MultiLaser::GetEnvelopeFromFile () {
} // End of 3 loops (1 per dimension) over laser array from simulation
} // End if statement over file laser geometry (rt or xyt)
#else
amrex::ignore_unused(gm);
amrex::Abort("loading a laser envelope from an external file requires openPMD support: "
"Add HiPACE_OPENPMD=ON when compiling HiPACE++.\n");
#endif // HIPACE_USE_OPENPMD
Expand Down
2 changes: 2 additions & 0 deletions src/particles/beam/BeamParticleContainerInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

namespace
{
#ifdef HIPACE_USE_OPENPMD
/** \brief Adds a single beam particle
*
* \param[in,out] ptd real and int beam data
Expand Down Expand Up @@ -55,6 +56,7 @@ namespace
ptd.idcpu(ip) = pid + ip;
ptd.id(ip).make_valid();
}
#endif // HIPACE_USE_OPENPMD

/** \brief Adds a single beam particle into the per-slice BeamTile
*
Expand Down
2 changes: 1 addition & 1 deletion src/utils/IOUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ utils::getUnitDimension ( std::string const & record_name )
};
else return {};
}
#endif

std::ostream& operator<<(std::ostream& os, utils::format_time ft) {
long long seconds = static_cast<long long>(std::floor(ft.seconds));
Expand All @@ -162,4 +163,3 @@ std::ostream& operator<<(std::ostream& os, utils::format_time ft) {

return os;
}
#endif
Loading