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

Memory consumption in oodles

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 19, 2006, 08:30
Default yes, backward gives me the sam
  #41
Member
 
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 8
melanie is on a distinguished road
yes, backward gives me the same... (I just tried this morning)
melanie is offline   Reply With Quote

Old   June 22, 2006, 13:26
Default Hi Melanie, there is a bug
  #42
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Hi Melanie,

there is a bug in PtrList::transfer in 1.3 which was causing some memory to be leaked (if READ_IF_PRESENT was used)

Replace OpenFOAM/containers/Lists/PtrList/PtrList.C with attached version.


mattijs is offline   Reply With Quote

Old   June 22, 2006, 13:29
Default You'll have to recompile every
  #43
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
You'll have to recompile everything (well probably not everything but I cannot be bothered to find out what not)

Here is attachment again.

PtrList.C
mattijs is offline   Reply With Quote

Old   June 26, 2006, 02:38
Default Hi Mattijs, Thank you very mu
  #44
Member
 
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 8
melanie is on a distinguished road
Hi Mattijs,
Thank you very much.

I have though problems compiling pieces of the code that do not contain a Make directory: how can this be done ? I have tried ./Allwmake in ~/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/meshes/polyMesh/polyPatches/derivedPolyPatc hes/processorPolyPatch because I had to recompile this piece of code but OF does not find the program...

Could you also tell me how to recompile the whole OpenFOAM ?

Regarding the root cause of my error, I am glad that you found something; how can you explain that either Hrvoje nor you were able to reproduce the error, but just detect it ?

Thanks !
melanie
melanie is offline   Reply With Quote

Old   June 26, 2006, 06:31
Default Recompiling: you only need to
  #45
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,769
Rep Power: 21
hjasak will become famous soon enough
Recompiling: you only need to recompile the OpenFOAM library:

foamsrc
wmake libso


should do the trick.

If you want to recompile the whole thing, do:

foam
./Allwmake


This should already be described in a few places - in the future please search this site, read the documentation etc. because in my opinion this counts as a basic skill.

As for the error, it was found by Mattijs (thanks! - impressive work as usual) and he used a tool called valgrind. This instruments a layer above the operating system and follows memory allocaion, access and deallocation and based on that it will tell you what is going on. However, you need to know the code pretty well to interpret the messages and get it fixed...

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

Old   June 26, 2006, 07:02
Default Thanks Hrvoje, I am really
  #46
Member
 
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 8
melanie is on a distinguished road
Thanks Hrvoje,

I am really sorry, I don't want to waste your time, and I looked in the guides and wikki etc before asking; I was looking for a command that would compile just the library I needed, I didn't know I would have to compile ALL libraries each time; this was not clear for me, though now I've found the information in the User's Guide...

And regarding the error, I had tried to use valgrind as you suggested in another thread, but the version I had was not able to run on 64-bits executables... should I have switched to the 32-bits version of OF ? just to see how this tool works...

Thanks again and sorry...
melanie
melanie is offline   Reply With Quote

Old   June 30, 2006, 04:27
Default Hello, First I'd like to th
  #47
Member
 
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 8
melanie is on a distinguished road
Hello,

First I'd like to thank again Mattijs for working on my case; after the change, I didn't notice any improvement however... but the fix posted by Henri 2 days ago did solve the problem ! I don't have any more memory increase on my case.
So thank you very much to all developpers, you are doing a great job here !
melanie
melanie is offline   Reply With Quote

Old   February 21, 2008, 14:17
Default Hi melanie, which fix are y
  #48
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 8
panara is on a distinguished road
Hi melanie,

which fix are you refeering to? I think I have the same problem I am still using OF 1.3 do you think I have to switch to OF 1.4 to solve the problem?

Daniele
panara is offline   Reply With Quote

Old   February 24, 2008, 08:51
Default hi Daniele, regarding the f
  #49
Member
 
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 8
melanie is on a distinguished road
hi Daniele,

regarding the fix I do not remember, you should do a search on the forum with the date as mentioned in my message (should be 28th June 2006). But if you work with OF 1.4 for sure this fix should be implemented... unfortunately I did not try my case on OF 1.4

melanie
melanie is offline   Reply With Quote

Old   April 21, 2009, 11:40
Default
  #50
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 9
maka is on a distinguished road
I also need this fix that melanie talked about. I still use V1.3. There is no post by henry on 2006. I looked his page on cfd-online and went through all posts. If I missed something please tell me. Thanks.
maka 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
A question on DES oodles ivan_cozza OpenFOAM Running, Solving & CFD 2 November 17, 2008 10:33
electric resistance energy consumption nilay FLUENT 0 October 10, 2008 10:46
Oodles and more r2d2 OpenFOAM Running, Solving & CFD 10 September 23, 2007 01:54
Oodles vs turbFoam rolando OpenFOAM Running, Solving & CFD 9 June 4, 2007 05:42
transport-consumption problem giskard FLUENT 0 November 4, 2006 09:34


All times are GMT -4. The time now is 13:07.