Skip to content

Commit 5c16ff8

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

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
@@ -161,7 +161,9 @@ submodule (stdlib_linalg) stdlib_linalg_determinant
161161
if (m/=n .or. .not.min(m,n)>=0) then
162162
err0 = linalg_state_type(this,LINALG_VALUE_ERROR,'invalid or non-square matrix: a=[',m,',',n,']')
163163
det = 0.0_${rk}$
164-
goto 1
164+
! Process output and return
165+
call linalg_error_handling(err0)
166+
return
165167
end if
166168

167169
! Can A be overwritten? By default, do not overwrite

0 commit comments

Comments
 (0)