# Error in the EM run

**URL:** <https://gromacs.bioexcel.eu/t/error-in-the-em-run/7626>\
**Category:** User discussions\
**Tags:** energy-minization\
**Created:** [November 13, 2023, 8:33am UTC](https://gromacs.bioexcel.eu/t/error-in-the-em-run/7626 "2023-11-13T08:33:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Susovon\_G](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Susovon\_G](https://gromacs.bioexcel.eu/u/Susovon_G)\
**Post date:** [November 13, 2023, 8:33am UTC](https://gromacs.bioexcel.eu/t/error-in-the-em-run/7626/1 "2023-11-13T08:33:14Z")

</div>

## Hey, I am starting out with GROMACS! I need to perform an Energy Minimization. For the EM run while using the mdrun I am getting this error message:

## Fatal error: There is no domain decomposition for 32 ranks that is compatible with the given box and a minimum cell size of 8.76596 nm Change the number of ranks or mdrun option -rdd or -dds

If anyone can please help me in this regard that will be great!

p.s. The parameter file I’m using can be found below:  
; LINES STARTING WITH ‘;’ ARE COMMENTS  
title = Minimization ; Title of run

; Parameters describing what to do, when to stop and what to save  
integrator = steep ; Algorithm (steep = steepest descent minimization)  
emtol = 1000.0 ; Stop minimization when the maximum force \< 10.0 kJ/mol  
emstep = 0.01 ; Energy step size  
nsteps = 50000 ; Maximum number of (minimization) steps to perform

; Parameters describing how to find the neighbors of each atom and how to calculate the interactions  
nstlist = 1 ; Frequency to update the neighbor list and long range forces  
cutoff-scheme = Verlet  
ns\_type = grid ; Method to determine neighbor list (simple, grid)  
rlist = 1.2 ; Cut-off for making neighbor list (short range forces)  
coulombtype = PME ; Treatment of long range electrostatic interactions  
rcoulomb = 1.2 ; long range electrostatic cut-off  
vdwtype = cutoff  
vdw-modifier = force-switch  
rvdw-switch = 1.0  
rvdw = 1.2 ; long range Van der Waals cut-off  
pbc = xyz ; Periodic Boundary Conditions  
DispCorr = no

---

<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:** [November 13, 2023, 12:26pm UTC](https://gromacs.bioexcel.eu/t/error-in-the-em-run/7626/2 "2023-11-13T12:26:07Z")

</div>

Hi, if your minimum DD cell size is almost 9 nm, that usually means a really long bond or something otherwise strange in your system setup.

There simple way around this would be to run `gmx mdrun` on 1 or 2 CPUs, but the original problem might persist even if the minimization completes, so first use it to diagnose the issue that caused the error in the first place (e.g. by comparing the structures before and after minimization).

---

<div class="post-metadata">

**Author:** ![Susovon\_G](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Susovon\_G](https://gromacs.bioexcel.eu/u/Susovon_G)\
**Post date:** [November 14, 2023, 1:55pm UTC](https://gromacs.bioexcel.eu/t/error-in-the-em-run/7626/4 "2023-11-14T13:55:40Z")

</div>

Thank you…
