Skip to content

Commit

Permalink
remove unused convergence criteria for NPAG
Browse files Browse the repository at this point in the history
  • Loading branch information
Siel committed May 13, 2024
1 parent d386cc7 commit 072e20d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Binary file removed examples/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/two_eq_lag/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use pmcore::prelude::{models::one_compartment_with_absorption, simulator::Equati
fn main() -> Result<()> {
let eq = Equation::new_ode(
|x, p, _t, dx, rateiv, _cov| {
// fetch_cov!(cov, t, wt);
fetch_cov!(cov, t,);
fetch_params!(p, ka, ke, _tlag, _v);
dx[0] = -ka * x[0];
dx[1] = ka * x[0] - ke * x[1];
Expand Down
5 changes: 0 additions & 5 deletions src/algorithms/npag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,6 @@ impl NPAG {
}
}
}
if self.eps <= THETA_E {
tracing::info!("The run converged with the following criteria: Eps");
self.converged = true;
stop = true;
}

// Stop if we have reached maximum number of cycles
if self.cycle >= self.settings.config.cycles {
Expand Down

0 comments on commit 072e20d

Please sign in to comment.