I tried running
./adaptivity_ex2-dbg -init_timestep 0 -n_timesteps 5
./adaptivity_ex2-opt -init_timestep 0 -n_timesteps 5
in libmesh/examples/adaptivity/adaptivity0_ex2. The dbg version fails
in the libmesh_cast_ptr call
Failed to convert N7libMesh6SystemE pointer to
PN7libMesh15TransientSystemINS_20LinearImplicitSystemEEE
[0] /Users/jungholee/projects/sandbox/libmesh/include/base/libmesh_common.h,
line 346, compiled Mar 26 2012 at 23:08:07
terminate called throwing an exception
Program received signal SIGABRT, Aborted.
0x00007fff90912ce2 in __pthread_kill ()
(gdb) bt
#0 0x00007fff90912ce2 in __pthread_kill ()
#1 0x00007fff891097d2 in pthread_kill ()
#2 0x00007fff890faa7a in abort ()
#3 0x00007fff8fb3a7bc in abort_message ()
#4 0x00007fff8fb37fcf in default_terminate ()
#5 0x00007fff8bb1c1cd in _objc_terminate ()
#6 0x000000010016001d in libMesh::libmesh_terminate_handler () at libmesh.C:198
#7 0x00007fff8fb38001 in safe_handler_caller ()
#8 0x00007fff8fb3805c in std::terminate ()
#9 0x00007fff8fb39152 in __cxa_throw ()
#10 0x000000010002e029 in
libMesh::libmesh_cast_ptr<libMesh::TransientSystem<libMesh::LinearImplicitSystem>*,
libMesh::System> (oldvar=0x1091c1a60) at libmesh_common.h:346
#11 0x000000010002e2cb in
libMesh::EquationSystems::get_system<libMesh::TransientSystem<libMesh::LinearImplicitSystem>
> (this=0x7fff5fbfe430, name=@0x7fff5fbfd8d0) at
equation_systems.h:642
#12 0x0000000100004ad7 in init_cd (es=@0x7fff5fbfe430,
system_name=@0x1091c1b20) at adaptivity_ex2.C:471
#13 0x0000000100b67845 in libMesh::System::user_initialization
(this=0x1091c1a60) at system.C:1687
#14 0x0000000100b79ef2 in libMesh::System::init (this=0x1091c1a60) at
system.C:241
#15 0x0000000100b0f807 in libMesh::EquationSystems::init
(this=0x7fff5fbfe430) at equation_systems.C:120
#16 0x0000000100005d74 in main (argc=5, argv=0x7fff5fbff0b8) at
adaptivity_ex2.C:245
(gdb)
whereas the opt version seems to just pass over the libmesh_cast_ptr
call (see below). Has anyone experienced the same problem?
Jungho
(gdb) b equation_systems.h:642
Breakpoint 2 at 0x1000089c1: file equation_systems.h, line 642.
(gdb) r
Starting program:
/Users/jungholee/projects/sandbox/libmesh/examples/adaptivity/adaptivity_ex2/adaptivity_ex2-opt
-init_timestep 0 -n_timesteps 5
Reading symbols for shared libraries
++++++++++++++++++..++.....++++++++++++++++......................................................................................................
done
Usage:
/Users/jungholee/projects/sandbox/libmesh/examples/adaptivity/adaptivity_ex2/adaptivity_ex2-opt
-init_timestep 0
OR
/Users/jungholee/projects/sandbox/libmesh/examples/adaptivity/adaptivity_ex2/adaptivity_ex2-opt
-read_solution -init_timestep 26
Running:
/Users/jungholee/projects/sandbox/libmesh/examples/adaptivity/adaptivity_ex2/adaptivity_ex2-opt
-init_timestep 0 -n_timesteps 5
Mesh Information:
mesh_dimension()=2
spatial_dimension()=3
n_nodes()=6273
n_local_nodes()=6273
n_elem()=13650
n_local_elem()=13650
n_active_elem()=10240
n_subdomains()=1
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
Breakpoint 2,
libMesh::EquationSystems::get_system<libMesh::TransientSystem<libMesh::LinearImplicitSystem>
> (this=0x10a53bd3c, name=@0x7fff5fbfe1b8) at equation_systems.h:642
642 return *libmesh_cast_ptr<T_sys*>(pos->second);
(gdb) bt
#0
libMesh::EquationSystems::get_system<libMesh::TransientSystem<libMesh::LinearImplicitSystem>
> (this=0x10a53bd3c, name=@0x7fff5fbfe1b8) at equation_systems.h:642
#1 0x000000010000324b in init_cd (es=@0x7fff5fbfe810,
system_name=@0x10732332c) at adaptivity_ex2.C:471
#2 0x0000000100399592 in libMesh::EquationSystems::init
(this=0x10a53bd3c) at equation_systems.C:120
#3 0x0000000100003945 in main (argc=5, argv=0x7fff5fbff0b8) at
adaptivity_ex2.C:245
(gdb) f 0
#0
libMesh::EquationSystems::get_system<libMesh::TransientSystem<libMesh::LinearImplicitSystem>
> (this=0x10a53bd3c, name=@0x7fff5fbfe1b8) at equation_systems.h:642
642 return *libmesh_cast_ptr<T_sys*>(pos->second);
(gdb) l
637 << std::endl;
638 libmesh_error();
639 }
640
641 // Attempt dynamic cast
642 return *libmesh_cast_ptr<T_sys*>(pos->second);
643 }
644
645
646
(gdb) step
init_cd (es=@0x7fff5fbfe810, system_name=@0x108800000) at adaptivity_ex2.C:474
474 es.parameters.set<Real> ("time") = system.time = 0;
(gdb)
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users