> Uh, in the code, we have > const Subscriptor* quadrature_base_pointer = &quadrature; > ... > Assert (dynamic_cast<const Quadrature<dim>*> > (quadrature_base_pointer) != 0, > ExcInternalError()); > cell_quadrature > = static_cast<const Quadrature<dim>*> > (quadrature_base_pointer); > > So quadrature_base_pointer is a Subscriptor*. The assert checks that it > really is a pointer to the Subscriptor base class of Quadrature, and after > so checking we use the static case to get the Quadrature. What do you > suggest to do here?
The Subscriptor works fine, but the errors occur in the Assert (dynamic_cast<...>...) part. My "solution" (quotes necessary) was to replace the dynamic_cast with static_cast. This is not a real solution though, merely a work-around for already working code; we really have no idea the validity of the cast (if we did, the Assert would be unnecessary).... I don't really know what the underlying problem is, but the dynamic_cast's such as this one give problems on Mac OS 10.6. I'm definitely open to any other ideas. >> This is the same >> problem Pietro had an a previous mail. > > I seem to suffer from amnesia -- can you point me to his mail in which he > had this problem? Sorry I didn't reply to the already opened issue, but I'm having problems getting the mailing list emails through. http://www.mail-archive.com/[email protected]/msg00916.html -Scott _______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
