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

User defined classes error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2010, 02:36
Default User defined classes error
  #1
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 15
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, 09:35
Default
  #2
New Member
 
Tino
Join Date: Dec 2010
Posts: 3
Rep Power: 14
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, 15:10
Default
  #3
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 15
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, 16:21
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 16:24. Reason: removed link to the Boroli user
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
Accessing phi from a fvPatchField at same patch johndeas OpenFOAM 1 September 13, 2010 20:23
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31


All times are GMT -4. The time now is 10:38.