From: Matthias Maier Date: Sun, 15 Mar 2020 16:46:36 +0000 (-0500) Subject: examples/step-69: use std::atomic::load() X-Git-Tag: v9.2.0-rc1~421^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9666%2Fhead;p=dealii.git examples/step-69: use std::atomic::load() This fixes a compilation issue with clang-4 Closes: #9665 --- 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.