Skip to content

Commit

Permalink
Update src/aiidalab_qe/app/submission/global_settings/model.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jusong Yu <jusong.yeu@gmail.com>
  • Loading branch information
mikibonacci and unkcpz authored Dec 19, 2024
1 parent a877c33 commit 41e1732
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/aiidalab_qe/app/submission/global_settings/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,10 @@ def check_resources(self):
num_sites = len(self.input_structure.sites)
volume = self.input_structure.get_cell_volume()

machine_cpus = orm.load_node(
code = orm.load_node(
pw_code_model.selected
).computer.get_default_mpiprocs_per_machine()
)
machine_cpus = code.computer.get_default_mpiprocs_per_machine()

large_system = (
num_sites > self._RUN_ON_LOCALHOST_NUM_SITES_WARN_THRESHOLD
Expand Down

0 comments on commit 41e1732

Please sign in to comment.