Skip to content

Commit

Permalink
Fix insufficient allocate in SSIDS C interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jfowkes authored Jun 5, 2024
1 parent c266223 commit 249ef39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/C/ssids.f90
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ subroutine spral_ssids_factor(cposdef, cptr, crow, val, cscale, cakeep, cfkeep,&
end if
call C_F_POINTER(crow, frow, shape=(/ fptr(fakeep%n+1)-1 /))
if (cindexed) then
allocate(frow_alloc(fakeep%n+1))
allocate(frow_alloc(fptr(fakeep%n+1)-1))
frow_alloc(:) = frow(:) + 1
frow => frow_alloc
end if
Expand Down

0 comments on commit 249ef39

Please sign in to comment.