Move pmePpCommGpu reset outside do_md
authorAlan Gray <alangraygerrit@gmail.com>
Tue, 19 Nov 2019 15:19:42 +0000 (07:19 -0800)
committerArtem Zhmurov <zhmurov@gmail.com>
Wed, 20 Nov 2019 16:34:20 +0000 (17:34 +0100)
commit7519efe5af2e04c1be6287292f9e7c8775f2c49f
tree0128bd603452339935f6e95bbd29b7f48023e53f
parent629d8c1743de1e301466245d311f963f4e4b871e
Move pmePpCommGpu reset outside do_md

Some tests (at least the transformAtoB freeenergy test) were not
previously executing this code block to explicitly destroy the PME-PP
GPU object, causing a crash when the smart pointer is automatically
destroyed later after the GPU context is no longer available.

Change-Id: I107832900d2230a926e00744f913c76e998eacf6
src/gromacs/mdrun/md.cpp
src/gromacs/mdrun/runner.cpp