Skip to content

Add test with units#528

Open
ctessum wants to merge 1 commit intoSciML:masterfrom
ctessum:add-units-test
Open

Add test with units#528
ctessum wants to merge 1 commit intoSciML:masterfrom
ctessum:add-units-test

Conversation

@ctessum
Copy link
Contributor

@ctessum ctessum commented Feb 24, 2026

This PR adds a test for a case with units. Against the master branch, this test will fail because it includes the line

prob = discretize(pdesys, disc; system_kwargs = [:checks => ~ModelingToolkit.CheckUnits])

and the master branch doesn't have a system_kwargs argument for discretize. (It would also fail without that argument because of #511).

However, SciML/PDEBase.jl#66 adds such an argument, so this new test, when run with that version of PDEBase, passes.

The net effect of this all is allow for unit checking to be turned off in the discretize function, because MOL doesn't currently handle units correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant