nekStab / LightKrylov

Lightweight implementation of Krylov subspace techniques in Fortran.
BSD 3-Clause "New" or "Revised" License
18 stars 0 forks source link

Gracefully handle errors and aborted computation for the different Krylov decompositions / linear solvers. #20

Closed loiseaujc closed 4 months ago

loiseaujc commented 1 year ago

The way we currently handle input args errors or aborted computation is very crude and simplistic. We should probably make use of the utilities available in the stdlib_error module. We also need to make the info code somewhat consistent across the different subroutines.

loiseaujc commented 1 year ago

Maybe we could also change info to ierr and dedicate the name info for a new type where we could store information about the computation (e.g. number of matrix-vector products, elapsed time, etc) which might be useful for users who want to benchmark their implementations/calculations. This should probably be addressed in a separate issue and branch.