fix: bug fix for obs_sort_module.F90.#12
Conversation
…rmerly 3159) was causing obsgrid to segfault situationally. A conditional statement was added on line 3158 to check wether the pointer 'next' is associated or not before going into the following block of code. This seems to have remedied the problem for now. This bug fix was stated by the user "Alpha_su" in the obsgrid forum: https://forum.mmm.ucar.edu/threads/obsgrid-exe-fails-after-a-few-seconds.13474/
|
Thanks for submitting this code to address issue #11. The original code inadvertently relies on short-circuiting of Boolean expressions, but since the Fortran standard does not require this, the code only works with certain compilers. While the fix you submitted would avoid the issue, it seems to me that it would be more straightforward to not add the |
Changes made to obs_sort_module.F90 based on suggestion to restructure conditional statements.
|
Thanks for the suggestion @brianreen. I made that change and you'll see it as another commit for this pull request. |
This is a proposed fix for Issue #11
A conditional statement was added on line 3158 to check wether the pointer 'next' is associated or not before going into the following block of code. This bug fix was stated by the user "Alpha_su" in the obsgrid forum: https://forum.mmm.ucar.edu/threads/obsgrid-exe-fails-after-a-few-seconds.13474/