Skip to content

Commit

Permalink
Fix another insufficent allocate in SSIDS C interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jfowkes committed Jun 5, 2024
1 parent 072857e commit c558d18
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 @@ -545,7 +545,7 @@ subroutine spral_ssids_factor_ptr32(cposdef, cptr, crow, val, cscale, cakeep, &
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 c558d18

Please sign in to comment.