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
113e512e
Commit
113e512e
authored
9 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
add stats of field increments
parent
069a2b4f
No related branches found
No related tags found
2 merge requests
!21
Bugfix/nansampling
,
!3
Bugfix/event manager show html
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bfps/cpp/field.cpp
+39
-0
39 additions, 0 deletions
bfps/cpp/field.cpp
bfps/cpp/field.hpp
+7
-0
7 additions, 0 deletions
bfps/cpp/field.hpp
with
46 additions
and
0 deletions
bfps/cpp/field.cpp
+
39
−
0
View file @
113e512e
...
...
@@ -379,6 +379,45 @@ int field<rnumber, be, fc>::io(
return
EXIT_SUCCESS
;
}
template
<
typename
rnumber
,
field_backend
be
,
field_components
fc
>
void
field
<
rnumber
,
be
,
fc
>::
compute_rspace_xincrement_stats
(
const
int
xcells
,
const
hid_t
group
,
const
std
::
string
dset_name
,
const
hsize_t
toffset
,
const
std
::
vector
<
double
>
max_estimate
)
{
assert
(
this
->
real_space_representation
);
assert
(
fc
==
ONE
||
fc
==
THREE
);
field
<
rnumber
,
be
,
fc
>
*
tmp_field
=
new
field
<
rnumber
,
be
,
fc
>
(
this
->
rlayout
->
sizes
[
2
],
this
->
rlayout
->
sizes
[
1
],
this
->
rlayout
->
sizes
[
0
],
this
->
rlayout
->
comm
);
tmp_field
->
real_space_representation
=
true
;
FIELD_RLOOP
(
this
,
hsize_t
rrindex
=
(
xindex
+
xcells
)
%
this
->
rlayout
->
sizes
[
2
]
+
(
zindex
*
this
->
rlayout
->
subsizes
[
1
]
+
yindex
)
*
(
this
->
rmemlayout
->
subsizes
[
2
]);
for
(
int
component
=
0
;
component
<
ncomp
(
fc
);
component
++
)
tmp_field
->
data
[
rindex
*
ncomp
(
fc
)
+
component
]
=
this
->
data
[
rrindex
*
ncomp
(
fc
)
+
component
]
-
this
->
data
[
rindex
*
ncomp
(
fc
)
+
component
];
);
tmp_field
->
compute_rspace_stats
(
group
,
dset_name
,
toffset
,
max_estimate
);
delete
tmp_field
;
}
template
<
typename
rnumber
,
field_backend
be
,
field_components
fc
>
...
...
This diff is collapsed.
Click to expand it.
bfps/cpp/field.hpp
+
7
−
0
View file @
113e512e
...
...
@@ -179,6 +179,13 @@ class field
void
ift
();
void
normalize
();
void
compute_rspace_xincrement_stats
(
const
int
xcells
,
const
hid_t
group
,
const
std
::
string
dset_name
,
const
hsize_t
toffset
,
const
std
::
vector
<
double
>
max_estimate
);
void
compute_rspace_stats
(
const
hid_t
group
,
const
std
::
string
dset_name
,
...
...
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