CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   sampledSetsC evaluates the address of Pstreammaster as a bool (http://www.cfd-online.com/Forums/openfoam-bugs/62349-sampledsetsc-evaluates-address-pstreammaster-bool.html)

mwild December 23, 2008 12:18

Foam::sampledSets::checkFieldT
 
Foam::sampledSets::checkFieldTypes() evaluated the address of
Pstream::master() as a bool, instead of calling the function. See attached patch:



HTH

Michael

mwild December 23, 2008 12:22

Arrggh. The forum "died" when
 
Arrggh. The forum "died" when I tried to attach the patch, so try number 2:

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif 0001-FIX-.-sampledSets.C-evaluated-address-as-a-bool.patch

henry December 24, 2008 06:23

Thanks for the fix, I have app
 
Thanks for the fix, I have applied it to 1.5.x in our git repository

H

mwild January 7, 2009 10:01

The same bug is also here:
 
The same bug is also here:

src/sampling/sampledSurface/sampledSurfaces/sampledSurfaces.C:128

Michael

henry January 9, 2009 04:53

Thanks for the bug report, I h
 
Thanks for the bug report, I have fixed it in our 1.5.x git repository.

I have also run git-grep on the complete source tree and cannot find any further occurrences, please let me know if you find any others.

H

naveen January 9, 2009 05:03

HI EVERYBODY I AM F
 
HI EVERYBODY


I AM FACING DIFFICULT TO INSTALL OPENFOAM 1.4.1 VERSION IN MY SYSTEM.....CAN U PLEASE SEND ME THE PROCEDURE OF INSTALLING IT.... PLEASE DO THE NEEDFUL...

olesen January 9, 2009 05:10

Naveen, 1. Please reuse a c
 
Naveen,

1. Please reuse a correct thread for your question. It is not even remotely related to sampledSets.C or Pstream::master as a bool.

2. Do not use caps when posting - this is equivalent to screaming!

3. OpenFOAM-1.4.1 is an old version, OpenFOAM-1.5 (or OpenFOAM-1.5.x via the git repository) is the current version.

4. Please search the forum for similar problems, you might find the solution there.


All times are GMT -4. The time now is 11:28.