CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Bugs

Dictionaryclear does not work as expected

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

LinkBack Thread Tools Display Modes
Old   October 18, 2007, 14:21
Default Description: dictionary.clear(
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,034
Rep Power: 43
gschaider will become famous soon enoughgschaider will become famous soon enough
Description: dictionary.clear() does not work as expected because it defaults to ILList.clear()
Version: 1.4.1 (but propably any)

When trying to run this little program dictionaryClear.C it produces this output:

nix 23;


--> FOAM Warning :
From function dictionary::add(entry* ePtr)
in file db/dictionary/dictionary.C at line 51
Reading ""
attempt to add an entry already in dictionary ""

although the expected output (in my opinion) would be:

nix 23;


nix 24;

Possible resolution would be this patch:
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 18, 2007, 14:49
Default Yes your fix is correct, I wil
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 15
henry is on a distinguished road
Yes your fix is correct, I will include it in the next release.
henry is offline   Reply With Quote


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
UDF Source terms not producing expected results... Emmanuel Resch FLUENT 0 July 31, 2008 14:55
FOAM FATAL IO ERROR expected btrueb or bfalseb found yes david_flo1 OpenFOAM Bugs 0 January 4, 2008 16:16
why CFX help can't work? prayskyer CFX 5 December 17, 2006 17:15
void udf function expected Paulina FLUENT 1 October 18, 2003 12:39
CFD JOBS and Expected Salary.... Noel Harrison Main CFD Forum 11 November 22, 2000 08:15

All times are GMT -4. The time now is 03:30.