Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Tutorial 17 #181

Open
alex-fu27 opened this issue Aug 1, 2024 · 1 comment
Open

Broken Tutorial 17 #181

alex-fu27 opened this issue Aug 1, 2024 · 1 comment

Comments

@alex-fu27
Copy link

In Gridap 0.18, Tutorial 17 (transient equations) is broken in multiple ways:

Most importantly,

u₀ = interpolate_everywhere(0.0,U(0.0))
t₀ = 0.0
T = 10.0
uₕₜ = solve(ode_solver,op,u₀,t₀,T)

yields

MethodError: no method matching solve(::ThetaMethod, ::Gridap.ODEs.TransientFEOpFromWeakForm, ::Gridap.FESpaces.SingleFieldFEFunction{Gridap.CellData.GenericCellField{ReferenceDomain}}, ::Float64, ::Float64)

Closest candidates are:
  solve(::Gridap.ODEs.ODESolver, ::TransientFEOperator, !Matched::Real, ::Real, !Matched::CellField)
   @ Gridap ~/.julia/packages/Gridap/Ort08/src/ODEs/TransientFESolutions.jl:130
  solve(::Gridap.ODEs.ODESolver, ::TransientFEOperator, !Matched::Real, ::Real, !Matched::Tuple{Vararg{CellField}})
   @ Gridap ~/.julia/packages/Gridap/Ort08/src/ODEs/TransientFESolutions.jl:123
  solve(::Gridap.ODEs.ODESolver, !Matched::Gridap.ODEs.ODEOperator, !Matched::Real, ::Real, !Matched::AbstractVector)
   @ Gridap ~/.julia/packages/Gridap/Ort08/src/ODEs/ODESolutions.jl:142
  ...

I will attach the Jupyter Notebook of the example, showing the error message
t017_poisson_transient.ipynb.txt
but Github does not allow uploads with the .ipynb filename extension, so you need to remove the .txt.

Also, from the alternative FEOperator constructors, TransientConstantMatrixFEOperator seems to be missing:

UndefVarError: `TransientConstantMatrixFEOperator` not defined
@alex-fu27
Copy link
Author

Ah I found this very handy pull request #178 👍

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

No branches or pull requests

1 participant