spirit-code / spirit

Atomistic Spin Simulation Framework
http://spirit-code.github.io
MIT License
120 stars 53 forks source link

Error in loading the input.cfg file #615

Closed Sayan611 closed 2 years ago

Sayan611 commented 2 years ago

Hi, I am getting an error when I am trying to load the input.cfg file in Spirit. I have attached a screenshot regarding this which shows the error message in the middle. I have also attached my input.cgf file which is showing this error. I will be very grateful if you kindly help me out. Thanks. Regards Sayan Banik

Input file and error message.zip

MSallermann commented 2 years ago

Hey, reading in a different config file only works if the number of spins in the new config file is the same as the number of spins currently in the system. I suspect this might be the cause of the issue here. I understand that this behaviour is quite unintuitive... In practice, I can't think of any time I ever needed this function, though.

If you want to start the GUI with a certain cfg file I recommend to use command line arguments, like so: ./spirit -f path/to/myinput.cfg

GPMueller commented 2 years ago

See also https://spirit-docs.readthedocs.io/en/latest/core/docs/Features.html and issue #572

GPMueller commented 2 years ago

@Sayan611 do you have any follow-up questions or can we close this issue?

Sayan611 commented 2 years ago

Dear Mueller I don't have any questions. You can close this issue. Thanks for your help.