From c355629ec8f733bddfc510aa1a1f6cce4ae8352d Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sun, 15 Mar 2020 11:46:36 -0500 Subject: [PATCH] examples/step-69: use std::atomic::load() This fixes a compilation issue with clang-4 Closes: #9665 --- examples/step-69/step-69.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/step-69/step-69.cc b/examples/step-69/step-69.cc index 49062a7540..6d07c5a500 100644 --- a/examples/step-69/step-69.cc +++ b/examples/step-69/step-69.cc @@ -2064,9 +2064,11 @@ namespace Step69 // This is a good point to verify that the computed // tau_max is indeed a valid floating point number. - AssertThrow(!std::isnan(tau_max) && !std::isinf(tau_max) && tau_max > 0., - ExcMessage("I'm sorry, Dave. I'm afraid I can't " - "do that. - We crashed.")); + AssertThrow( + !std::isnan(tau_max.load()) && !std::isinf(tau_max.load()) && + tau_max.load() > 0., + ExcMessage( + "I'm sorry, Dave. I'm afraid I can't do that. - We crashed.")); } // Step 3: Perform update. -- 2.39.5