[AMBER] Increase maximum of atoms in COM distance restraint

From: Javier Carmona Garcia via AMBER <amber.ambermd.org>
Date: Wed, 11 Jan 2023 15:56:22 +0100

Dear AMBER users,

I have been using PMEMD-CUDA during the past few months to perform MD umbrella sampling simulations to obtain the free energy profile of a small molecule (HgBr2) going through an air-water interface. I have followed an approach similar to the one presented on the AMBER tutorial 7.5 (Transferring methanol trough a membrane), which for my specific case requires the definition of a distance restraint between the center of mass of HgBr2 and the center of mass of the 1499 water molecules that define my water layer.

Now I am planning on obtaining this free energy profile at the QM-MM level using sander, but I have encountered with the 200 atoms limitation in the group definition of the distance restraint file. I read in the manual that this limitation is not present in PMEMD, which is why I was able to define a group of 4500 atoms (all O and H atoms of the 1499 water molecules).

Nevertheless, I have tried to carry out a simulation with sander using this distance restraint file:


which has 201 atoms on the second group definition and, because of that, it obviously stops. However, it gives the following error:

 Error: Too many atom ranges need to be stored for center-of-mass distance
        restraints. MAXGRP = 1. This needs to be increased.

Because of that, I wanted to ask if it was possible to get rid of the 200 atoms limitation in sander by increasing this variable (which by reading earlier posts from the forum I think it would require to modify the code and recompile). I am unsure though about how this can be done and if this modification can affect negatively other parts of the code. Another possibility could be to reduce my system (and maybe only use the oxygen atoms of the water molecules for the group definition, allowing me to at least have 200 water molecules), but I am interested in exploring first this modification.

Thank you beforehand and best regards,

Javier Carmona GarcĂ­a
Institute of Molecular Science (ICMol)
Valencia, Spain

AMBER mailing list
Received on Wed Jan 11 2023 - 07:00:02 PST
Custom Search