gci fine zero division.

Got a zero devision error in gci fine for the 4m simulation data for the x refinement study in the wave zone. Trace is Traceback (most recent call last): File "/home/s0575124/programming/python/fifthwave/trunk/example.py", line 66, in ? test.report_convergence() File "/home/s0575124/programming/python/fifthwave/trunk/src/flightdeck.py", line 490, in report_convergence verify.report(grid_list, report_file, met_name=name) File "/home/s0575124/programming/python/fifthwave/trunk/src/verify.py", line 254, in report gci_list.append([gci_fine(pair[0], pair[1], p, fsafe), File "/home/s0575124/programming/python/fifthwave/trunk/src/verify.py", line 143, in gci_fine absepsilon = abs( (grid_2[1] - grid_1[1]) / grid_1[1] ) ZeroDivisionError: float division

Details

Id: 44a8357de2f3f5b670fa17819e6676b32ad7897a
Type: bugfix
Creation time: 2011-02-27 16:29
Creator: Mathew Topper <mathew.topper@...>
Release: 0.3 (unreleased)
Component: verify.py
Status: closed : fixed fixed
In progress: 4 months

Issue log

2011-09-15 15:18 Mathew Topper <mathew.topper@...> closed with disposition fixed
Basically this doesn't work if the metrics have no difference between them (like 0.,0. for instance), so I just wrapped a try around this and a lame cop out if it doesn't work. This could probably be done better but not at this moment in time.
2011-06-29 16:07 Mathew Topper <mathew.topper@...> changed status from in_progress to paused
I'm uncertain whether this will still be an issue with the group analysis version of the code.
2011-02-27 18:07 Mathew Topper <mathew.topper@...> changed status from unstarted to in_progress
Going to fix this now as it's a bit of a ball breaker.
2011-02-27 16:40 Mathew Topper <mathew.topper@...> commented
Undoubtably it's because of the two zeros that were recorded for the low res information. Probably have to trim any zero value results from the study.
2011-02-27 16:34 Mathew Topper <mathew.topper@...> commented
This appears to have occured doing the convergence report for the celerity part of the 1s report for x_wave_refinement test.
2011-02-27 16:29 Mathew Topper <mathew.topper@...> created