On Wed, Mar 9, 2011 at 10:38 AM, Roy Stogner <[email protected]>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
>>> <[email protected]> wrote:
>>>
>>>> Dear libMesh team,
>>>>
>>>> Consider the following lines:
>>>>
>>>> TransientLinearImplicitSystem& tempSystem =
>>>> equation_systems.add_system<TransientLinearImplicitSystem>("Temperature");
>>>>
>>>> equation_systems.get_system<TransientLinearImplicitSystem>("Temperature");
>>>>
>>>> That should work, shouldn't it?  It actually works in a test code.
>>>> However, in my application, it gives:
>>>>
>>>> ERROR: cannot convert system "Temperature" to requested type!
>>>> [0]
>>>> /home/tim/fem-libs/libMesh/libmesh-svn/libmesh//include/systems/equation_systems.h,
>>>> line 677, compiled Mar  9 2011 at 08:40:37
>>>> terminate called after throwing an instance of 'libMesh::LogicError'
>>>>   what():  Error in libMesh internal logic
>>>>
>>>> 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 works well
>>>> e.g. for LinearImplicitSystem.  Also, the problem occurs only on my
>>>> local desktop computer, not on the cluster.  (Actually I only noticed
>>>> this problem because I ran my application locally to track down a
>>>> different bug...)
>>>>
>>>
> Okay, one more thought: is it possible your local compiler flags have
> RTTI disabled?
> ---
> Roy
>

Shot in the dark here, but I don't suppose your desktop is a Mac and you
have GLIBCXX_DEBUG flags set? I ran into this problem at some point on my
mac laptop. I have to give up on the "debug" builds, although I think David
Andrs might have found a workaround at some point. I don't remember for sure
though. Perhaps he can chime in on this if indeed it's a mac gcc issue.
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to