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

Docs for solving the heat equation: extract solution #349

Closed
ggebbie opened this issue Jan 3, 2024 · 5 comments
Closed

Docs for solving the heat equation: extract solution #349

ggebbie opened this issue Jan 3, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@ggebbie
Copy link

ggebbie commented Jan 3, 2024

Describe the bug 🐞

When running the Solving the Heat Equation example in the docs, I got errors when trying to extract the solution.

Expected behavior

I expected to be able to run the provided code without error. I made some adjustments to extract the code (see snippet of code below).

Minimal Reproducible Example 👇

A snippet of the full code:

# Plot results and compare with exact solution
#discrete_x = sol[x] # didn't work
grid = get_discrete(pdesys, discretization)
discrete_x = grid[x]

#discrete_t = sol[t] # didn't work
discrete_t = sol.t # works

#solu = sol[u(t, x)] # didn't work
solu = sol.u[u(t, x)]

Error & Stacktrace ⚠️
Error related to issymbollike.

Environment (please complete the following information):

  • Output of using Pkg; Pkg.status()
  [717857b8] DSP v0.7.9
  [31c24e10] Distributions v0.25.104
⌅ [5b8099bc] DomainSets v0.6.7
  [634d3b9d] DrWatson v2.13.0
  [09f84164] HypothesisTests v0.11.0
  [94925ecb] MethodOfLines v0.10.4
  [961ee093] ModelingToolkit v8.75.0
  [85f8d34a] NCDatasets v0.14.0
  [1dea7af3] OrdinaryDiffEq v6.67.0
  [f0f68f2c] PlotlyJS v0.18.11
  [91a5bcdd] Plots v1.39.0
  [1986cc42] Unitful v1.19.0
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated`
  • Output of using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
 ERROR: UndefVarError: `PKGMODE_MANIFEST` not defined
  • Output of versioninfo()
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
 

Additional context

Add any other context about the problem here.

@ggebbie ggebbie added the bug Something isn't working label Jan 3, 2024
@rjku
Copy link

rjku commented Jan 17, 2024

Thank you for posting this issue.
I stumbled upon it, too.
—Riccardo

@cmhyett
Copy link
Contributor

cmhyett commented Jan 18, 2024

We've been actively working to remedy the issymbollike issue in PR #346.

@musoke
Copy link

musoke commented Feb 15, 2024

Is this solved? I see that the potential fix @cmhyett mentioned is merged.

@ggebbie
Copy link
Author

ggebbie commented Feb 16, 2024

This problem is solved when updating the package today. Great!

I can close the issue if that's ok with everyone.

My environment that works contains the following:

  [717857b8] DSP v0.7.9
⌃ [31c24e10] Distributions v0.25.104
⌅ [5b8099bc] DomainSets v0.6.7
⌃ [634d3b9d] DrWatson v2.13.0
  [38e38edf] GLM v1.9.0
  [09f84164] HypothesisTests v0.11.0
  [b964fa9f] LaTeXStrings v1.3.1
  [94925ecb] MethodOfLines v0.10.6
  [961ee093] ModelingToolkit v8.75.0
⌃ [85f8d34a] NCDatasets v0.14.0
⌃ [1dea7af3] OrdinaryDiffEq v6.68.2
⌃ [f0f68f2c] PlotlyJS v0.18.11
⌃ [91a5bcdd] Plots v1.39.0
  [1986cc42] Unitful v1.19.0

@ggebbie
Copy link
Author

ggebbie commented Feb 16, 2024

closing

@ggebbie ggebbie closed this as completed Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants