Re: [Libmesh-users] dynamic_cast fails

2011-03-14 Thread Tim Kroeger
On Thu, 10 Mar 2011, Tim Kroeger wrote: > I was now able to pinpoint the problem. (You know that I don't give up...) > Consider the attached example problem and add the following compiler option: > > -fvisibility=hidden > > Then, it will crash in the way I described. (I am using g++ versi

Re: [Libmesh-users] dynamic_cast fails

2011-03-10 Thread John Peterson
On Thu, Mar 10, 2011 at 7:02 AM, Roy Stogner wrote: > > On Thu, 10 Mar 2011, Tim Kroeger wrote: > >> I was now able to pinpoint the problem.  (You know that I don't give up...) >> Consider the attached example problem and add the following compiler option: >> >>       -fvisibility=hidden >> >> The

Re: [Libmesh-users] dynamic_cast fails

2011-03-10 Thread Cody Permann
I'm interested in seeing the example - it was stripped from the mailing list. Cody On Mar 10, 2011, at 7:02 AM, Roy Stogner wrote: > > On Thu, 10 Mar 2011, Tim Kroeger wrote: > >> I was now able to pinpoint the problem. (You know that I don't give up...) >> Consider the attached example probl

Re: [Libmesh-users] dynamic_cast fails

2011-03-10 Thread Roy Stogner
On Thu, 10 Mar 2011, Tim Kroeger wrote: > I was now able to pinpoint the problem. (You know that I don't give up...) > Consider the attached example problem and add the following compiler option: > > -fvisibility=hidden > > Then, it will crash in the way I described. (I am using g++ vers

Re: [Libmesh-users] dynamic_cast fails

2011-03-10 Thread Tim Kroeger
On Thu, 10 Mar 2011, Tim Kroeger wrote: On Wed, 9 Mar 2011, Roy Stogner wrote: On Wed, 9 Mar 2011, Tim Kroeger wrote: >>> which means that the dynamic_cast fails.  I can't find what is >>> different in my application from the test code.  I should mention that >>> this problem only occurs for

Re: [Libmesh-users] dynamic_cast fails

2011-03-09 Thread Tim Kroeger
On Wed, 9 Mar 2011, Roy Stogner wrote: > On Wed, 9 Mar 2011, Tim Kroeger wrote: > > >>> which means that the dynamic_cast fails.  I can't find what is > >>> different in my application from the test code.  I should mention that > >>> this problem only occurs for transient systems.  Everything wor

Re: [Libmesh-users] dynamic_cast fails

2011-03-09 Thread Paul T. Bauman
On Wed, Mar 9, 2011 at 10:38 AM, Roy Stogner wrote: > > > On Wed, 9 Mar 2011, Tim Kroeger wrote: > > On Wed, 9 Mar 2011, John Peterson wrote: >> >> On Wed, Mar 9, 2011 at 12:52 AM, Tim Kroeger >>> wrote: >>> Dear libMesh team, Consider the following lines: TransientLine

Re: [Libmesh-users] dynamic_cast fails

2011-03-09 Thread Roy Stogner
On Wed, 9 Mar 2011, Tim Kroeger wrote: On Wed, 9 Mar 2011, John Peterson wrote: On Wed, Mar 9, 2011 at 12:52 AM, Tim Kroeger wrote: Dear libMesh team, Consider the following lines: TransientLinearImplicitSystem& tempSystem = equation_systems.add_system("Temperature"); equation_systems.g

Re: [Libmesh-users] dynamic_cast fails

2011-03-09 Thread Tim Kroeger
On Wed, 9 Mar 2011, John Peterson wrote: > On Wed, Mar 9, 2011 at 12:52 AM, Tim Kroeger > wrote: >> Dear libMesh team, >> >> Consider the following lines: >> >> TransientLinearImplicitSystem& tempSystem = >> equation_systems.add_system("Temperature"); >> equation_systems.get_system("Temperature"

Re: [Libmesh-users] dynamic_cast fails

2011-03-09 Thread Roy Stogner
One very silly suggestion: is there a possibility that your code added a system named "Temperature" of a different type earlier than that add_system call? If it did then it wouldn't be your get_system call failing, it would be the add_system's get_system call. --- Roy On Wed, 9 Mar 2011, Tim Kro

Re: [Libmesh-users] dynamic_cast fails

2011-03-09 Thread John Peterson
On Wed, Mar 9, 2011 at 12:52 AM, Tim Kroeger wrote: > Dear libMesh team, > > Consider the following lines: > > TransientLinearImplicitSystem& tempSystem = > equation_systems.add_system("Temperature"); > equation_systems.get_system("Temperature"); > > That should work, shouldn't it?  It actually w

[Libmesh-users] dynamic_cast fails

2011-03-08 Thread Tim Kroeger
Dear libMesh team, Consider the following lines: TransientLinearImplicitSystem& tempSystem = equation_systems.add_system("Temperature"); equation_systems.get_system("Temperature"); That should work, shouldn't it? It actually works in a test code. However, in my application, it gives: ERROR: