[Dune-devel] [Dune-Commit] [Commit] dune-grid - ed03fda: [YaspGrid][warning] remove initialized after warning.

Jö Fahlke jorrit at jorrit.de
Wed Jul 1 16:27:32 CEST 2015


@Carsten: could you apply this patch to the release?  Robert did not mark it
  for inclusion, but it fixes some warnings that users should not be exposed to.

Regards,
Jö.

Am Wed,  1. Jul 2015, 13:10:03 +0200 schrieb Robert K:
> Date: Wed, 01 Jul 2015 13:10:03 +0200
> From: Robert K <robertk at posteo.org>
> To: dune-commit at dune-project.org
> Subject: [Dune-Commit] [Commit] dune-grid - ed03fda: [YaspGrid][warning]
>  remove initialized after warning.
> 
> New commit, appeared at Wed Jul  1 13:10:03 2015 +0200
> as part of the following ref changes:
> 
>     branch refs/heads/master    updated from 17b7e5f -> ed03fda
> 
> Browsable version: http://cgit.dune-project.org/repositories/dune-grid/commit/?id=ed03fda5a0455964e92315282d089b69dd6c7f2b
> 
> ======================================================================
> 
> commit ed03fda5a0455964e92315282d089b69dd6c7f2b
> Author: Robert K <robertk at posteo.org>
> Date:   Wed Jul 1 13:09:43 2015 +0200
> 
>     [YaspGrid][warning] remove initialized after warning.
> 
>  dune/grid/yaspgrid.hh | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)
> 
> 
> 
> diff --git a/dune/grid/yaspgrid.hh b/dune/grid/yaspgrid.hh
> index ced8f7c..4e53ef1 100644
> --- a/dune/grid/yaspgrid.hh
> +++ b/dune/grid/yaspgrid.hh
> @@ -742,8 +742,8 @@ namespace Dune {
>                CollectiveCommunicationType comm = CollectiveCommunicationType(),
>                const YLoadBalance<dim>* lb = defaultLoadbalancer())
>        : ccobj(comm), _torus(comm,tag,s,lb), leafIndexSet_(*this),
> -       _periodic(periodic), _coarseSize(s), _overlap(overlap),
> -        keep_ovlp(true), adaptRefCount(0), adaptActive(false), _L(L)
> +        _L(L), _periodic(periodic), _coarseSize(s), _overlap(overlap),
> +        keep_ovlp(true), adaptRefCount(0), adaptActive(false)
>      {
>        // check whether YaspGrid has been given the correct template parameter
>        static_assert(is_same<Coordinates,EquidistantCoordinates<ctype,dim> >::value,
> @@ -802,8 +802,9 @@ namespace Dune {
>                CollectiveCommunicationType comm = CollectiveCommunicationType(),
>                const YLoadBalance<dim>* lb = defaultLoadbalancer())
>        : ccobj(comm), _torus(comm,tag,s,lb), leafIndexSet_(*this),
> -       _periodic(periodic), _coarseSize(s), _overlap(overlap),
> -        keep_ovlp(true), adaptRefCount(0), adaptActive(false), _L(upperright - lowerleft)
> +        _L(upperright - lowerleft),
> +        _periodic(periodic), _coarseSize(s), _overlap(overlap),
> +        keep_ovlp(true), adaptRefCount(0), adaptActive(false)
>      {
>        // check whether YaspGrid has been given the correct template parameter
>        static_assert(is_same<Coordinates,EquidistantOffsetCoordinates<ctype,dim> >::value,
> @@ -964,7 +965,7 @@ namespace Dune {
>                int overlap,
>                const YLoadBalance<dim>* lb = defaultLoadbalancer())
>        : ccobj(comm), _torus(comm,tag,s,lb), leafIndexSet_(*this),
> -        keep_ovlp(true), adaptRefCount(0), adaptActive(false), _L(L)
> +         _L(L), keep_ovlp(true), adaptRefCount(0), adaptActive(false)
>      {
>        _periodic = periodic;
>        _levels.resize(1);
> 
> _______________________________________________
> Dune-Commit mailing list
> Dune-Commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-commit
> 

-- 
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster
Tel: +49 251 83 35146 Fax: +49 251 83 32729

Software is like sex; it's better when it's free.
-- Linus Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20150701/f1dce32d/attachment.sig>


More information about the Dune-devel mailing list