Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Add example using parameters #381

Merged
merged 2 commits into from
Apr 25, 2021

Conversation

valentinsulzer
Copy link
Contributor

Fixes #380 (no code change, shows how to do it)

@@ -4,6 +4,5 @@
deps/deps.jl
Manifest.toml
*.png
docs/build
.vscode
.DS_store
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was told in a separate PR that such things (anything not generated by the package itself) should go into my global .gitignore instead of the package's one. I checked and it was me who added these back in November. But I can leave them in if you prefer


pdesys = PDESystem(eqs,bcs,domains,[t,x],[u(t,x),v(t,x)],[Dn=>0.5, Dp=>2])
discretization = MOLFiniteDifference([x=>0.1],t)
prob = discretize(pdesys,discretization) # This gives an ODEProblem since it's time-dependent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should convert this to a test which right here checks if prob.p == [0.5,2]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the solution record which parameters it used?

@valentinsulzer valentinsulzer marked this pull request as draft April 23, 2021 13:29
@valentinsulzer valentinsulzer marked this pull request as ready for review April 23, 2021 17:09
@ChrisRackauckas ChrisRackauckas merged commit 108e7f4 into SciML:master Apr 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PDE parameters in MOLFiniteDifference
2 participants