Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenFOAM-plus
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
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Development
OpenFOAM-plus
Commits
d58ff052
Commit
d58ff052
authored
9 years ago
by
Henry Weller
Browse files
Options
Downloads
Patches
Plain Diff
fftRenumber: Corrected namespace
parent
5c6a4d95
No related branches found
No related tags found
1 merge request
!33
Merge foundation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/randomProcesses/fft/fftRenumber.C
+3
-21
3 additions, 21 deletions
src/randomProcesses/fft/fftRenumber.C
src/randomProcesses/fft/fftRenumber.H
+17
-1
17 additions, 1 deletion
src/randomProcesses/fft/fftRenumber.H
with
20 additions
and
22 deletions
src/randomProcesses/fft/fftRenumber.C
+
3
−
21
View file @
d58ff052
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
========= |
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
License
License
...
@@ -32,16 +32,7 @@ Description
...
@@ -32,16 +32,7 @@ Description
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace
Foam
void
Foam
::
fftRenumberRecurse
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// recursively evaluate the indexing necessary to do the folding of
// the fft data. We recurse until we have the indexing ncessary for
// the folding in all directions.
void
fftRenumberRecurse
(
(
List
<
complex
>&
data
,
List
<
complex
>&
data
,
List
<
complex
>&
renumData
,
List
<
complex
>&
renumData
,
...
@@ -101,12 +92,7 @@ void fftRenumberRecurse
...
@@ -101,12 +92,7 @@ void fftRenumberRecurse
}
}
// fftRenumber : fold the n-d data array to get the fft components in
void
Foam
::
fftRenumber
// the right places.
#include
"fftRenumber.H"
void
fftRenumber
(
(
List
<
complex
>&
data
,
List
<
complex
>&
data
,
const
labelList
&
nn
const
labelList
&
nn
...
@@ -135,8 +121,4 @@ void fftRenumber
...
@@ -135,8 +121,4 @@ void fftRenumber
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
}
// End namespace Foam
// ************************************************************************* //
// ************************************************************************* //
This diff is collapsed.
Click to expand it.
src/randomProcesses/fft/fftRenumber.H
+
17
−
1
View file @
d58ff052
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
========= |
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
License
License
...
@@ -47,6 +47,22 @@ namespace Foam
...
@@ -47,6 +47,22 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Recursively evaluate the indexing necessary to do the folding of the fft
// data. We recurse until we have the indexing ncessary for the folding in all
// directions.
void
fftRenumberRecurse
(
List
<
complex
>&
data
,
List
<
complex
>&
renumData
,
const
labelList
&
nn
,
label
nnprod
,
label
ii
,
label
l1
,
label
l2
);
// Fold the n-d data array to get the fft components in the right places.
void
fftRenumber
void
fftRenumber
(
(
List
<
complex
>&
data
,
List
<
complex
>&
data
,
...
...
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