From d060341168ab9082649f813fc3727fb65f08d3cd Mon Sep 17 00:00:00 2001 From: KANAMORI Issaku Date: Fri, 16 Oct 2020 21:39:17 +0900 Subject: [PATCH] add an error check for Parameters.StartingType --- Grid/qcd/hmc/GenericHMCrunner.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Grid/qcd/hmc/GenericHMCrunner.h b/Grid/qcd/hmc/GenericHMCrunner.h index c2443dd0..98e8175a 100644 --- a/Grid/qcd/hmc/GenericHMCrunner.h +++ b/Grid/qcd/hmc/GenericHMCrunner.h @@ -159,6 +159,13 @@ private: Resources.GetCheckPointer()->CheckpointRestore(Parameters.StartTrajectory, U, Resources.GetSerialRNG(), Resources.GetParallelRNG()); + } else { + // others + std::cout << GridLogError << "Unrecognized StartingType\n"; + std::cout + << GridLogError + << "Valid [HotStart, ColdStart, TepidStart, CheckpointStart]\n"; + exit(1); } Smearing.set_Field(U);