Skip to content

Commit

Permalink
fixed minimum number of nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
cpignedoli committed Nov 15, 2023
1 parent 7f6c377 commit b333c55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiida_nanotech_empa/workflows/cp2k/phonons_workchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def setup(self):
self.ctx.options = self.inputs.options
self.ctx.geo_options = copy.deepcopy(self.ctx.options)
self.ctx.geo_options["resources"]["num_machines"] = int(
self.ctx.phonons_params["nproc_rep"]
/ self.ctx.options["resources"]["num_mpiprocs_per_machine"]
max(1,self.ctx.phonons_params["nproc_rep"]
/ self.ctx.options["resources"]["num_mpiprocs_per_machine"])
)
self.ctx.input_dict["GLOBAL"]["WALLTIME"] = max(
600, self.ctx.options["max_wallclock_seconds"] - 600
Expand Down

0 comments on commit b333c55

Please sign in to comment.