[dune-pdelab] Clang and stokesdg_vecfem.hh

Christian Engwer christian.engwer at uni-muenster.de
Mon Sep 17 21:43:29 CEST 2012


Hi Christoph,

> I need this patch to make headerchecks work for PDELab with Clang.
> I'd like it, if you appy it.

could you be a little bit more elaborated about what the problem was?
Your patch might fix the issue, but is not nice, as now some variables
are with '_' and some without. Thus it would be good to understand
what the original probelm was.

Christian

> Greets
> Christoph
> 
> --- dune/pdelab/localoperator/stokesdg_vecfem.hh        (revision 2221)
> +++ dune/pdelab/localoperator/stokesdg_vecfem.hh        (working copy)
> @@ -579,9 +579,9 @@
>        static void add_compute_flux(const M & du, const R & n, R & result)
>        {
>          const int N = du.N();
> -        const int M = du.M();
> +        const int M_ = du.M();
>          for(int r=0; r<N; ++r)
> -          for(int c=0; c<M; ++c)
> +          for(int c=0; c<M_; ++c)
>              result[r] += du[r][c] * n[c];
>        }
> 
> _______________________________________________
> dune-pdelab mailing list
> dune-pdelab at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-pdelab
> 

-- 
Prof. Dr. Christian Engwer 
Institut für Numerische und Angewandte Mathematik
Fachbereich Mathematik und Informatik der Universität Münster
Einsteinstrasse 62
48149 Münster

E-Mail	christian.engwer at uni-muenster.de
Telefon	+49 251 83-35067
FAX		+49 251 83-32729




More information about the dune-pdelab mailing list