# Solution Builder in www.charmm-gui.org

**URL:** <https://gromacs.bioexcel.eu/t/solution-builder-in-www-charmm-gui-org/9151>\
**Category:** User discussions\
**Created:** [May 15, 2024, 8:36am UTC](https://gromacs.bioexcel.eu/t/solution-builder-in-www-charmm-gui-org/9151 "2024-05-15T08:36:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alisalehi](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@alisalehi](https://gromacs.bioexcel.eu/u/alisalehi)\
**Post date:** [May 15, 2024, 8:36am UTC](https://gromacs.bioexcel.eu/t/solution-builder-in-www-charmm-gui-org/9151/1 "2024-05-15T08:36:30Z")

</div>

GROMACS version:  
GROMACS modification:  
What is the purpose of these repetitions and if I want to continue the simulation, which step should I choose?

# Production

set cnt = 1  
set cntmax = 10

while ( {cnt} \<= {cntmax} )  
@ pcnt = {cnt} - 1 set istep = {prod\_step}_{cnt} set pstep = {prod\_step}_${pcnt}

```
if ( ${cnt} == 1 ) then
    set pstep = ${equi_prefix}
    gmx grompp -f ${prod_prefix}.mdp -o ${istep}.tpr -c ${pstep}.gro -p topol.top -n index.ndx
else
    gmx grompp -f ${prod_prefix}.mdp -o ${istep}.tpr -c ${pstep}.gro -t ${pstep}.cpt -p topol.top -n index.ndx
endif
gmx mdrun -v -deffnm ${istep}
@ cnt += 1

```

end

---

<div class="post-metadata">

**Author:** ![milosz.wieczor](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@milosz.wieczor](https://gromacs.bioexcel.eu/u/milosz.wieczor)\
**Post date:** [May 15, 2024, 5:48pm UTC](https://gromacs.bioexcel.eu/t/solution-builder-in-www-charmm-gui-org/9151/2 "2024-05-15T17:48:59Z")

</div>

If you have your equilibration part performed correctly, you can just as well do the production in a single step (with automatic gromacs restarts), there’s no point in regenerating the .tpr after each iteration, besides perhaps having backups if anything gets corrupted and you need to restart from an earlier timestamp.
