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 ADIOS Trait for bool #1756

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Bunch Example: Radiation Gamma Filter
Test the gamma filter (and `radiationFlag` usage) in the Bunch
example since it was not yet covered by the compile suite (and
broken).
  • Loading branch information
ax3l committed Jan 25, 2017
commit aab2ad49c4450e7e634096c293d356d7f25528f9
1 change: 1 addition & 0 deletions examples/Bunch/cmakeFlags
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ flags[1]="-DCUDA_ARCH=35 -DPARAM_OVERWRITES:LIST=-DPARAM_INCLUDE_FIELDBACKGROUND
flags[2]="-DCUDA_ARCH=35 -DPARAM_OVERWRITES:LIST=-DPARAM_INCLUDE_FIELDBACKGROUND=true;-DPARAM_DIMENSION=DIM2"
flags[3]="-DCUDA_ARCH=35 -DPARAM_OVERWRITES:LIST=-DPARAM_SINGLE_PARTICLE=true"
flags[4]="-DCUDA_ARCH=35 -DPARAM_OVERWRITES:LIST=-DENABLE_SYNCHROTRON_PHOTONS=1"
flags[5]="-DCUDA_ARCH=35 -DPARAM_OVERWRITES:LIST=-DPARAM_FILTER_GAMMA=1"

################################################################################
# execution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,13 @@ namespace parameters

//disable or enable gamme filter
//diable (0) / enable (1)
#define RAD_ACTIVATE_GAMMA_FILTER 0
#ifndef PARAM_FILTER_GAMMA
# define PARAM_FILTER_GAMMA 0
#endif

constexpr float_32 RadiationGamma = 5.;
#define RAD_ACTIVATE_GAMMA_FILTER PARAM_FILTER_GAMMA

constexpr float_32 RadiationGamma = 3.0;

constexpr unsigned int N_observer = 128; // number of looking directions

Expand Down