[Carpet] endless loop in bboxset.cc

Frank Löffler frank.loeffler at aei.mpg.de
Fri Apr 6 16:10:42 CEST 2007


Hi,

I have a problem with Carpet doing an endless loop and I try to understand
the code. So far, I feel a bit lost. Maybe someone here can help me.

The problem seems to be in CarpetLib/src/bboxset.cc in
void bboxset<T,D>::normalize ()
After the first call to that function, the first loop over the outermost
for-loop (dimension?) is still fine. However, the next one then loops
forever in the inner

for (typename bset::const_iterator si = bs.begin(); si != bs.end(); ++ si) {}

(but bs.size is 1)

I checked that the same loop using nbs before the swap of bs and nbs also
has that problem, so my guess would be that nbs might not be initialized
correctly during the first run. Could that be?

This using the Carpet version from
http://www.carpetcode.org/~darcs/carpet/ (the one, which Thomas uses for
his Integration builds) and is on an Alpha CPU machine with OpenMPI.
Runs using Carpet are fine.

thanks, Frank



More information about the developers mailing list