From d18549c3ace3a210efe40e84156af2dcc34e5599 Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Fri, 4 Sep 2020 22:36:18 -0400
Subject: [PATCH] MagFieldUtils: Fix compilation with gcc10.

Need <cmath> for std::isnan.
---
 MagneticField/MagFieldUtils/src/MagFieldTestbedAlg.cxx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/MagneticField/MagFieldUtils/src/MagFieldTestbedAlg.cxx b/MagneticField/MagFieldUtils/src/MagFieldTestbedAlg.cxx
index 4c212670c62e..537786e22d98 100644
--- a/MagneticField/MagFieldUtils/src/MagFieldTestbedAlg.cxx
+++ b/MagneticField/MagFieldUtils/src/MagFieldTestbedAlg.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 */
 
 ///////////////////////////////////////////////////////////////////
@@ -39,12 +39,15 @@
 // performance test
 #include <time.h>
 #include <vector>
+#include <cmath> // isnan
 
 namespace {
 const double solenoidRadius = 1075.;
 const double solenoidZhalf = 2820.;
 }
 
+using std::isnan;
+
 ///////////////////////////////////////////////////////////////////
 // Public methods:
 ///////////////////////////////////////////////////////////////////
-- 
GitLab