Skip to content

Commit

Permalink
Fix crash that happened after paths were integrated. Ensure that new …
Browse files Browse the repository at this point in the history
…paths are appended.
  • Loading branch information
cianciosa committed Sep 9, 2024
1 parent c733acc commit 51680e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Modules/integration_path.f
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ RECURSIVE FUNCTION integration_path_integrate_paths(this, path, &

IF (ASSOCIATED(path%next)) THEN
total = this%integrate(path%next, context)
total = this%integrate(context, path, path%next)
total = total + this%integrate(context, path, path%next)
ELSE
total = 0.0
END IF
Expand Down Expand Up @@ -997,7 +997,8 @@ FUNCTION path_test()
& (/ 2.0_rprec, 0.0_rprec, 0.0_rprec /))
CALL path_append_vertex(test_path, &
& (/ 0.0_rprec, 0.0_rprec, 0.0_rprec /))
result = int_params%integrate(test_path, context)
result = integration_path_integrate_paths(int_params, test_path, &
& context)
path_test = check(2.0_rprec, result, 1, 'path_integrate')
IF (.not.path_test) THEN
RETURN
Expand Down

0 comments on commit 51680e1

Please sign in to comment.