Skip to content

Commit

Permalink
Return error if we reach max_steps
Browse files Browse the repository at this point in the history
  • Loading branch information
rjfarmer committed Feb 10, 2023
1 parent 4bbe0c6 commit cc13fb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib_bbq.f90
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ subroutine do_burn(in, out, bbq_in, ierr)
out% nfcn, out% njac, out% nstep, &
out% naccpt, out% nrejct, ierr)

if(out% nstep >= bbq_in% max_steps) ierr = -1

out% eps_nuc = avg_eps_nuc * in% time
out% xa = ending_x

Expand Down

0 comments on commit cc13fb1

Please sign in to comment.