-
Notifications
You must be signed in to change notification settings - Fork 13
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
OOMMF Runtime Error on Win10 #15
Comments
Hi @lbreth, thank you for your question and sorry for encountering that problem. I will investigate this and get back to you. |
Hmm. I am getting this exact error also. |
I am also experiencing the same in running the program "ERROR in OOMMF run" |
It might be valuable to note that at least for myself, I had OOMMFTCL defined prior, and it is holding the cached result of the path even after I deleted the environment variable. Do you guys have the same environment variable defined? I've tried to do some debugging on my own here, and running
returns 0 and a note that I tried to run an example that is shown in the comments of However, still, when attempting the periodic-boundary-conditions notebook the initial error is received upon plotting in the first instance of running the code, then the RuntimeError is thrown. |
@marijanbeg, I noticed some useful information in my command prompt window that may be useful to solve this:
I'll note that I am using 2.0a2, and I cannot readily get 2.0a1 to be picked back up by oommfc. I've tried to set the associated cache bool to |
Hi @lbreth, @Harry-09, and @catrevil, thank you for you comments. It took me some time to investigate this since I am not a Windows user and have to do everything through Virtual machines. Here is the summary of the problem:
In summary: This is a limitation of OOMMF since it does not support DMI with PBC. We wrote our own extensions for OOMMF in order to support all DMI classes as well as PBC, but we can package them using conda only for Linux and MacOS. I made a mistake by showing you a DMI PBC example during the workshop before explaining how to deal with this issue on Windows - apologies. I will do my best to make a tutorial before the next session and ask you all for a few days patience. I will leave this issue open until we resolve it. |
One thing i noticed here when i run dynamics domain wall (problem discussed in tutorial) there is no run time error. |
@gaurav123shukla please take a reading of this reply from Marijan:
What you'll notice is the primary problem was how they were able to implement some extras in ubermag, but these do not play well in windows. Further inspection of the thread before your most recent replies will note that the issue The code that I posted was used to debug to the source of the issue, it does nothing to fix anything related to the problem, nor any problem, really, just a method of trying to see what was not working and why. I did not figure it out, but Marijan did and As for why it does not appear in the domain wall dynamics tutorial, you must ask yourself, is there a definition of boundary condition made in this example? And the answer to this is no, which is why the problem did not make itself evident, as it was never encountered. |
Hi all, new Ubermag conda packages are being built at the moment and will be available soon :) |
Hi all, thank you for your patience - building
And ideally, that's it. Ubermag should be able to detect what OS you have and how to run OOMMF (in standard OOMMF installed via conda or inside a docker container). Please note that the first run is going to take some time, because a docker image must be pulled from the cloud. All other runs in the future are going to be as fast as running them on Conda-installed OOMMF. I do not have a Windows machine in quarantine, so I am not able to test everything properly, so if anything does not work, since Windows is full of surprises, please let me know. For more details, there is a short tutorial (only if you want to be explicit): https://oommfc.readthedocs.io/en/latest/ipynb/docker-simulations.html I am going to cover all this during the next live session as well. |
Hi all, did this docker solution work for you or you still have issues running DMI simulations? As I said, I do not have a Windows machine in quarantine to test it, so it would be good if somebody can check this for me :) |
Hi Marijan, I did try it as you described above, but unfortunately it did not work. I still get that same errorneous behavior as described initially. I am actually wondering if it has sthg to do with the "division by zero" issue that seems to be present already before calling OOMMF (see screenshot in my initial posting). Cheers! |
I am currently setting Docker up on my Windows side of my desktop (I had it in a WSL Ubuntu install, and not my Windows OS), so I will verify soon if the solution works. @lbreth did you specify a runner for the driver? If you received the same tcl runner error, you likely missed this step. (I did, too!) I recommend taking a look at the choosing runners tutorial (as I soon will, too!) and seeing if this allows you to use the Docker runner (as will I! (did you install Docker?)). |
@marijanbeg calling for This is likely why @lbreth is getting errors. I get the exact same error as one would get attempting to use the ubermag install of oommf for something such as this. I'm not sure if this is something that can be fixed as simply as ensuring the new builds are known to the appropriate servers, or how exactly that works, but I can't get conda to automatically pull down the updated oommfc and related ubermag packages. I may be doing something wrong, of course, but I would have thought it should be just that, calling for Edit: I also get this divide by zero error which does not appear upon a second run of the cell which produced it, and the version of ubermag noted by conda when calling
|
Hi, thank you both for letting me know. That's strange. What if you try being specific: |
@marijanbeg that seemed to have done it, at least noting and updating the relevant modules/packages!
and now this has been reinstalled! AND IT WORKS! Even after having installed the image prior to this re-updated update!! WOO!! Edit: I still get this when we call
which is mighty odd, but it does not reoccur when you evaluate the cell again. Edit edit: And the autodetect works flawlessly. Major kudos to you @marijanbeg |
I also do not know what the issue with Just to confirm I undrestood you right:
Sorry for asking so many questions, but, as I said, I have no chance of testing this on a Windows machine at the moment. |
Regarding the plotting warning thrown by |
@marijanbeg apologies, I updated my reply after sending it, this is likely not a traditional method of how one should use github, but I digress. To answer your questions explicitly:
tl;dr Everything works as intended, once the versions in which the intentions exist are present on the user's PC ;) |
Amazing! Thanks a lot for checking this for me - much appreciated @catrevil! Let me summarise the solution here:
Ubermag is then able to determine which runner it should use depending on the energy equation used and mesh boundary conditions.
|
Hi, I am posting this problem, because all notebooks so far worked fine on my Win10 machine (in a conda environment), except periodic-boundary-conditions.ipynb. The following error was raised:
I tried:
but unfortunately nothing worked. Any ideas?
The text was updated successfully, but these errors were encountered: