Use initializer lists for Lincs and Task
commitec536cfc8d976e13ffa0598c1334b31ae1ba7e85
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 6 Mar 2018 20:51:35 +0000 (6 21:51 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 13 Jun 2018 15:41:51 +0000 (13 17:41 +0200)
tree66ed2e9511056a4c97d68a78eea8bcb7b3614107
parentddc3dd50b4444396bac0216f880f2a7bc40b6df7
Use initializer lists for Lincs and Task

This permits us to have some constructors that work the same way that
snew used to do (ie. calloc), so that future cleanup can use more
vectors, etc.

Also made a destructor of Constraints::Impl so the Lincs object gets
freed.

Refs #2423

Change-Id: Ie4a2001556d04f620a9d5241a9e1da9024cb9ce1
src/gromacs/mdlib/constr.cpp
src/gromacs/mdlib/lincs.cpp
src/gromacs/mdlib/lincs.h