View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000484 | OpenFOAM | Bug | public | 2012-03-26 11:37 | 2012-03-30 09:14 |
Reporter | wyldckat | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 10.04 |
Summary | 0000484: 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 Reproduce | Used last commit from Friday, built in 32bit Single Precision. | ||||
Additional Information | I'll report back when the SP build is finished, whether I pick up on some other related issues or not. | ||||
Tags | No tags attached. | ||||
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 |
|
Note Added: 0001187 | |
2012-03-30 09:14 |
|
Status | new => resolved |
2012-03-30 09:14 |
|
Fixed in Version | => 2.1.x |
2012-03-30 09:14 |
|
Resolution | open => fixed |
2012-03-30 09:14 |
|
Assigned To | => user4 |