Skip to content

Commit

Permalink
Merge pull request #39 from Ericgig/changes.ode.default
Browse files Browse the repository at this point in the history
Changes ode default step size to PIDController
  • Loading branch information
Ericgig authored Apr 1, 2024
2 parents 475a4f1 + 0f00062 commit de36e0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ requires = [
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
addopts = "-Werror --strict-config --strict-markers"
addopts = "-Werror --strict-config --strict-markers -W \"ignore:Complex dtype:UserWarning\""
testpaths = [
"tests",
]
2 changes: 1 addition & 1 deletion src/qutip_jax/ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class DiffraxIntegrator(Integrator):
integrator_options: dict = {
"dt0": 0.0001,
"solver": diffrax.Tsit5(),
"stepsize_controller": diffrax.ConstantStepSize(),
"stepsize_controller": diffrax.PIDController(atol=1e-8, rtol=1e-6),
"max_steps": 100000,
}

Expand Down

0 comments on commit de36e0d

Please sign in to comment.