Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
d82deea8
Commit
d82deea8
authored
Jul 11, 2018
by
Mark OLESEN
Browse files
COMP: resolve compilation issues for single-precision (closes
#932
)
parent
a96c2d70
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/localDensityAbsorptionEmission/localDensityAbsorptionEmission.C
View file @
d82deea8
...
...
@@ -107,7 +107,7 @@ Foam::radiation::localDensityAbsorptionEmission::aCont(const label bandI) const
forAll
(
alphaNames_
,
i
)
{
dimensionedScalar
aPhase
(
"a"
,
dimless
/
dimLength
,
aCoeff_
[
i
]);
a
+=
max
(
alpha
(
alphaNames_
[
i
]),
0
.
0
)
*
aPhase
;
a
+=
max
(
alpha
(
alphaNames_
[
i
]),
scalar
(
0
)
)
*
aPhase
;
}
return
ta
;
...
...
@@ -140,7 +140,7 @@ Foam::radiation::localDensityAbsorptionEmission::eCont(const label bandI) const
forAll
(
alphaNames_
,
i
)
{
dimensionedScalar
ePhase
(
"e"
,
dimless
/
dimLength
,
eCoeff_
[
i
]);
e
+=
max
(
alpha
(
alphaNames_
[
i
]),
0
.
0
)
*
ePhase
;
e
+=
max
(
alpha
(
alphaNames_
[
i
]),
scalar
(
0
)
)
*
ePhase
;
}
return
te
;
...
...
@@ -179,7 +179,7 @@ Foam::radiation::localDensityAbsorptionEmission::ECont(const label bandI) const
ECoeff_
[
i
]
);
E
+=
max
(
alpha
(
alphaNames_
[
i
]),
0
.
0
)
*
EPhase
;
E
+=
max
(
alpha
(
alphaNames_
[
i
]),
scalar
(
0
)
)
*
EPhase
;
}
return
tE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment