CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Hanging pointer

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 9, 2006, 08:41
Default Hello, I have a problem reco
  #1
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 8
fabianpk is on a distinguished road
Hello,
I have a problem reconstructing parallel cases, and I do not use any cyclic boundaries. I have a wedge mesh, with wall, wedge, symmetryPlane and patch as boundaries. When I try to reconstructPar I get:


Reconstructing volScalarFields

rho


--> FOAM FATAL ERROR : hanging pointer, cannot dereference

From function PtrList::operator[] const
in file /home/dm2/henry/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/PtrListI.H at line 76.

This just turned up one day as I was reconstructing a mesh. I use uncompressed, binary, but I don't think this matters because the error even turns up for the 0 time directory.

/Fabian
fabianpk is offline   Reply With Quote

Old   January 9, 2006, 09:58
Default Wedges and cyclics are quite s
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
Wedges and cyclics are quite similar to each other. I imagine the bug fix posted in the bug forum will take care of your problem.
eugene is offline   Reply With Quote

Old   January 10, 2006, 03:01
Default Unfortunately it did not work,
  #3
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 8
fabianpk is on a distinguished road
Unfortunately it did not work, the only difference is taht the reference to PtrListI.H refers to the one in my home directory and not the one in /home/dm2/henry

/Fabian
fabianpk is offline   Reply With Quote

Old   January 10, 2006, 05:24
Default Can you report it as a bug and
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Can you report it as a bug and add a simple testcase?
mattijs is offline   Reply With Quote

Old   January 10, 2006, 06:38
Default Yes, here's a wedge if I decom
  #5
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 8
fabianpk is on a distinguished road
Yes, here's a wedge if I decompose this using decomposePar, and then try to reconstruct it, I get the error. So I don't have to create some new data to do it.

http://www.tfd.chalmers.se/~f98faka/...ngPoint.tar.gz

/Fabian
fabianpk is offline   Reply With Quote

Old   January 10, 2006, 06:57
Default Reproduced it. You've got a
  #6
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
Reproduced it.

You've got a patch called axis with zero faces in it in the original mesh and the code does not handle it. For my taste, you should get rid of the zero-sized patch because you don't need it.

Hrv

#4 0x4053b75c in Foam::error::abort (this=0x40b31720) at error.C:224
#5 0x0806dbfe in Foam::operator<<> (os=@0x8105650, m={fPtr_ = {__pfn = 0x4053b4ca <foam::error::abort()>, __delta = 0}, err_ = @0x40b31720}) at errorManip.H:85
#6 0x08083d32 in Foam::PtrList<foam::fvpatchfield<double> >::operator[] (this=0xbf8dff70, i=5) at PtrListI.H:76
#7 0x0808d631 in GeometricBoundaryField (this=0x9510f64, bmesh=@0xbf8e0a94, field=@0x9510f10, ptfl=@0xbf8dff70) at GeometricBoundaryField.C:200
#8 0x0809ef47 in GeometricField (this=0x9510ed8, io=@0xbf8dfff8, mesh=@0xbf8e01f8, ds=@0x950fc60, iField=@0xbf8dff7c, ptfl=@0xbf8dff70) at GeometricField.C:277
#9 0x0809fbb6 in Foam::geometricFvFieldReconstructor::reconstructFv VolumeField<double> (this=0xbf8e0f14, fieldIoObject=@0x950f648)
at geometricFvFieldReconstructorReconstructFields.C:2 24
#10 0x0809fe6d in Foam::geometricFvFieldReconstructor::reconstructFv VolumeFields<double> (this=0xbf8e0f14, objects=@0xbf8e0ec0)
at geometricFvFieldReconstructorReconstructFields.C:4 64
#11 0x0807936a in main (argc=3, argv=0xbf8e14b4) at reconstructPar.C:241
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   January 10, 2006, 08:10
Default You mean that the axis patch o
  #7
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 8
fabianpk is on a distinguished road
You mean that the axis patch of a wedge should not be set and just left empty?

/Fabian
fabianpk is offline   Reply With Quote

Old   January 10, 2006, 08:32
Default Yes - I've deleted the axis pa
  #8
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
Yes - I've deleted the axis patch from the mesh before the decomposition and it works.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   January 28, 2011, 11:29
Default
  #9
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
Hi eugune, in my case I use the cyclic boundaries. Now I meet the same problem "... hanging pointer, cannot dereference ...", you think, what should I do? Please help out.
sandy is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FATAL ERROR hanging pointer cannot dereference tsencic OpenFOAM Running, Solving & CFD 3 December 12, 2013 05:18
Hanging Elements Dipl.-Ing. Jayadi Lukito CFX 0 January 29, 2008 04:18
postprocessing keeps hanging leo FLUENT 1 October 22, 2007 09:16
Accessing a pointer away from current pointer shephali shrimali FLUENT 0 May 10, 2007 07:54
hanging fan Mavinakere. FLUENT 3 August 3, 2003 22:34


All times are GMT -4. The time now is 04:51.