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
dd2ccafe
Commit
dd2ccafe
authored
5 years ago
by
sniklas142
Browse files
Options
Downloads
Patches
Plain Diff
strip ou from field
parent
fb3b5247
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cpp/full_code/ornstein_uhlenbeck_process.cpp
+28
-0
28 additions, 0 deletions
cpp/full_code/ornstein_uhlenbeck_process.cpp
cpp/full_code/ornstein_uhlenbeck_process.hpp
+3
-0
3 additions, 0 deletions
cpp/full_code/ornstein_uhlenbeck_process.hpp
with
31 additions
and
0 deletions
cpp/full_code/ornstein_uhlenbeck_process.cpp
+
28
−
0
View file @
dd2ccafe
...
...
@@ -175,6 +175,34 @@ void ornstein_uhlenbeck_process<rnumber, be>::let_converge(void)
}
}
template
<
class
rnumber
,
field_backend
be
>
void
ornstein_uhlenbeck_process
<
rnumber
,
be
>::
strip_from_field
(
field
<
rnumber
,
be
,
THREE
>
*
src
)
{
assert
(
src
->
real_space_representation
==
false
);
this
->
kk
->
CLOOP_K2
(
[
&
](
ptrdiff_t
cindex
,
ptrdiff_t
xindex
,
ptrdiff_t
yindex
,
ptrdiff_t
zindex
,
double
k2
){
if
(
k2
<=
this
->
ou_kmax_squ
&&
k2
>=
this
->
ou_kmin_squ
){
for
(
int
cc
=
0
;
cc
<
3
;
cc
++
){
for
(
int
imag
=
0
;
imag
<
2
;
imag
++
){
src
->
cval
(
cindex
,
cc
,
imag
)
=
0
;
}
}
}
}
);
}
template
<
class
rnumber
,
field_backend
be
>
void
ornstein_uhlenbeck_process
<
rnumber
,
be
>::
add_to_field_replace
(
field
<
rnumber
,
be
,
THREE
>
*
src
,
std
::
string
uv
)
...
...
This diff is collapsed.
Click to expand it.
cpp/full_code/ornstein_uhlenbeck_process.hpp
+
3
−
0
View file @
dd2ccafe
...
...
@@ -62,6 +62,9 @@ class ornstein_uhlenbeck_process{
void
add_to_field_replace
(
field
<
rnumber
,
be
,
THREE
>
*
src
,
std
::
string
uv
);
void
strip_from_field
(
field
<
rnumber
,
be
,
THREE
>
*
src
);
void
calc_ou_vorticity
(
void
);
...
...
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