Skip to content
GitLab
Menu
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
7ca3da49
Commit
7ca3da49
authored
Jun 14, 2018
by
Mark OLESEN
Browse files
COMP: single-precision build
parent
e59d167e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/functionObjects/field/stabilityBlendingFactor/stabilityBlendingFactor.C
View file @
7ca3da49
...
...
@@ -115,13 +115,13 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
min
(
mag
(
factorList
-
meanRes
)
/
(
maxResidual_
*
meanRes
),
1
.
0
scalar
(
1
)
),
0
.
0
scalar
(
0
)
)
);
forAll
(
indicator_
,
i
)
forAll
(
indicator_
,
i
)
{
indicator_
[
i
]
=
indicatorResidual
[
i
];
}
...
...
@@ -141,11 +141,11 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
(
max
(
0
.
0
,
scalar
(
0
)
,
(
*
nonOrthPtr
-
maxNonOrthogonality_
)
/
(
minNonOrthogonality_
-
maxNonOrthogonality_
)
/
(
minNonOrthogonality_
-
maxNonOrthogonality_
)
),
1
.
0
scalar
(
1
)
)
);
...
...
@@ -169,11 +169,11 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
(
max
(
0
.
0
,
scalar
(
0
)
,
(
*
skewnessPtr
-
maxSkewness_
)
/
(
minSkewness_
-
maxSkewness_
)
),
1
.
0
scalar
(
1
)
)
);
...
...
@@ -197,11 +197,11 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
(
max
(
0
.
0
,
scalar
(
0
)
,
(
minFaceWeight_
-
*
faceWeightsPtr
)
/
(
minFaceWeight_
-
maxFaceWeight_
)
),
1
.
0
scalar
(
1
)
)
);
...
...
@@ -269,11 +269,11 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
(
max
(
0
.
0
,
scalar
(
0
)
,
(
magGradCCPtr
.
ref
()
-
maxGradCc_
)
/
(
minGradCc_
-
maxGradCc_
)
),
1
.
0
scalar
(
1
)
)
);
}
...
...
@@ -311,7 +311,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
max
(
indicator_
,
min
(
max
(
0
.
0
,
(
Co
-
Co1_
)
/
(
Co2_
-
Co1_
)),
1
.
0
)
min
(
max
(
scalar
(
0
)
,
(
Co
-
Co1_
)
/
(
Co2_
-
Co1_
)),
scalar
(
1
)
)
);
if
(
log
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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