disable optimization on functions building factories for many entries

this will speed up compilation and also avoid spurious warnings with gcc 4.4 and later
This commit is contained in:
Axel Kohlmeyer
2019-06-06 20:37:17 -04:00
parent 56e3b1d1f4
commit b53df3dd63
6 changed files with 34 additions and 9 deletions

View File

@ -80,7 +80,11 @@ Force::Force(LAMMPS *lmp) : Pointers(lmp)
strcpy(kspace_style,str);
pair_restart = NULL;
create_factories();
}
void _noopt Force::create_factories()
{
// fill pair map with pair styles listed in style_pair.h
pair_map = new PairCreatorMap();