Move the seterr statement to solve and simulate and use error states instead, as these will automatically reset upon exit.
Move the seterr statement to solve and simulate and use error states instead, as these will automatically reset upon exit.

econ-ark/HARK,econ-ark/HARK