Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
TurTLE
TurTLE
Commits
eec00ff2
Commit
eec00ff2
authored
Dec 05, 2019
by
sniklas142
Committed by
Cristian Lalescu
Feb 19, 2020
Browse files
can read arbitrary iteration
parent
cdef2c93
Changes
2
Hide whitespace changes
Inline
Side-by-side
cpp/full_code/NSVE_field_stats.cpp
View file @
eec00ff2
...
...
@@ -101,6 +101,33 @@ int NSVE_field_stats<rnumber>::read_current_cvorticity(void)
}
return
EXIT_SUCCESS
;
}
template
<
typename
rnumber
>
int
NSVE_field_stats
<
rnumber
>::
read_arbitrary_cvorticity
(
int
iter
)
{
TIMEZONE
(
"NSVE_field_stats::read_arbitrary_cvorticity"
);
this
->
vorticity
->
real_space_representation
=
false
;
if
(
this
->
bin_IO
!=
NULL
)
{
char
itername
[
16
];
sprintf
(
itername
,
"i%.5x"
,
iter
);
std
::
string
native_binary_fname
=
(
this
->
simname
+
std
::
string
(
"_cvorticity_"
)
+
std
::
string
(
itername
));
this
->
bin_IO
->
read
(
native_binary_fname
,
this
->
vorticity
->
get_cdata
());
}
else
{
this
->
vorticity
->
io
(
this
->
simname
+
std
::
string
(
"_fields.h5"
),
"vorticity"
,
iter
,
true
);
}
return
EXIT_SUCCESS
;
}
template
<
typename
rnumber
>
int
NSVE_field_stats
<
rnumber
>::
finalize
(
void
)
...
...
cpp/full_code/NSVE_field_stats.hpp
View file @
eec00ff2
...
...
@@ -59,6 +59,7 @@ class NSVE_field_stats: public postprocess
virtual
int
finalize
(
void
);
int
read_current_cvorticity
(
void
);
int
read_arbitrary_cvorticity
(
int
iter
);
};
#endif//NSVE_FIELD_STATS_HPP
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment