Skip to content

Commit cacb585

Browse files
perazzjvdp1
andauthored
Update src/stdlib_linalg_determinant.fypp
Co-authored-by: Jeremie Vandenplas <[email protected]>
1 parent 31cdc84 commit cacb585

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stdlib_linalg_determinant.fypp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ submodule (stdlib_linalg) stdlib_linalg_determinant
5454
if (m/=n .or. .not.min(m,n)>=0) then
5555
err0 = linalg_state_type(this,LINALG_VALUE_ERROR,'invalid or non-square matrix: a=[',m,',',n,']')
5656
det = 0.0_${rk}$
57-
goto 1
57+
! Process output and return
58+
call linalg_error_handling(err0)
59+
return
5860
end if
5961

6062
select case (m)

0 commit comments

Comments
 (0)