Skip to content

#293 grid-howto: wrong code in adaptivefinitevolume.cc

Metadata

Property Value
Reported by Karsten Michel (michel@mathematik.uni-freiburg.de)
Reported at May 10, 2007 14:46
Type Bug Report
Version Git (pre2.4) [autotools]
Operating System Unspecified / All
Closed by Robert K (robertk@posteo.org)
Closed at Jul 29, 2007 21:21
Closed in version 1.0
Resolution Fixed
Comment Fixed. Also uses DGF parser now.

Description

In the grid-howto, the file adaptivefinitevolume.cc contains really strange code:

  1. The timeloop finishes after one iteration
  2. In the timeloop the non-adaptive function evolve() is used (instead of finitevolumeadapt() )
  3. The function gnuplot() is defined but not used in the code (and also not explained in the pdf)

while (t<tend) { k++; evolve(grid,mapper,c,t,dt); return; t += dt; if (k%modulo==0) vtkout(grid,c,"concentration",k/modulo); std::cout << "s=" << grid.size(0) << " k=" << k << " t=" << t << " dt=" << dt << std::endl; // finitevolumeadapt(grid,mapper,c,lmin,lmax,k); }