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
8c8a4a00
Commit
8c8a4a00
authored
Jun 23, 2011
by
graham
Browse files
ENH: match defaultMatchTol public.
parent
c7387689
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.C
View file @
8c8a4a00
...
@@ -34,7 +34,7 @@ namespace Foam
...
@@ -34,7 +34,7 @@ namespace Foam
{
{
defineTypeNameAndDebug
(
coupledPolyPatch
,
0
);
defineTypeNameAndDebug
(
coupledPolyPatch
,
0
);
const
scalar
coupledPolyPatch
::
defaultMatchTol
_
=
1E-4
;
scalar
coupledPolyPatch
::
defaultMatchTol
=
1E-4
;
template
<>
template
<>
const
char
*
NamedEnum
<
coupledPolyPatch
::
transformType
,
4
>::
names
[]
=
const
char
*
NamedEnum
<
coupledPolyPatch
::
transformType
,
4
>::
names
[]
=
...
@@ -403,7 +403,7 @@ Foam::coupledPolyPatch::coupledPolyPatch
...
@@ -403,7 +403,7 @@ Foam::coupledPolyPatch::coupledPolyPatch
)
)
:
:
polyPatch
(
name
,
size
,
start
,
index
,
bm
),
polyPatch
(
name
,
size
,
start
,
index
,
bm
),
matchTolerance_
(
defaultMatchTol
_
)
matchTolerance_
(
defaultMatchTol
)
{}
{}
...
@@ -416,7 +416,7 @@ Foam::coupledPolyPatch::coupledPolyPatch
...
@@ -416,7 +416,7 @@ Foam::coupledPolyPatch::coupledPolyPatch
)
)
:
:
polyPatch
(
name
,
dict
,
index
,
bm
),
polyPatch
(
name
,
dict
,
index
,
bm
),
matchTolerance_
(
dict
.
lookupOrDefault
(
"matchTolerance"
,
defaultMatchTol
_
))
matchTolerance_
(
dict
.
lookupOrDefault
(
"matchTolerance"
,
defaultMatchTol
))
{}
{}
...
@@ -470,7 +470,7 @@ Foam::coupledPolyPatch::~coupledPolyPatch()
...
@@ -470,7 +470,7 @@ Foam::coupledPolyPatch::~coupledPolyPatch()
void
Foam
::
coupledPolyPatch
::
write
(
Ostream
&
os
)
const
void
Foam
::
coupledPolyPatch
::
write
(
Ostream
&
os
)
const
{
{
polyPatch
::
write
(
os
);
polyPatch
::
write
(
os
);
//if (matchTolerance_ != defaultMatchTol
_
)
//if (matchTolerance_ != defaultMatchTol)
{
{
os
.
writeKeyword
(
"matchTolerance"
)
<<
matchTolerance_
os
.
writeKeyword
(
"matchTolerance"
)
<<
matchTolerance_
<<
token
::
END_STATEMENT
<<
nl
;
<<
token
::
END_STATEMENT
<<
nl
;
...
...
src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H
View file @
8c8a4a00
...
@@ -69,9 +69,6 @@ private:
...
@@ -69,9 +69,6 @@ private:
// Private data
// Private data
//- default matching tolerance
static
const
scalar
defaultMatchTol_
;
//- local matching tolerance
//- local matching tolerance
const
scalar
matchTolerance_
;
const
scalar
matchTolerance_
;
...
@@ -182,6 +179,8 @@ public:
...
@@ -182,6 +179,8 @@ public:
//- Runtime type information
//- Runtime type information
TypeName
(
"coupled"
);
TypeName
(
"coupled"
);
//- default matching tolerance
static
scalar
defaultMatchTol
;
// Constructors
// Constructors
...
...
src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshCalcDualMesh.C
View file @
8c8a4a00
...
@@ -1458,6 +1458,8 @@ Foam::labelHashSet Foam::conformalVoronoiMesh::checkPolyMeshQuality
...
@@ -1458,6 +1458,8 @@ Foam::labelHashSet Foam::conformalVoronoiMesh::checkPolyMeshQuality
label
nValidPatches
=
0
;
label
nValidPatches
=
0
;
// coupledPolyPatch::defaultMatchTol = 1e-3;
forAll
(
patches
,
p
)
forAll
(
patches
,
p
)
{
{
if
(
patchTypes
[
p
]
==
processorPolyPatch
::
typeName
)
if
(
patchTypes
[
p
]
==
processorPolyPatch
::
typeName
)
...
...
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