Hi
I'm having the same issues on my mac after upgrading to Mac OS 10.6.
So for example when attempting to run step-21:
macs-mac:step-21 andrewmcbride$ bash
bash-3.2$ make run
============================ Running step-21
Number of active cells: 1024
Number of degrees of freedom: 4160 (2112+1024+1024)
--------------------------------------------------------
An error occurred in line <807> of file <source/fe/fe_system.cc> in
function
void dealii::FESystem<dim, spacedim>::compute_fill(const
dealii::Mapping<dim, spacedim>&, const typename
dealii::Triangulation<dim, spacedim>::cell_iterator&, unsigned int,
unsigned int, const dealii::Quadrature<dim_1>&,
dealii::CellSimilarity::Similarity, typename dealii::Mapping<dim,
spacedim>::InternalDataBase&, typename dealii::Mapping<dim,
spacedim>::InternalDataBase&, dealii::FEValuesData<dim, spacedim>&)
const [with int dim_1 = 2, int dim = 2, int spacedim = 2]
The violated condition was:
dynamic_cast<const Quadrature<dim> *>(quadrature_base_pointer) != 0
The name and call sequence of the exception was:
ExcInternalError()
Additional Information:
(none)
It may have something to do with the use of gcc 4.2.1 under snow
leopard.
Andrew
On 22 Nov 2009, at 4:27 AM, Scott T. Miller wrote:
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
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii