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...) >> >> 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?
This didn't help, I'm afraid. Also, Roy's suggestion was not true. Thank you anyway. 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
