Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Simple test instrument for the Phonon_simple component.
* Refer to the component documentation for further instructions.
*
* %Example: E=10 -n 1e5 Detector: mon1_I=4.9e-25
* %Example: E=10 -n 1e5 Detector: mon1_I=2.86265e-25
*
* %Parameters
* E: [meV] Mean energy at source
Expand Down
12 changes: 6 additions & 6 deletions mcstas-comps/samples/Phonon_simple.comp
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ double zridd_gpu(double x1, double x2, struct neutron_params *neutron, struct ph

// Then in energy gain for the neutron
for (int i=0; i<phonon->e_steps_high_; i++){
root = zridd(f, brack_low+range_high*i/ phonon->e_steps_high_,
brack_low+range_high*(i+1)/ phonon->e_steps_high_,
neutron, phonon, ROOTACC);
root = zridd(f, brack_mid+range_high*i/ phonon->e_steps_high_,
brack_mid+range_high*(i+1)/ phonon->e_steps_high_,
neutron, phonon, ROOTACC);
if (root != UNUSED){
list[(*index)++]=root;
}
Expand All @@ -348,9 +348,9 @@ double zridd_gpu(double x1, double x2, struct neutron_params *neutron, struct ph

// Then in energy gain for the neutron
for (int i=0; i<phonon->e_steps_high_; i++){
root = zridd_gpu(brack_low+range_high*i/ phonon->e_steps_high_,
brack_low+range_high*(i+1)/ phonon->e_steps_high_,
neutron, phonon, ROOTACC);
root = zridd_gpu(brack_mid+range_high*i/ phonon->e_steps_high_,
brack_mid+range_high*(i+1)/ phonon->e_steps_high_,
neutron, phonon, ROOTACC);
if (root != UNUSED){
list[(*index)++]=root;
}
Expand Down
Loading