Skip to content

Fix the uniq example

Sergey Kosukhin requested to merge fix-uniq-example into master

The uniq example fails with the Segmentation fault. It happens because the tmp is too small: its size equals to the size of mtime_date_container_a, which is guaranteed to be smaller than remaining_event_steps in this case, hence the assignment fails. It looks like the tmp should be allocated to the size of remaining_event_steps, which is implemented in this PR.

Another issue if DEALLOCATE (tmp_jd). The NAG compiler reports: Attempt to DEALLOCATE an object which was not ALLOCATEd. It looks like there should be a call to the deallocateJulianday subroutine instead.

Edited by Sergey Kosukhin

Merge request reports

Loading