Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ def _submit_discretized(sbatch_opts, job_script, bins):
sbatch += opthandler.optdict2str(
sbatch_opts, skiped_opts=("None", "False"), dumped_vals=("True",)
)
submit = sbatch

n_jobs_submitted = 0
for i, zmax in enumerate(bins[1:], 1):
slab = [bins[i - 1], zmax]
slab_str = "_{:.{prec}f}-{:.{prec}f}nm".format(
slab[0], slab[1], prec=ARG_PREC
)
submit = sbatch
if "job-name" not in sbatch_opts and "J" not in sbatch_opts:
sbatch_jobname = " --job-name " + gmx_infile_pattern + "_"
submit += sbatch_jobname + job_script + slab_str
Expand Down
6 changes: 3 additions & 3 deletions analysis/lintf2_ether/mdt/contact_hist_slab-z_Li-OBT.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

#SBATCH --time=1-00:00:00
#SBATCH --time=0-06:00:00
#SBATCH --job-name="mdt_contact_hist_slab-z_Li-OBT"
#SBATCH --output="mdt_contact_hist_slab-z_Li-OBT_slurm-%j.out"
#SBATCH --nodes=1
#SBATCH --cpus-per-task=2
#SBATCH --mem=512M
#SBATCH --cpus-per-task=1
#SBATCH --mem=1G
# The above options are only default values that can be overwritten by
# command-line arguments

Expand Down
6 changes: 3 additions & 3 deletions analysis/lintf2_ether/mdt/contact_hist_slab-z_Li-OE.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

#SBATCH --time=1-00:00:00
#SBATCH --time=0-06:00:00
#SBATCH --job-name="mdt_contact_hist_slab-z_Li-OE"
#SBATCH --output="mdt_contact_hist_slab-z_Li-OE_slurm-%j.out"
#SBATCH --nodes=1
#SBATCH --cpus-per-task=2
#SBATCH --mem=512M
#SBATCH --cpus-per-task=1
#SBATCH --mem=1G
# The above options are only default values that can be overwritten by
# command-line arguments

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,14 +522,14 @@ def _submit_discretized(sbatch_opts, job_script, bins):
sbatch += opthandler.optdict2str(
sbatch_opts, skiped_opts=("None", "False"), dumped_vals=("True",)
)
submit = sbatch

n_jobs_submitted = 0
for i, zmax in enumerate(bins[1:], 1):
slab = [bins[i - 1], zmax]
slab_str = "_{:.{prec}f}-{:.{prec}f}A".format(
slab[0], slab[1], prec=ARG_PREC
)
submit = sbatch
if "job-name" not in sbatch_opts and "J" not in sbatch_opts:
sbatch_jobname = " --job-name " + gmx_infile_pattern + "_"
submit += sbatch_jobname + job_script + slab_str
Expand Down Expand Up @@ -934,6 +934,7 @@ def _submit(sbatch_opts, job_script):
" file: '{}'.".format(GRO_FILE)
)
box_z = gmx.get_box_from_gro(GRO_FILE)[2]
box_z *= 10 # nm -> A
args["zmin"] = 0.5 * (box_z - args["slabwidth"])
args["zmax"] = 0.5 * (box_z + args["slabwidth"])
elif args["zmax"] is None:
Expand All @@ -944,6 +945,7 @@ def _submit(sbatch_opts, job_script):
" manually".format(GRO_FILE)
)
args["zmax"] = gmx.get_box_from_gro(GRO_FILE)[2]
args["zmax"] *= 10 # nm -> A
if args["zmax"] <= args["zmin"]:
raise ValueError(
"zmax ({}) must be greater than zmin"
Expand Down