Hold unique_ptr for interaction_const in forcerec
[alexxy/gromacs.git] / src / gromacs / mdlib / wall.cpp
index 61cb4720ea91d14ef72566423eee9e8d82531039..0079d0f6391f0e3843127f88b12261b5c3877312 100644 (file)
@@ -93,7 +93,7 @@ void make_wall_tables(FILE*                   fplog,
                         *groups->groupNames[nm_ind[egp]],
                         *groups->groupNames[nm_ind[negp_pp + w]],
                         ftp2ext(efXVG));
-                fr->wall_tab[w][egp] = make_tables(fplog, fr->ic, buf, 0, GMX_MAKETABLES_FORCEUSER);
+                fr->wall_tab[w][egp] = make_tables(fplog, fr->ic.get(), buf, 0, GMX_MAKETABLES_FORCEUSER);
 
                 /* Since wall have no charge, we can compress the table */
                 for (int i = 0; i <= fr->wall_tab[w][egp]->n; i++)