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 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: mlaurita
Forum: OpenFOAM Programming & Development September 25, 2013, 09:19
Replies: 6
Views: 4,211
Posted By mlaurita
My mistake... a look at PtrList.H reveals that...

My mistake... a look at PtrList.H reveals that the operator [] returns a reference to the list element, not a pointer, so I think you could do something like:

ks[1].internalField[cellI] = 1

or...
Forum: OpenFOAM Programming & Development September 24, 2013, 15:03
Replies: 6
Views: 4,211
Posted By mlaurita
What are you trying to do with the line...

What are you trying to do with the line ks[1]=1.0? I'm not an expert on PtrLists, but I believe that ks[1] is a pointer to a volScalarField, so you can't just assign a value to it.

For example, if...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 06:09.