ports/cad/netgen/files/patch-ngsolve_comp_postproc.cpp
Thierry Thomas db06906eac - Unbreak with gcc-4.2 (some patches from the author, some inspired from
Debian);

- Add IGES and STEP support with OpenCascade.
2007-05-30 19:21:11 +00:00

21 lines
681 B
C++

--- ngsolve/comp/postproc.cpp.orig
+++ ngsolve/comp/postproc.cpp
@@ -9,6 +9,7 @@
*/
#include <comp.hpp>
+#include <fem.hpp>
namespace ngcomp
{
@@ -274,8 +275,8 @@
if (dimflux > 1)
{
FlatMatrix<SCAL> elmat(dnumsflux.Size(), lh);
- dynamic_cast<const BlockBilinearFormIntegrator&> (fluxbli)
- . Block() . AssembleElementMatrix (felflux, eltrans, elmat, lh);
+ BlockBilinearFormIntegrator const& fluxbli_ref = dynamic_cast<const BlockBilinearFormIntegrator&> (fluxbli);
+ fluxbli_ref . Block() . AssembleElementMatrix (felflux, eltrans, elmat, lh);
CholeskyFactors<SCAL> invelmat(elmat);
FlatVector<SCAL> hv1(dnumsflux.Size(), lh);