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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: roenby
Forum: OpenFOAM Bugs June 3, 2015, 05:47
Replies: 4
Views: 2,159
Posted By roenby
Yes, hence my comment in brackets: "(with an...

Yes, hence my comment in brackets: "(with an appropriately guessed initial size)".

If for instance you know that your pointField/DynamicList<point> will be a subset of the points of a particular...
Forum: OpenFOAM Bugs June 3, 2015, 05:07
Replies: 4
Views: 2,159
Posted By roenby
Thanks a lot for that useful reply, alexeym! ...

Thanks a lot for that useful reply, alexeym!

I was not aware that appending to vectorFields and pointFields copied the whole field into new memory.

The right thing to do in my particular case...
Forum: OpenFOAM Bugs June 3, 2015, 03:20
Replies: 4
Views: 2,159
Posted By roenby
Wrong behaviour when appending vector to vectorField?

This code:

vectorField test;
vector t1(1.0,2.0,3.0);
test.append(t1);
vector& t2 = test[0];
test.append(t2);
Info << "test = " << test << endl;

results in the following output:
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -4. The time now is 00:34.