Re: [AMBER] Running in a loop

From: Matthew Guberman-Pfeffer <matthew.guberman-pfeffer.uconn.edu>
Date: Thu, 8 Jul 2021 11:29:43 -0400

If you are running on a cluster with SLURM, I don’t think this is really an Amber-specific question. You can write a bash script like the following:

FirstJobID=$(sbatch <FirstJob>.sb | awk ‘{print $4}’)
sbatch —dependency=afterok:$FirstJobID <SecondJob>.sb

Where FirstJob.sb and SecondJob.sb are submission scripts.

Best,
Matthew


> On Jul 8, 2021, at 10:37 AM, ankita mehta <mehtaroadies.gmail.com> wrote:
>
> *Message sent from a system outside of UConn.*
>
>
> *Hello all,*
>
> *I am running simulation in a loop.*
>
> *In which I want next simulation to run only when my previous run has
> completed .*
>
> *What is the way out for this?*
>
> *Thanks!*
>
>
> *P.S. - I dint get any message from *amber-bounces.ambermd.org.
>
> So , I am sending this here again.Please ignore if you got my previous mail.
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.ambermd.org%2Fmailman%2Flistinfo%2Famber&amp;data=04%7C01%7C%7Ccd80dccfdac84a10993608d9421e1897%7C17f1a87e2a254eaab9df9d439034b080%7C0%7C0%7C637613519289430783%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=jU9EfxXPbNmCFay5o2FoJGNbRvAW%2Fm1HefLzd7njzdU%3D&amp;reserved=0

_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Thu Jul 08 2021 - 09:00:03 PDT
Custom Search