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

User defined classes error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 4, 2010, 03:36
Default User defined classes error
  #1
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 6
tonyuprm is on a distinguished road
Hi all,

I created a class which imposes body forces on my domain and inserted it into the main code for the solver. The code compiles an runs without that class being included. When I do include it, it compiles, but when I try to run it I get the following error:

*** glibc detected *** ABLPisoFoam.1.2.w: corrupted double-linked list: 0x000000001c01b240 ***

"ABLPisoFoam.1.2.w" is my solver

what does this message mean? Thanks
tonyuprm is offline   Reply With Quote

Old   December 4, 2010, 10:35
Default
  #2
New Member
 
Tino
Join Date: Dec 2010
Posts: 3
Rep Power: 5
tkrks is an unknown quantity at this point
http://tinyurl.com/3699b76

Openfoam has errors itself. Do we also have to explain user defined errors?

Tino
tkrks is offline   Reply With Quote

Old   December 4, 2010, 16:10
Default
  #3
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 6
tonyuprm is on a distinguished road
Please avoid this kind of comments on this forum Tino.




The code will not show this error when running in parallel. Maybe this is a memory issue?

Thanks,

Tony
tonyuprm is offline   Reply With Quote

Old   December 4, 2010, 17:21
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,510
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings to all!

Tony, although Tino did make a harsh comment, he does have a point: with such limited information, we would have to do the same you should Tony, i.e., Google it
And if it were something related to OpenFOAM's code itself, a few hints on which tutorial case it breaks with, could also help us help you, because we would have access to the very same code.

By following Tino's link ("Let Me Google That For You" is really one of those helpfully hilarious sites ), the very first hit indicates two things:
  1. "Corrupted double-linked list" is commonly related to pointers that point to freed memory or memory out of bounds of the allocated space;
  2. Valgrind is your friend! Or at least, can be your friend, if you learn how to use it.
Personally, I've never used Valgrind, so it's not my friend yet either, but since Eclipse+gdb or "old school isolate and conquer" debugging usually get me to the bug itself, I've never felt the need to resort to it.

Working in parallel mode but not in serial, it's pretty much as likely that the reverse being true with some other simulation case. Just try changing your mesh to have 1 more cell in each direction and the bug might hide itself entirely or reveal itself on both runs!

You might also want to check out these wiki pages:
Best regards and good luck!
Bruno

Last edited by wyldckat; December 4, 2010 at 17:24. Reason: removed link to the Boroli user
wyldckat 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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 42 May 14, 2012 21:48
Accessing phi from a fvPatchField at same patch johndeas OpenFOAM 1 September 13, 2010 21:23
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 11:23
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31


All times are GMT -4. The time now is 17:32.