]> https://gitweb.dealii.org/ - dealii.git/commit
Silence a warning. 94/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 18 Aug 2014 22:44:55 +0000 (17:44 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 18 Aug 2014 22:44:55 +0000 (17:44 -0500)
commit5769cb8760f05e77a37511d7781381a28dfaa209
treeb2a7740b847d00935557f7273ee87f58900a63ec
parent3c09716eceaa23ae74e9eda6feaecb6d511353d8
Silence a warning.

Some newer compilers kept warning about an out-of-bounds array access
in Point<1>::operator() but didn't indicate where exactly it came
from. This turned out to be in DataOutBase::write_eps(), a function
that is implemented only for dim==2 but was compiled also for dim==1
and dim==3 and contained this statement: 'points[vertex](1)'. The patch
reorganizes the code so that the function is only compiled for dim==2
and a more general specialization that does nothing but abort is used
for all other dimensions.
include/deal.II/base/data_out_base.h
source/base/data_out_base.cc

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.