Add checks for non-null log file pointer in AWH
commit1356e68d3ee882d7bb8a43a41649847a2196be00
authorViveca Lindahl <vivecalindahl@gmail.com>
Mon, 5 Mar 2018 18:31:20 +0000 (5 19:31 +0100)
committerViveca Lindahl <vivecalindahl@gmail.com>
Mon, 5 Mar 2018 21:52:02 +0000 (5 22:52 +0100)
tree214a7c2ee24e6388d84acd734dd3a1287bd92d84
parenta46c96c60c338b87d05e448c54bd84024ba00f06
Add checks for non-null log file pointer in AWH

Mdp-option 'awh1-equilibrate-histogram=yes' and certain run setups could
lead to a segmentation fault due to fplog being null.

Fixes #2436

Change-Id: I0110325a8624c9d434af5eeeccace29814d40f2d
src/gromacs/awh/biasstate.cpp
src/gromacs/awh/histogramsize.cpp