group_particles
Loading...
Searching...
No Matches
include
group_particles.hpp
Go to the documentation of this file.
1
7
#ifndef HALO_PARTICLES_HPP
8
#define HALO_PARTICLES_HPP
9
10
#include "
fields.hpp
"
11
#include "
common_fields.hpp
"
12
#include "
callback.hpp
"
13
#include "
callback_utils.hpp
"
14
#include "
hdf5_utils.hpp
"
15
#include "workspace.hpp"
16
#include "workspace_memory.hpp"
17
#include "workspace_sorting.hpp"
18
#include "workspace_meta_init.hpp"
19
#include "grp_loop.hpp"
20
#include "prt_loop.hpp"
21
130
template
<
typename
AFields>
131
void
132
group_particles
(
Callback<AFields>
&callback)
133
{
134
#ifndef NDEBUG
135
AFields::print_field_info();
136
#endif
// NDEBUG
137
138
grp_prt_detail::Workspace<AFields> ws { callback };
139
140
ws.meta_init();
141
142
ws.grp_loop();
143
144
ws.prt_loop();
145
}
146
147
#endif
// HALO_PARTICLES_HPP
callback.hpp
Contains the abstract base class that the user should subclass from in order to define the desired fu...
callback_utils.hpp
Collects some pre-implemented functionality that makes it easier to construct a subclass of the Callb...
common_fields.hpp
Contains some common field types that can be used as template arguments for the GrpFields and PrtFiel...
fields.hpp
Templates to construct types that tell the code which data fields are to to be read from the group an...
group_particles
void group_particles(Callback< AFields > &callback)
Runs the code.
Definition
group_particles.hpp:132
hdf5_utils.hpp
some utility functions to read attributes from hdf5 files
Callback
The abstract base class the user should inherit from.
Definition
callback.hpp:32
Generated by
1.9.8