Modular simulator: Allow for nullptr in element list helper
authorPascal Merz <pascal.merz@me.com>
Tue, 28 Jan 2020 21:00:43 +0000 (14:00 -0700)
committerPascal Merz <pascal.merz@colorado.edu>
Fri, 31 Jan 2020 17:35:47 +0000 (18:35 +0100)
commita417aac3d3dd492bc5581c73b8b0ddcc3868f44f
treeb63fd680dc7a61585936020c4d89fde104c60eaf
parent37563a1ddbb0f898a3a3c7768babdd77c413a3c5
Modular simulator: Allow for nullptr in element list helper

This moves the responsibility for avoiding nullptr in the element
call and ownership lists from the algorithm building to the storage
helper convenience functions. This will simplify the builders by
reducing the number of conditions that need to be checked.

Change-Id: Ic8428837291f4208c9380bc15092fd6b5a5fda6d
src/gromacs/modularsimulator/modularsimulator.h