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
cab0e288
There was a problem fetching the pipeline summary.
Commit
cab0e288
authored
7 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
use own symmetrize, which is fine
parent
a6247072
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!23
WIP: Feature/use cmake
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bfps/cpp/field.cpp
+1
-12
1 addition, 12 deletions
bfps/cpp/field.cpp
with
1 addition
and
12 deletions
bfps/cpp/field.cpp
+
1
−
12
View file @
cab0e288
...
@@ -1023,6 +1023,7 @@ void field<rnumber, be, fc>::symmetrize()
...
@@ -1023,6 +1023,7 @@ void field<rnumber, be, fc>::symmetrize()
{
{
TIMEZONE
(
"field::symmetrize"
);
TIMEZONE
(
"field::symmetrize"
);
assert
(
!
this
->
real_space_representation
);
assert
(
!
this
->
real_space_representation
);
// for debugging, just use FFTW
//this->ift();
//this->ift();
//this->dft();
//this->dft();
//this->normalize();
//this->normalize();
...
@@ -1151,18 +1152,6 @@ void field<rnumber, be, fc>::symmetrize()
...
@@ -1151,18 +1152,6 @@ void field<rnumber, be, fc>::symmetrize()
(
*
(
cdata
+
cc
+
ncomp
(
fc
)
*
cindex
))[
1
]
=
0.0
;
(
*
(
cdata
+
cc
+
ncomp
(
fc
)
*
cindex
))[
1
]
=
0.0
;
}
}
}
}
///* put asymmetric data to 0 */
//if (this->clayout->myrank == this->clayout->rank[0][this->clayout->sizes[0]/2])
//{
// ptrdiff_t tindex = ncomp(fc)*(this->clayout->sizes[0]/2 - this->clayout->starts[0])*this->clayout->sizes[1]*this->clayout->sizes[2];
// for (ii = 0; ii < ptrdiff_t(this->clayout->sizes[1]); ii++)
// {
// std::fill_n((rnumber*)(data + tindex), ncomp(fc)*2*this->clayout->sizes[2], 0.0);
// tindex += ncomp(fc)*this->clayout->sizes[2];
// }
//}
////tindex = ncomp(fc)*();
////std::fill_n((rnumber*)(data + tindex), ncomp(fc)*2, 0.0);
}
}
template
<
typename
rnumber
,
template
<
typename
rnumber
,
...
...
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