Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
TurTLE
TurTLE
Commits
472ac086
Commit
472ac086
authored
10 years ago
by
Chichi Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
update calls to field_descriptor constructor
parent
7424c178
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/resize_and_transpose.cpp
+3
-3
3 additions, 3 deletions
src/resize_and_transpose.cpp
with
3 additions
and
3 deletions
src/resize_and_transpose.cpp
+
3
−
3
View file @
472ac086
...
@@ -34,14 +34,14 @@ int main(int argc, char *argv[])
...
@@ -34,14 +34,14 @@ int main(int argc, char *argv[])
// (which is generally an even number)
// (which is generally an even number)
ni
[
0
]
=
atoi
(
argv
[
1
])
*
atoi
(
argv
[
2
]);
ni
[
0
]
=
atoi
(
argv
[
1
])
*
atoi
(
argv
[
2
]);
ni
[
1
]
=
atoi
(
argv
[
3
]);
ni
[
1
]
=
atoi
(
argv
[
3
]);
f0c
=
new
field_descriptor
(
2
,
ni
,
MPI_COMPLEX8
);
f0c
=
new
field_descriptor
(
2
,
ni
,
MPI_COMPLEX8
,
MPI_COMM_WORLD
);
// f1c will be pointing at the input array after it has been
// f1c will be pointing at the input array after it has been
// transposed, therefore we have this correspondence:
// transposed, therefore we have this correspondence:
// f0c->sizes[0] = f1c->sizes[1]*f1c->sizes[2]
// f0c->sizes[0] = f1c->sizes[1]*f1c->sizes[2]
ni
[
0
]
=
atoi
(
argv
[
3
]);
ni
[
0
]
=
atoi
(
argv
[
3
]);
ni
[
1
]
=
atoi
(
argv
[
1
]);
ni
[
1
]
=
atoi
(
argv
[
1
]);
ni
[
2
]
=
atoi
(
argv
[
2
]);
ni
[
2
]
=
atoi
(
argv
[
2
]);
f1c
=
new
field_descriptor
(
3
,
ni
,
MPI_COMPLEX8
);
f1c
=
new
field_descriptor
(
3
,
ni
,
MPI_COMPLEX8
,
MPI_COMM_WORLD
);
fftwf_complex
*
c0
,
*
c1
,
*
c2
;
fftwf_complex
*
c0
,
*
c1
,
*
c2
;
c0
=
fftwf_alloc_complex
(
f0c
->
local_size
);
c0
=
fftwf_alloc_complex
(
f0c
->
local_size
);
...
@@ -60,7 +60,7 @@ int main(int argc, char *argv[])
...
@@ -60,7 +60,7 @@ int main(int argc, char *argv[])
ni
[
0
]
=
atoi
(
argv
[
3
]);
ni
[
0
]
=
atoi
(
argv
[
3
]);
ni
[
1
]
=
atoi
(
argv
[
2
]);
ni
[
1
]
=
atoi
(
argv
[
2
]);
ni
[
2
]
=
atoi
(
argv
[
1
]);
ni
[
2
]
=
atoi
(
argv
[
1
]);
f1c
=
new
field_descriptor
(
3
,
ni
,
MPI_COMPLEX8
);
f1c
=
new
field_descriptor
(
3
,
ni
,
MPI_COMPLEX8
,
MPI_COMM_WORLD
);
// following 3 arguments are dimensions for output array
// following 3 arguments are dimensions for output array
// i.e. real space grid dimensions
// i.e. real space grid dimensions
...
...
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