@jalemkul
upon executing gmx genion -s ions.tpr -o test_solv_ions.gro -p topol.top -pname NA -nname CL -conc 0.15 -neutral I selected 1 for protein
it gives the following fatal error
Fatal error:
Your solvent group size (3621) is not a multiple of 16
The problem you’re facing has nothing to do with .mdp settings (which are irrelevant for running genion, anyway). You just need to make a sensible selection for replacing solvent with ions.