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...)
>
> Any ideas are welcome.

My first impression is that it might be due to a "dirty" build of
libmesh, I'm guessing you have already tried 'make distclean' and
recompiling, though?

-- 
John

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