aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 982f3277f..c63b94a27 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -164,6 +164,20 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp
plot_flags[plot_flag_size-1] = 1;
}
#endif
+
+ // build filter functors
+ m_do_random_filter = pp.query("random_fraction", m_random_fraction);
+ m_do_uniform_filter = pp.query("uniform_stride", m_uniform_stride);
+ std::string buf;
+ m_do_parser_filter = pp.query("plot_filter_function(t,x,y,z,ux,uy,uz)", buf);
+ if (m_do_parser_filter) {
+ std::string function_string = "";
+ Store_parserString(pp,"plot_filter_function(t,x,y,z,ux,uy,uz)",
+ function_string);
+ m_particle_filter_parser.reset(new ParserWrapper<7>(
+ makeParser(function_string,{"t","x","y","z","ux","uy","uz"})));
+ }
+
}
PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core)