Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
0ab048e0
Commit
0ab048e0
authored
9 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
COMP: autoHexMesh: fix pow(int, int) ambiguity
parent
e2cefb1a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementGapRefine.C
+6
-5
6 additions, 5 deletions
...Mesh/autoHexMesh/meshRefinement/meshRefinementGapRefine.C
with
6 additions
and
5 deletions
src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementGapRefine.C
+
6
−
5
View file @
0ab048e0
...
...
@@ -546,7 +546,7 @@ Foam::label Foam::meshRefinement::markSurfaceGapRefinement
//
// if (cLevel >= minLevel && cLevel < maxLevel)
// {
// scalar cellSize = edge0Len/pow(2, cLevel);
// scalar cellSize = edge0Len/pow(2
.0
, cLevel);
//
// // Update gap size
// nearGap[i] = nGapCells*cellSize;
...
...
@@ -687,7 +687,7 @@ Foam::label Foam::meshRefinement::generateRays
if
(
cLevel
>=
gapInfo
[
1
]
&&
cLevel
<
gapInfo
[
2
])
{
scalar
cellSize
=
meshCutter_
.
level0EdgeLength
()
/
pow
(
2
,
cLevel
);
scalar
cellSize
=
meshCutter_
.
level0EdgeLength
()
/
pow
(
2
.
0
,
cLevel
);
// Calculate gap size
scalar
nearGap
=
gapInfo
[
0
]
*
cellSize
;
...
...
@@ -803,7 +803,7 @@ Foam::label Foam::meshRefinement::generateRays
if
(
cLevel
>=
gapInfo
[
1
]
&&
cLevel
<
gapInfo
[
2
])
{
scalar
cellSize
=
meshCutter_
.
level0EdgeLength
()
/
pow
(
2
,
cLevel
);
scalar
cellSize
=
meshCutter_
.
level0EdgeLength
()
/
pow
(
2
.
0
,
cLevel
);
// Calculate gap size
scalar
nearGap
=
gapInfo
[
0
]
*
cellSize
;
...
...
@@ -1133,7 +1133,7 @@ Foam::label Foam::meshRefinement::markInternalGapRefinement
forAll
(
cellMap
,
i
)
{
label
cellI
=
cellMap
[
i
];
scalar
cellSize
=
edge0Len
/
pow
(
2
,
cellLevel
[
cellI
]);
scalar
cellSize
=
edge0Len
/
pow
(
2
.
0
,
cellLevel
[
cellI
]);
gapSize
[
i
]
=
shellGapInfo
[
i
][
0
]
*
cellSize
;
}
...
...
@@ -1410,7 +1410,8 @@ Foam::label Foam::meshRefinement::markInternalGapRefinement
{
// Needed gap size
label
cLevel
=
cellLevel
[
cellI
];
scalar
cellSize
=
meshCutter_
.
level0EdgeLength
()
/
pow
(
2
,
cLevel
);
scalar
cellSize
=
meshCutter_
.
level0EdgeLength
()
/
pow
(
2
.
0
,
cLevel
);
scalar
neededGapSize
=
numGapCells
[
cellI
]
*
cellSize
;
if
(
neededGapSize
>
detectedGapSize
[
cellI
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment