[dune-pdelab] Clang and stokesdg_vecfem.hh

Christoph GrĂ¼ninger christoph.grueninger at iws.uni-stuttgart.de
Mon Sep 17 23:21:13 CEST 2012


Hi Christian,
sorry for my mail which was too brief.
The const int M hides the template parameter M. I renamed the variable
to M_, I could not think of a better name for both N and M_.

The complete method clearly shows the problem:

template<class M, class R>
static void add_compute_flux(const M & du, const R & n, R & result)
{
  const int N = du.N();
  const int M = du.M();
  for(int r=0; r<N; ++r)
    for(int c=0; c<M; ++c)
      result[r] += du[r][c] * n[c];
}

Bye
Christoph




More information about the dune-pdelab mailing list