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

Cannot run without input #409

Open
Gabrielgerez opened this issue May 2, 2022 · 6 comments
Open

Cannot run without input #409

Gabrielgerez opened this issue May 2, 2022 · 6 comments

Comments

@Gabrielgerez
Copy link
Contributor

I would expect that MRChem could be run without input so that a dummy empty calculation can be run. This would be useful for debugging or test runs where the input file is practically unneeded.
As it is now if one tries to run a calculation without an input file the code crashes.

@stigrj
Copy link
Contributor

stigrj commented May 2, 2022

So you want the official mrchem.x to be a "hello world" program if no input is given?

$ bin/mrchem.x
No input given!

@stigrj
Copy link
Contributor

stigrj commented May 2, 2022

Or better 🙂 :

$ bin/mrchem.x
42

@stigrj
Copy link
Contributor

stigrj commented May 2, 2022

Or do you want it to be able to do some semi-useful work, like initializing a default MRA world etc?

@stigrj
Copy link
Contributor

stigrj commented May 2, 2022

We could add a --dummy option to the mrchem script which sets up a minimal default input, so that it creates a dummy.json file and runs bin/mrchem.x dummy.json

@Gabrielgerez
Copy link
Contributor Author

Dummy seems more useful, as one might want to just run the program to find bugs in parts that are not dependent on input.

@Gabrielgerez
Copy link
Contributor Author

for example, memory leaks in new functions and classes (me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants