Skip to content

Commit

Permalink
updated submission scripts for ascent allocation, and changed submiss…
Browse files Browse the repository at this point in the history
…ion using remd_workflow
  • Loading branch information
Theodore Fobe committed Sep 17, 2024
1 parent cecdd6e commit 9a9029a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions terphenyl_simulations/analysis_workflows/remd.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def apply_hmr_to_topology(job):


@FlowProject.pre.after(apply_hmr_to_topology)
@FlowProject.post(lambda job: os.path.isdir(job.fn("sim0")))
@FlowProject.operation(directives={"fork" : True})
@cd_to_job_dir
def setup_remd_simulations(job):
Expand All @@ -177,10 +178,13 @@ def setup_remd_simulations(job):

# if slurm is an executable
@FlowProject.pre.after(setup_remd_simulations)
@FlowProject.pre(lambda job: shutil.which("slurm"))
@FlowProject.pre(lambda job: shutil.which("sbatch"))
@FlowProject.operation(directives={"fork": True})
@cd_to_job_dir
def submit_simulations(job):
pass
subprocess.run(["bash", "submit_all.slurm"], shell = True)
subprocess.wait()



# if slurm isn't an executable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#SBATCH -t 4:00:00
#SBATCH -p amilan
#SBATCH -J 'mop-octamer-npt-equilibration'
#SBATCH --account=ucb368_asc1
#SBATCH --account=ucb469_asc1
#SBATCH [email protected]
#SBATCH --mail-type=BEGIN
#SBATCH --mail-type=END
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#SBATCH -t 4:00:00
#SBATCH -p amilan
#SBATCH -J 'mop-octamer-nvt-equilibration'
#SBATCH --account=ucb368_asc1
#SBATCH --account=ucb469_asc1
#SBATCH [email protected]
#SBATCH --mail-type=BEGIN
#SBATCH --mail-type=END
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#SBATCH -t 20:00:00
#SBATCH -p amilan
#SBATCH -J 'mop-octamer-remd-continue'
#SBATCH --account=ucb368_asc1
#SBATCH --account=ucb469_asc1
#SBATCH [email protected]
#SBATCH --mail-type=BEGIN
#SBATCH --mail-type=END
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#SBATCH -t 20:00:00
#SBATCH -p amilan
#SBATCH -J 'mop-octamer-remd-finish'
#SBATCH --account=ucb368_asc1
#SBATCH --account=ucb469_asc1
#SBATCH [email protected]
#SBATCH --mail-type=BEGIN
#SBATCH --mail-type=END
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#SBATCH -t 20:00:00
#SBATCH -p amilan
#SBATCH -J 'mop-octamer-remd'
#SBATCH --account=ucb368_asc1
#SBATCH --account=ucb469_asc1
#SBATCH [email protected]
#SBATCH --mail-type=BEGIN
#SBATCH --mail-type=END
Expand Down

0 comments on commit 9a9029a

Please sign in to comment.