-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added a Julia ODE example #251
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me. But I'll let @smiths do the merge, as this is his repo.
@B-rando1, the code looks good, but I don't want to merge until I can run it. I followed your instructions for the Differential Equations package, but it doesn't seem to have loaded properly. I don't have time to debug it now. My Julia version is 1.10.4. DifferentialEquations is v7.13.0. Here is a portion of the error message that I get:
|
Hmm, that's odd. I'm on Julia v1.10.3, with DifferentialEquations v7.13.0. My Julia configuration doesn't have
Other than that, I'm not really sure what you can try. I checked their issue tracker, but didn't see anything related to this. I hope you can get it working! |
I figured out the problem. The homebrew version of Julia is not very good. 😄 I uninstalled by homebrew version of Julia and installed the regular version. After installing the differential equation package the code ran without any problems. 😄 |
This should help with #3918. It took a bit of trial and error to understand how the library works, but it makes sense now that I've got it working.
You can run the code by calling
make run RUNARGS=input.txt
, and the results will be stored inoutput.txt
. Note that you needDifferentialEquations.jl
installed in your Julia workspace (see here for an install guide).The output is basically identical to Python's (source code here). It deviates a little bit, but the first ~10 digits are the same.