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
b2cb1001
Commit
b2cb1001
authored
Jan 03, 2012
by
andy
Browse files
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
parents
cfcc9f49
0970ae0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/Tensor/tensor/tensor.C
View file @
b2cb1001
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2012
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -183,17 +183,17 @@ vector eigenValues(const tensor& t)
// Sort the eigenvalues into ascending order
if
(
mag
(
i
)
>
mag
(
ii
)
)
if
(
i
>
ii
)
{
Swap
(
i
,
ii
);
}
if
(
mag
(
ii
)
>
mag
(
iii
)
)
if
(
ii
>
iii
)
{
Swap
(
ii
,
iii
);
}
if
(
mag
(
i
)
>
mag
(
ii
)
)
if
(
i
>
ii
)
{
Swap
(
i
,
ii
);
}
...
...
@@ -384,17 +384,17 @@ vector eigenValues(const symmTensor& t)
// Sort the eigenvalues into ascending order
if
(
mag
(
i
)
>
mag
(
ii
)
)
if
(
i
>
ii
)
{
Swap
(
i
,
ii
);
}
if
(
mag
(
ii
)
>
mag
(
iii
)
)
if
(
ii
>
iii
)
{
Swap
(
ii
,
iii
);
}
if
(
mag
(
i
)
>
mag
(
ii
)
)
if
(
i
>
ii
)
{
Swap
(
i
,
ii
);
}
...
...
src/OpenFOAM/primitives/Tensor2D/tensor2D/tensor2D.C
View file @
b2cb1001
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2012
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -116,7 +116,7 @@ vector2D eigenValues(const tensor2D& t)
}
// Sort the eigenvalues into ascending order
if
(
mag
(
i
)
>
mag
(
ii
)
)
if
(
i
>
ii
)
{
Swap
(
i
,
ii
);
}
...
...
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