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 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: akidess
Forum: OpenFOAM Programming & Development December 5, 2013, 05:34
Replies: 8
Views: 2,420
Posted By akidess
On line 330 of the code you posted a new object...

On line 330 of the code you posted a new object of GeometricField<> is allocated and it's pointer is passed on to the constructor of tmp<>:...
Forum: OpenFOAM Programming & Development December 5, 2013, 04:21
Replies: 8
Views: 2,420
Posted By akidess
I figured you would after getting this far, but...

I figured you would after getting this far, but the next guy with the same question may not :)

tmp<GeometricField<scalar, PatchField, GeoMesh> > tMag stores a pointer to a GeometricField<scalar,...
Forum: OpenFOAM Programming & Development December 5, 2013, 03:35
Replies: 8
Views: 2,420
Posted By akidess
224* return *ptr_; * What does this line...

224* return *ptr_;


* What does this line do?

It dereferences the pointer stored in the tmp<> object, and returns the dereferenced pointer.

* What happens if you dereference a pointer...
Forum: OpenFOAM Programming & Development December 4, 2013, 08:22
Replies: 8
Views: 2,420
Posted By akidess
The ()-operator strips the object from it's...

The ()-operator strips the object from it's tmp-"shell", so the following call to surfaceSum leads to a different method, namely one that is called when a GeometricField is passed:...
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -4. The time now is 12:58.