diff --git a/pygromos/files/blocks/imd_blocks.py b/pygromos/files/blocks/imd_blocks.py index 4ea5691f..95d24855 100644 --- a/pygromos/files/blocks/imd_blocks.py +++ b/pygromos/files/blocks/imd_blocks.py @@ -607,6 +607,9 @@ def block_to_string(self) -> str: result += " " + str(self.ALGORITHM) + "\n" if(self.ALGORITHM == "2"): + if(self.NUM is None): + raise Exception("You need to specify the NUM parameter for MULTIBATH if ALGORITHM is 2!") + result += "# " + "\t".join(self._order[0][1]) + "\n" result += " " + str(self.NUM) + "\n"