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 Kroeger 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...)
>
> Any ideas are welcome.
>
> Best Regards,
>
> Tim
>
> -- 
> Dr. Tim Kroeger
> CeVis -- Center of Complex Systems and Visualization
> University of Bremen              [email protected]
> Universitaetsallee 29             [email protected]
> D-28359 Bremen                            Phone +49-421-218-59246
> Germany                                   Fax   +49-421-218-59277
>
> ------------------------------------------------------------------------------
> 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
>

------------------------------------------------------------------------------
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