since the code uses static ids, only one instance is allowed at a time

This commit is contained in:
Axel Kohlmeyer
2018-02-21 11:15:09 +01:00
parent deeba53a24
commit b6821ed942

View File

@ -85,6 +85,10 @@ Fix(lmp, narg, arg)
// these group names are reserved for use exclusively by bond/react
master_group = (char *) "bond_react_MASTER_group";
// by using fixed group names, only one instance of fix bond/react is allowed.
if (modify->find_fix_by_style("bond/react") != -1)
error->all(FLERR,"Only one instance of fix bond/react allowed at a time");
// let's find number of reactions specified
nreacts = 0;
for (int i = 3; i < narg; i++) {