Ticket #5638 (closed: fixed)
Segmentation fault in Integration
Reported by: | Andrei Savici | Owned by: | Andrei Savici |
---|---|---|---|
Priority: | blocker | Milestone: | Release 2.2 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #2483 | Tester: | Martyn Gigg |
Description
If one tries to do Integration when the upper limit and the lower limit are within the same bin, one gets a segmentation fault. I tried this on an event workspace (CNCS from autotest), with limits 45000 to 48000. The same result happens if you use a histogram workspace.
Suggested outcome of integration if within the same bin:
- For events use rebin
- For histograms either return 0, or intensity/fractional bin width
Change History
comment:1 Changed 8 years ago by Nick Draper
- Priority changed from critical to blocker
- Owner changed from Nick Draper to Andrei Savici
- Status changed from new to assigned
comment:3 Changed 8 years ago by Andrei Savici
Fix seg fault in integration. Refs #5638
Changeset: 2fe8708797d5024f5b491a3a6dc2349400e6442e
comment:4 Changed 8 years ago by Andrei Savici
- Status changed from accepted to verify
- Resolution set to fixed
comment:5 Changed 8 years ago by Andrei Savici
Segmentation fault problem is fixed. However, the error in partial bins is different from the rebin result.This will be solved in #5662
comment:6 Changed 8 years ago by Andrei Savici
Fix seg fault in integration. Refs #5638
Changeset: 2fe8708797d5024f5b491a3a6dc2349400e6442e
The answer for histograms is 2. Intensity / fraction bin width, this is what rebin would do.