Skip to content
Snippets Groups Projects

Fix the uniq example

Merged 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
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading