Skip to content

Commit

Permalink
Merge branch 'workflow_parameterization' of https://github.com/shirts…
Browse files Browse the repository at this point in the history
…group/terphenyl_simulations into workflow_parameterization
  • Loading branch information
tlfobe authored and tlfobe committed Sep 17, 2024
2 parents 9dd7323 + 11f13f0 commit f9e2589
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 f9e2589

Please sign in to comment.