snew(top, 1);
- top->idef.ntypes = top_global->ffparams.ntypes;
+ /* TODO: Get rid of the const casts below, e.g. by using a reference */
+ top->idef.ntypes = top_global->ffparams.numTypes();
top->idef.atnr = top_global->ffparams.atnr;
- top->idef.functype = top_global->ffparams.functype;
- top->idef.iparams = top_global->ffparams.iparams;
+ top->idef.functype = const_cast<t_functype *>(top_global->ffparams.functype.data());
+ top->idef.iparams = const_cast<t_iparams *>(top_global->ffparams.iparams.data());
top->idef.fudgeQQ = top_global->ffparams.fudgeQQ;
top->idef.cmap_grid = top_global->ffparams.cmap_grid;
}
construct_vsites(nullptr, xs, 0.0, nullptr,
- ffparams->iparams, ilist,
+ ffparams->iparams.data(), ilist,
epbcNONE, TRUE, nullptr, nullptr);
}