Re: [Libmesh-users] strange error probably a bug

2012-09-19 Thread Cody Permann
OK, I've finally had a chance to get back to investigating these weird erros that Ata reported. Using the link he helpfully found, I was able to construct a very small test case that fails on Mountain Lion (10.8) but works fine on my Snow Leopard box (10.6). There really is a demonstrable issue w

Re: [Libmesh-users] strange error probably a bug

2012-09-03 Thread Cody Permann
Sent from my evil iPhone On Sep 3, 2012, at 7:45 PM, Ataollah Mesgarnejad wrote: > > On Sep 3, 2012, at 7:41 PM, Roy Stogner wrote: > >> >> On Mon, 3 Sep 2012, Ataollah Mesgarnejad wrote: >> >>> http://stackoverflow.com/questions/6112362/explicit-instantiation-of-a-templated-class-and-dynamic-c

Re: [Libmesh-users] strange error probably a bug

2012-09-03 Thread Ataollah Mesgarnejad
On Sep 3, 2012, at 7:41 PM, Roy Stogner wrote: > > On Mon, 3 Sep 2012, Ataollah Mesgarnejad wrote: > >> http://stackoverflow.com/questions/6112362/explicit-instantiation-of-a-templated-class-and-dynamic-cast-in-a-shared-library >> >> way over my head here but I think the second answer is the

Re: [Libmesh-users] strange error probably a bug

2012-09-03 Thread Roy Stogner
On Mon, 3 Sep 2012, Ataollah Mesgarnejad wrote: > http://stackoverflow.com/questions/6112362/explicit-instantiation-of-a-templated-class-and-dynamic-cast-in-a-shared-library > > way over my head here but I think the second answer is the key. This is interesting. I think the discussion of the C+

Re: [Libmesh-users] strange error probably a bug

2012-09-03 Thread Cody Permann
Sent from my evil iPhone On Sep 3, 2012, at 5:35 PM, Ataollah Mesgarnejad wrote: I found this: http://stackoverflow.com/questions/6112362/explicit-instantiation-of-a-templated-class-and-dynamic-cast-in-a-shared-library way over my head here but I think the second answer is the key. Ata, this

Re: [Libmesh-users] strange error probably a bug

2012-09-03 Thread Cody Permann
Sent from my evil iPhone On Sep 3, 2012, at 5:26 PM, Roy Stogner wrote: > > On Mon, 3 Sep 2012, Ataollah Mesgarnejad wrote: > >> Yes I did. I'll try to dig a bit deeper and see where that null gets >> generated too. > > It's getting generated inside dynamic_cast inside libmesh_cast_ptr > inside

Re: [Libmesh-users] strange error probably a bug

2012-09-03 Thread Ataollah Mesgarnejad
I found this: http://stackoverflow.com/questions/6112362/explicit-instantiation-of-a-templated-class-and-dynamic-cast-in-a-shared-library way over my head here but I think the second answer is the key. PS: sorry for the double copy Roy. Ata On Sep 3, 2012, at 6:26 PM, Roy Stogner wrote: >

Re: [Libmesh-users] strange error probably a bug

2012-09-03 Thread Roy Stogner
On Mon, 3 Sep 2012, Ataollah Mesgarnejad wrote: > Yes I did. I'll try to dig a bit deeper and see where that null gets > generated too. It's getting generated inside dynamic_cast inside libmesh_cast_ptr inside get_system... the question is *why* it's getting generated. Does XCode screw up simpl

Re: [Libmesh-users] strange error probably a bug

2012-09-03 Thread Ataollah Mesgarnejad
On Sep 3, 2012, at 5:52 PM, Cody Permann wrote: > > > On Mon, Sep 3, 2012 at 4:36 PM, Roy Stogner wrote: > > On Mon, 3 Sep 2012, Ataollah Mesgarnejad wrote: > > > I updated to revision 5994 few days ago and now I get a strange error when > > I compile in debug mode when I try to get a poin

Re: [Libmesh-users] strange error probably a bug

2012-09-03 Thread Cody Permann
On Mon, Sep 3, 2012 at 4:36 PM, Roy Stogner wrote: > > On Mon, 3 Sep 2012, Ataollah Mesgarnejad wrote: > > > I updated to revision 5994 few days ago and now I get a strange error > when I compile in debug mode when I try to get a pointer to a system. > > Here is what happens for example for adapti

Re: [Libmesh-users] strange error probably a bug

2012-09-03 Thread Roy Stogner
On Mon, 3 Sep 2012, Ataollah Mesgarnejad wrote: > I updated to revision 5994 few days ago and now I get a strange error when I > compile in debug mode when I try to get a pointer to a system. > Here is what happens for example for adaptivity_ex5: > > Failed to convert N7libMesh6SystemE pointer t

[Libmesh-users] strange error probably a bug

2012-09-03 Thread Ataollah Mesgarnejad
Dear all, I updated to revision 5994 few days ago and now I get a strange error when I compile in debug mode when I try to get a pointer to a system. Here is what happens for example for adaptivity_ex5: Failed to convert N7libMesh6SystemE pointer to PN7libMesh15TransientSystemINS_20LinearImplic