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

Dictionaryclear does not work as expected

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 18, 2007, 14:21
Default Description: dictionary.clear(
  #1
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
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:

Before
{
nix 23;
}

After
{
}

--> 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 ""
Final
{
}

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

Before
{
nix 23;
}

After
{
}

Final
{
nix 24;
}


Possible resolution would be this patch:
dictionary.clear.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
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
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

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
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 10:00.