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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
1809d96e
Commit
1809d96e
authored
3 years ago
by
Lukas Bentkamp
Committed by
Cristian Lalescu
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
adding variation parameters to postprocessing. I hope this will work now.
parent
df1a1e3e
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!43
Develop
,
!42
Feature/varying forcing
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cpp/full_code/postprocess.cpp
+4
-0
4 additions, 0 deletions
cpp/full_code/postprocess.cpp
cpp/full_code/postprocess.hpp
+2
-0
2 additions, 0 deletions
cpp/full_code/postprocess.hpp
with
6 additions
and
0 deletions
cpp/full_code/postprocess.cpp
+
4
−
0
View file @
1809d96e
...
...
@@ -69,6 +69,8 @@ int postprocess::read_parameters()
this
->
friction_coefficient
=
hdf5_tools
::
read_value
<
double
>
(
parameter_file
,
"parameters/friction_coefficient"
);
this
->
fk0
=
hdf5_tools
::
read_value
<
double
>
(
parameter_file
,
"parameters/fk0"
);
this
->
fk1
=
hdf5_tools
::
read_value
<
double
>
(
parameter_file
,
"parameters/fk1"
);
this
->
variation_strength
=
hdf5_tools
::
read_value
<
double
>
(
parameter_file
,
"parameters/variation_strength"
);
this
->
variation_time_scale
=
hdf5_tools
::
read_value
<
double
>
(
parameter_file
,
"parameters/variation_time_scale"
);
this
->
energy
=
hdf5_tools
::
read_value
<
double
>
(
parameter_file
,
"parameters/energy"
);
this
->
injection_rate
=
hdf5_tools
::
read_value
<
double
>
(
parameter_file
,
"parameters/injection_rate"
);
std
::
string
tmp
=
hdf5_tools
::
read_string
(
parameter_file
,
"parameters/forcing_type"
);
...
...
@@ -92,6 +94,8 @@ int postprocess::copy_parameters_into(
dst
->
injection_rate
=
this
->
injection_rate
;
dst
->
energy
=
this
->
energy
;
dst
->
friction_coefficient
=
this
->
friction_coefficient
;
dst
->
variation_strength
=
this
->
variation_strength
;
dst
->
variation_time_scale
=
this
->
variation_time_scale
;
strncpy
(
dst
->
forcing_type
,
this
->
forcing_type
,
128
);
return
EXIT_SUCCESS
;
}
...
...
This diff is collapsed.
Click to expand it.
cpp/full_code/postprocess.hpp
+
2
−
0
View file @
1809d96e
...
...
@@ -53,6 +53,8 @@ class postprocess: public code_base
double
fk1
;
double
energy
;
double
injection_rate
;
double
variation_strength
;
double
variation_time_scale
;
int
fmode
;
char
forcing_type
[
512
];
double
nu
;
...
...
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