Hi all,
I generated a protein-membrane system using CHARMM-GUI. For production, I am using the following loop script provided by CHARMM-GUI (slightly adapted):
# Define variables
init="../step5_input"
rest_prefix="../step5_input"
mini_prefix="../minimization/step6.0_minimization"
equi_prefix="../equilibration/step6.%d_equilibration"
prod_prefix="step7_production"
prod_step="step7"
# Production loop
cnt=1
cntmax=10
while [ $cnt -le $cntmax ]; do
pcnt=$((cnt - 1))
istep="${prod_step}_${cnt}"
pstep="${prod_step}_${pcnt}"
if [ $cnt -eq 1 ]; then
printf -v pstep "$equi_prefix" 6
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
fi
gmx mdrun -v -deffnm "${istep}" -ntmpi 1 -ntomp ${SLURM_CPUS_PER_TASK:-1} -bonded gpu -pme gpu -pin on -pinstride 1 -maxh 0.33 -cpt 20
cnt=$((cnt + 1))
done
However, when starting the second production step, I get the following error, after the first iteration:
Program: gmx grompp, version 2022.3
Error in user input:
Invalid command-line options
In command-line option -c
File 'step7_1.gro' does not exist or is not accessible.
The file could not be opened.
Reason: No such file or directory
It seems like the .gro file from the previous step is not being generated. Could it be that I’m missing a flag or option in mdrun to write the output .gro file? Or is something wrong with the naming logic?
Any help would be appreciated!
Thanks in advance.