[Carpet] Assertion `leveltimes.at(ml).at(rl) == global_time' failed

Bruno Giacomazzo bgiacoma at aei.mpg.de
Fri May 16 13:40:57 CEST 2008


Erik,
 	I have received the following error in several runs after few 
iterations:

Assertion `leveltimes.at(ml).at(rl) == global_time' failed.

 	which I think is the assert in line 106 in Evolve.cc:

       // Ensure that all levels have consistent times
       {
         // This is dangerouse because it compares floating point
         // numbers for equality
         assert (cctkGH->cctk_time == global_time);
         for (int ml=0; ml<mglevels; ++ml) {
           for (int rl=0; rl<reflevels; ++rl) {
             int const do_every =
               ipow (mgfact, ml) * (maxtimereflevelfact / timereffacts.at(rl));
             if (cctkGH->cctk_iteration % do_every == 0) {
               // This is dangerouse because it compares floating point
               // numbers for equality
               assert (leveltimes.at(ml).at(rl) == global_time);


 	It's actually the first time I see this error. Can it be related 
to the recent changes you did to the development version of Carpet?

Cheers,
Bruno

-- 
Dr. Bruno Giacomazzo
Max Planck Institute for Gravitational Physics
Albert Einstein Institute
Am Muehlenberg 1
D-14476 Potsdam
Germany

Tel.  : +49 331 567 7183
Fax   : +49 331 567 7252
cell. : +49 173 826 4488
email : bgiacoma at aei.mpg.de

-------------------------------------------------
There are only 10 types of people in the world:
Those who understand binary, and those who don't
-------------------------------------------------


More information about the developers mailing list