Skip to content

Commit d9c84e1

Browse files
Fixed memory specification
1 parent cd412fc commit d9c84e1

File tree

3 files changed

+76
-76
lines changed

3 files changed

+76
-76
lines changed

ccinput/packages/nwchem.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class NWChemCalculation:
6060

6161
def __init__(self, calc):
6262
self.calc = calc
63-
self.calc.mem = f"{self.calc.mem} mb"
63+
self.calc.mem = f"{int(self.calc.mem/self.calc.nproc)} mb"
6464
self.has_scan = False
6565
self.appendix = []
6666
self.command_line = ""

ccinput/packages/xtb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def handle_specifications(self):
241241
self.concerted_scan = True
242242

243243
else:
244-
raise InvalidParameter("Invalid specification: {ss}")
244+
raise InvalidParameter(f"Invalid specification: {ss}")
245245
elif len(ss) == 2:
246246
if ss[0] == "o" or ss[0] == "opt":
247247
if ss[1] not in [

0 commit comments

Comments
 (0)