-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
'update_varmap!' not being used #293
Comments
Can you post the error and code to reproduce? Also please check you are using latest versions. |
I used the code: using Plots, MethodOfLines, DomainSets, ModelingToolkit @variables u(..) f(..) @parameters t θ λ P dθ = Differential(θ) function δ(θ) Iθ = Integral(θ in DomainSets.ClosedInterval(-1.0,1.0)) eq = [ bcs = [ domains = [t ∈ (0.0,50.0), @nAmed pde_sys = PDESystem(eq, bcs, domains, [t,θ], [u(t,θ),f(t,θ)]) discretisation = MOLFiniteDifference([θ => 100],t) prob = MethodOfLines.discretize(pde_sys, discretisation) and got the error message: ERROR: UndefVarError: update_varmap! not defined I manually changed the export line in pde_system_transformation.jl, and also had to manually copy over the function get_ops but this resolved the issue on my machine. |
I have the exact same problem with a stationary 1D pde: using MethodOfLines,DomainSets,NonlinearSolve,ModelingToolkit D=0.1 eq= -Dx((x-x^3)u(x)) +DDxx(u(x)) ~ 0 domains = [x ∈ Interval(-L, L)] @nAmed pdesys = PDESystem(eq, bcs, domains, [x], [u(x)]) it works fine in 2D spatial dimension |
* add precompilation stage * merge precompiliation discretizations * fix * fix #293 * Update Project.toml * CompatHelper: add new compat entry for PrecompileTools at version 1, (keep existing compat) * Try new scheme for mixed derivs * remove show * mark broken * init mixed deriv rules * Update Project.toml --------- Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org>
In line 207 in pde_system_transformation.jl, the function update_varmap! is used but has not been imported from PDEBase and so an error is caused.
The text was updated successfully, but these errors were encountered: