Skip to content

Commit

Permalink
Fixed memory specification
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelRobidas committed Jan 15, 2024
1 parent cd412fc commit d9c84e1
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion ccinput/packages/nwchem.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class NWChemCalculation:

def __init__(self, calc):
self.calc = calc
self.calc.mem = f"{self.calc.mem} mb"
self.calc.mem = f"{int(self.calc.mem/self.calc.nproc)} mb"
self.has_scan = False
self.appendix = []
self.command_line = ""
Expand Down
2 changes: 1 addition & 1 deletion ccinput/packages/xtb.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def handle_specifications(self):
self.concerted_scan = True

else:
raise InvalidParameter("Invalid specification: {ss}")
raise InvalidParameter(f"Invalid specification: {ss}")
elif len(ss) == 2:
if ss[0] == "o" or ss[0] == "opt":
if ss[1] not in [
Expand Down
Loading

0 comments on commit d9c84e1

Please sign in to comment.