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
39d597f3
Commit
39d597f3
authored
May 20, 2011
by
mattijs
Browse files
ENH: globalIndexAndTransform: added debug printing
parent
38d068c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/globalIndexAndTransform/globalIndexAndTransform.C
View file @
39d597f3
...
...
@@ -24,11 +24,12 @@ License
\*---------------------------------------------------------------------------*/
#include
"globalIndexAndTransform.H"
#include
"coupledPolyPatch.H"
#include
"cyclicPolyPatch.H"
// * * * * * * * * * * * * Private Static Data Members * * * * * * * * * * * //
defineTypeNameAndDebug
(
Foam
::
globalIndexAndTransform
,
0
);
const
Foam
::
label
Foam
::
globalIndexAndTransform
::
base_
=
32
;
...
...
@@ -478,6 +479,41 @@ Foam::globalIndexAndTransform::globalIndexAndTransform
determineTransformPermutations
();
determinePatchTransformSign
();
if
(
debug
&&
transforms_
.
size
()
>
1
)
{
Info
<<
"Determined global transforms :"
<<
endl
;
Info
<<
"
\t\t
translation
\t
rotation"
<<
endl
;
forAll
(
transforms_
,
i
)
{
Info
<<
'\t'
<<
i
<<
'\t'
;
if
(
transforms_
[
i
].
hasR
())
{
Info
<<
transforms_
[
i
].
t
()
<<
'\t'
<<
transforms_
[
i
].
R
();
}
else
{
Info
<<
transforms_
[
i
].
t
()
<<
'\t'
<<
"---"
;
}
Info
<<
endl
;
}
Info
<<
endl
;
const
polyBoundaryMesh
&
patches
=
mesh_
.
boundaryMesh
();
Info
<<
"
\t
patch
\t
transform
\t
sign"
<<
endl
;
forAll
(
patchTransformSign_
,
patchI
)
{
if
(
patchTransformSign_
[
patchI
].
first
()
!=
-
1
)
{
Info
<<
'\t'
<<
patches
[
patchI
].
name
()
<<
'\t'
<<
patchTransformSign_
[
patchI
].
first
()
<<
'\t'
<<
patchTransformSign_
[
patchI
].
second
()
<<
endl
;
}
}
Info
<<
endl
;
}
}
...
...
src/OpenFOAM/primitives/globalIndexAndTransform/globalIndexAndTransform.H
View file @
39d597f3
...
...
@@ -164,6 +164,10 @@ public:
friend
class
globalPoints
;
// Declare name of the class and its debug switch
ClassName
(
"globalIndexAndTransform"
);
// Constructors
//- Construct from components
...
...
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