Skip to content
Merged
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
22 changes: 22 additions & 0 deletions Src/Particle/AMReX_StructOfArrays.H
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,28 @@ struct StructOfArrays {
/** Get access to the particle Int Arrays (only compile-time components) */
[[nodiscard]] const std::array< IntVector, NInt>& GetIntData () const { return m_idata; }

/** Get the names for the real SoA components **/
[[nodiscard]] std::vector<std::string> GetRealNames () const
{
if (m_rdata_names) {
return *m_rdata_names;
}
else {
return std::vector<std::string>();
}
}

/** Get the names for the int SoA components **/
[[nodiscard]] std::vector<std::string> GetIntNames () const
{
if (m_idata_names) {
return *m_idata_names;
}
else {
return std::vector<std::string>();
}
}

/** Get access to a particle Real component Array (compile-time and runtime component)
*
* @param index component with 0...NReal-1 compile-time and NReal... runtime arguments
Expand Down