MRChemSoft / mrchem

MultiResolution Chemistry
GNU Lesser General Public License v3.0
27 stars 21 forks source link

Cannot run without input #409

Open Gabrielgerez opened 2 years ago

Gabrielgerez commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Or better :slightly_smiling_face: :

$ bin/mrchem.x
42
stigrj commented 2 years ago

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

stigrj commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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