# CSh loop script-Restart the following equilibration run due to termination caused by shutdown

**URL:** <https://gromacs.bioexcel.eu/t/csh-loop-script-restart-the-following-equilibration-run-due-to-termination-caused-by-shutdown/524>\
**Category:** User discussions\
**Created:** [July 19, 2020, 5:46am UTC](https://gromacs.bioexcel.eu/t/csh-loop-script-restart-the-following-equilibration-run-due-to-termination-caused-by-shutdown/524 "2020-07-19T05:46:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul85](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rahul85](https://gromacs.bioexcel.eu/u/rahul85)\
**Post date:** [July 19, 2020, 5:46am UTC](https://gromacs.bioexcel.eu/t/csh-loop-script-restart-the-following-equilibration-run-due-to-termination-caused-by-shutdown/524/1 "2020-07-19T05:46:38Z")

</div>

GROMACS version:  
GROMACS modification: Yes/No  
Here post your question  
#!/bin/csh

# 

# Generated by CHARMM-GUI ([http://www.charmm-gui.org](http://www.charmm-gui.org))

# This folder contains GROMACS formatted CHARMM36 force fields, a pre-optimized PDB structure, and GROMACS inputs.

# All input files were optimized for GROMACS 2019.2 or above, so lower version of GROMACS can cause some errors.

# We adopted the Verlet cut-off scheme for all minimization, equilibration, and production steps because it is

# faster and more accurate than the group scheme. If you have a trouble with a performance of Verlet scheme while

# running parallelized simulation, you should check if you are using appropriate command line.

# For MPI parallelizing, we recommand following command:

# mpirun -np $NUM\_CPU gmx mdrun -ntomp 1

# Minimization

# In the case that there is a problem during minimization using a single precision of GROMACS, please try to use

# a double precision of GROMACS only for the minimization step.

# step6.0

gmx grompp -f step6.0\_minimization.mdp -o step6.0\_minimization.tpr -c step5\_input.gro -r step5\_input.gro -p topol.top  
gmx\_d mdrun -v -deffnm step6.0\_minimization

# Equilibration

set cnt = 1  
set cntmax = 6

while ( {cnt} \<= {cntmax} )  
@ pcnt = {cnt} - 1 if ( {cnt} == 1 ) then  
gmx grompp -f step6.{$cnt}\_equilibration.mdp -o step6.{$cnt}\_equilibration.tpr -c step6.{$pcnt}\_minimization.gro -r step5\_input.gro -p topol.top  
gmx mdrun -v -deffnm step6.{$cnt}\_equilibration  
else  
gmx grompp -f step6.{$cnt}\_equilibration.mdp -o step6.{$cnt}\_equilibration.tpr -c step6.{$pcnt}\_equilibration.gro -r step5\_input.gro -p topol.top  
gmx mdrun -v -deffnm step6.{$cnt}\_equilibration  
endif  
@ cnt += 1  
end

# Production

set cnt = 1  
set cntmax = 10

while ( {cnt} \<= {cntmax} )  
if ( {cnt} == 1 ) then gmx grompp -f step7\_production.mdp -o step7\_{cnt}.tpr -c step6.6\_equilibration.gro -p topol.top  
gmx mdrun -v -deffnm step7\_{cnt} else @ pcnt = {cnt} - 1  
gmx grompp -f step7\_production.mdp -o step7\_{cnt}.tpr -c step7\_{pcnt}.gro -t step7\_{pcnt}.cpt -p topol.top gmx mdrun -v -deffnm step7\_{cnt}  
endif  
@ cnt += 1  
end

The run stopped at 6.1 step, stuck at 6.2 step how to continue from 6.2 step or restart from any step

---

<div class="post-metadata">

**Author:** ![Dr\_DBW](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/dr_dbw/32/42_2.png) [@Dr\_DBW](https://gromacs.bioexcel.eu/u/Dr_DBW)\
**Post date:** [July 19, 2020, 11:18pm UTC](https://gromacs.bioexcel.eu/t/csh-loop-script-restart-the-following-equilibration-run-due-to-termination-caused-by-shutdown/524/2 "2020-07-19T23:18:50Z")

</div>

What was the output given at “step 6.1”? What was written to the terminal? What was written to the log files?
