View Issue Details

IDProjectCategoryView StatusLast Update
0000484OpenFOAMBugpublic2012-03-30 09:14
Reporterwyldckat Assigned Touser4 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version10.04
Summary0000484: phaseHydrostaticPressureFvPatchScalarField.C failed to build in Single Precision
Description
Error message at build time, when building the library finiteVolume:
  fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.C: In member function ‘virtual void Foam::phaseHydrostaticPressureFvPatchScalarField::updateCoeffs()’:
  fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.C:151: error: no matching function for call to ‘min(const Foam::Field<float>&, double)’

Solution: that "double" should be a "scalar". Namely:
    valueFraction() = max(min(alphap, 1.0), 0.0);
should be something like:
    valueFraction() = max(min(alphap, scalar(1.0)), scalar(0.0));
Steps To ReproduceUsed last commit from Friday, built in 32bit Single Precision.
Additional InformationI'll report back when the SP build is finished, whether I pick up on some other related issues or not.
TagsNo tags attached.

Activities

wyldckat

2012-03-26 16:34

updater   ~0001175

FYI: all clear. That was the only error related to Single Precision that was detected.

user4

2012-03-30 09:14

  ~0001187

Fixed in 7a552aa6c12722d99176055e978a1146717d840e

Thanks for reporting.

Issue History

Date Modified Username Field Change
2012-03-26 11:37 wyldckat New Issue
2012-03-26 16:34 wyldckat Note Added: 0001175
2012-03-30 09:14 user4 Note Added: 0001187
2012-03-30 09:14 user4 Status new => resolved
2012-03-30 09:14 user4 Fixed in Version => 2.1.x
2012-03-30 09:14 user4 Resolution open => fixed
2012-03-30 09:14 user4 Assigned To => user4