View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000569 | OpenFOAM | Bug | public | 2012-07-01 17:37 | 2012-07-01 21:37 |
Reporter | wyldckat | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Summary | 0000569: Single Precision issue on compressibleTwoPhaseEulerFoam/kineticTheoryModels | ||||
Description | The file "compressibleTwoPhaseEulerFoam/kineticTheoryModels/radialModel/SinclairJackson/SinclairJacksonRadial.C" won't build in SP due to double value "1e-06". See attached patch for possible fix. | ||||
Tags | No tags attached. | ||||
|
SinclairJacksonRadial.C.patch (896 bytes)
diff --git a/applications/solvers/multiphase/compressibleTwoPhaseEulerFoam/kineticTheoryModels/radialModel/SinclairJackson/SinclairJacksonRadial.C b/applications/solvers/multiphase/compressibleTwoPhaseEulerFoam/kineticTheoryModels/radialModel/SinclairJackson/SinclairJacksonRadial.C index 74e8dac..67fea7d 100644 --- a/applications/solvers/multiphase/compressibleTwoPhaseEulerFoam/kineticTheoryModels/radialModel/SinclairJackson/SinclairJacksonRadial.C +++ b/applications/solvers/multiphase/compressibleTwoPhaseEulerFoam/kineticTheoryModels/radialModel/SinclairJackson/SinclairJacksonRadial.C @@ -85,7 +85,7 @@ Foam::kineticTheoryModels::radialModels::SinclairJackson::g0prime ) const { return - (1.0/3.0)*pow(max(alpha, 1.0e-6)/alphaMax, -2.0/3.0) + (1.0/3.0)*pow(max(alpha, scalar(1.0e-6))/alphaMax, -2.0/3.0) /(alphaMax*sqr(1.0 - pow(alpha/alphaMax, 1.0/3.0))); } |
|
I forgot to check the other "SinclairJacksonRadial.C" files. The same fix applies to "applications/solvers/multiphase/twoPhaseEulerFoam/kineticTheoryModels", with "patch -p6". |
|
Resolved by commit 2978c3a3878d946abe929f74ee1c3c559a456ec8 |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-07-01 17:37 | wyldckat | New Issue | |
2012-07-01 17:37 | wyldckat | File Added: SinclairJacksonRadial.C.patch | |
2012-07-01 20:56 | wyldckat | Note Added: 0001433 | |
2012-07-01 21:37 | henry | Note Added: 0001434 | |
2012-07-01 21:37 | henry | Status | new => resolved |
2012-07-01 21:37 | henry | Resolution | open => fixed |
2012-07-01 21:37 | henry | Assigned To | => henry |