Hi, I get the following error while trying to add an initialize function to a 
transientnonlinearImplicitsystem . Here is the code that I have . 
 _equation_system=  new EquationSystems(mesh);  
TransientNonlinearImplicitSystem & system =    
_equation_system->add_system<TransientNonlinearImplicitSystem> ("ch");    
system.nonlinear_solver->residual = compute_residual;  
system.nonlinear_solver->jacobian = compute_jacobian;  
system.attach_init_function(init_ch);
And this is the trace when init is called on the equationsystems object. 
Failed to convert N7libMesh6SystemE pointer to 
PN7libMesh15TransientSystemINS_20LinearImplicitSystemEEE
The N7libMesh6SystemE appears to be a 
N7libMesh15TransientSystemINS_23NonlinearImplicitSystemEEE
Stack frames: 11
0: 0   libmesh_dbg.0.dylib                 0x00000001009e0423 
libMesh::print_trace(std::ostream&) + 39
1: 1   libmesh_dbg.0.dylib                 0x00000001009dc84a 
libMesh::MacroFunctions::report_error(char const*, int, char const*, char 
const*) + 54
2: 2   example-dbg                         0x00000001008b8748 
libMesh::TransientSystem<libMesh::LinearImplicitSystem>* 
libMesh::libmesh_cast_ptr<libMesh::TransientSystem<libMesh::LinearImplicitSystem>*,
 libMesh::System>(libMesh::System*) + 368
3: 3   example-dbg                         0x00000001008b350d 
libMesh::TransientSystem<libMesh::LinearImplicitSystem>& 
libMesh::EquationSystems::get_system<libMesh::TransientSystem<libMesh::LinearImplicitSystem>
 >(std::string const&) + 267
4: 4   example-dbg                         0x00000001008a00d5 
init_ch(libMesh::EquationSystems&, std::string const&) + 268
5: 5   libmesh_dbg.0.dylib                 0x000000010105ff10 
libMesh::System::user_initialization() + 68
6: 6   libmesh_dbg.0.dylib                 0x000000010105848a 
libMesh::System::init() + 114
7: 7   libmesh_dbg.0.dylib                 0x0000000101020a12 
libMesh::EquationSystems::init() + 740
8: 8   example-dbg                         0x000000010089f45c main + 794
9: 9   libdyld.dylib                       0x00007fff8c93d5fd start + 1
10: 10  ???                                 0x0000000000000007 0x0 + 7
Any idea how I can fix this?Thanks, Subramanya 
                                          
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to