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

Search Results

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

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: tomislav_maric
Forum: OpenFOAM Programming & Development October 28, 2011, 16:17
Replies: 12
Views: 2,568
Posted By tomislav_maric
Well, right now I've coded everything with...

Well, right now I've coded everything with DynamicList, and it seems to be working with O.K. speed. I don't think I'll touch this untill the coupling with the CFD solution... that's something that...
Forum: OpenFOAM Programming & Development October 28, 2011, 15:58
Replies: 12
Views: 2,568
Posted By tomislav_maric
If there is no way for me to guess the size of...

If there is no way for me to guess the size of the list, which is happening actually in what I'm trying to code around every corner, then it will always re-create the list. If I do this for 10-20% of...
Forum: OpenFOAM Programming & Development October 28, 2011, 15:38
Replies: 12
Views: 2,568
Posted By tomislav_maric
Hi Sandeep, I didn't say it was "just a...

Hi Sandeep,

I didn't say it was "just a simple wrapper around List", I said:

"
DynamicList is nothing more than a wrapper for List<T> when it comes to expanding the storage."

and that's,...
Forum: OpenFOAM Programming & Development October 28, 2011, 10:02
Replies: 12
Views: 2,568
Posted By tomislav_maric
Hi Hisham: that feeling was wrong for the...

Hi Hisham:

that feeling was wrong for the both of us. It seems that the DynamicList is nothing more than a wrapper for List<T> when it comes to expanding the storage.

If you take a look at...
Forum: OpenFOAM Programming & Development October 27, 2011, 10:31
Replies: 12
Views: 2,568
Posted By tomislav_maric
Will this not be expensive because of the memory...

Will this not be expensive because of the memory copying taking place?

T* nv = new T[label(newSize)];

From List.C:setSize... append will do the same becaues it is a wrapper for setSize. There...
Showing results 1 to 5 of 5

 
Forum Jump

All times are GMT -4. The time now is 19:51.