]> https://gitweb.dealii.org/ - dealii.git/commitdiff
silence warning triggered by trilinos
authorLei Qiao <qiaol618@gmail.com>
Wed, 13 May 2015 00:27:59 +0000 (19:27 -0500)
committerLei Qiao <qiaol618@gmail.com>
Wed, 13 May 2015 15:20:49 +0000 (10:20 -0500)
examples/step-33/step-33.cc

index 991cb80db019cb16bbf3d88622b69750697e48b6..8b9004ad2010848cd9fc6fc158c44bf40f919bb0 100644 (file)
 
 // Sacado is the automatic differentiation package within Trilinos, which is
 // used to find the Jacobian for a fully implicit Newton iteration:
+// Trilinos::Sacado (at least until version 11.10.2) package will trigger
+// warnings when compiling this file. Since we are not responsible for this,
+// we just suppress the warning by wrapping the <code>#include</code>
+// directive into a pair of macros that simply suppress these warnings:
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <Sacado.hpp>
-
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 // And this again is C++:
 #include <iostream>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.