-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reapply "Newton error propagation based convergence check." (#1419)
* Set `dt` if needed. * Use `(X - X_old) / dt = dX`. Instead of `(X - X_old) = dt * dX`. The implemented scaling is the one implemented in NOCMODL. It should prevent the residual from growing linearly with `dt`. * Reduce MAX_ITER to 50 and adjust tolerance. * Newton error propagation based convergence check. * Add tests. Includes a test that solves the pump equation ~ X + Y <-> Z with extreme compartment sizes and steady state calculation. * Fix codegen issues specific to NVHPC.
- Loading branch information
Showing
7 changed files
with
293 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.