Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cla_prosim_driver
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fmg005
cla_prosim_driver
Commits
38180b8c
Commit
38180b8c
authored
May 29, 2018
by
fmg005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Abilty to switch to realtime once patient's MAP falls below threshold
parent
264af495
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
149 additions
and
74 deletions
+149
-74
SimulationEngine.cpp
SimulationEngine.cpp
+139
-70
include/SimulationEngine.h
include/SimulationEngine.h
+7
-2
resources/scenario.cfg
resources/scenario.cfg
+3
-2
No files found.
SimulationEngine.cpp
View file @
38180b8c
This diff is collapsed.
Click to expand it.
include/SimulationEngine.h
View file @
38180b8c
...
...
@@ -3,8 +3,13 @@
#define SIMENGINE_H
#include "configure_prosim_paths.h"
#include <libconfig.h++>
void
Simulation
(
const
std
::
string
,
const
std
::
shared_ptr
<
Config
>&
,
const
char
*
);
void
Global_LoadConfig
(
std
::
unique_ptr
<
PhysiologyEngine
>&
,
const
std
::
shared_ptr
<
Config
>&
,
const
char
*
,
CLA
::
Environment
*
);
#include <libconfig.h++>
void
Simulation
(
const
std
::
string
,
const
std
::
shared_ptr
<
Config
>&
);
void
Global_LoadConfig
(
std
::
shared_ptr
<
CLA
::
LOGGER
>&
,
std
::
unique_ptr
<
PhysiologyEngine
>&
,
const
std
::
shared_ptr
<
Config
>&
,
CLA
::
Environment
&
);
void
update_env_variables_for_realtime
(
CLA
::
Environment
&
);
#endif
resources/scenario.cfg
View file @
38180b8c
...
...
@@ -10,9 +10,10 @@ prosim = {
simulation = {
time = {
run = 30.0; # Time -> Seconds How long should simulation run
injury_start =
12
.0; # When should injury be introduced to patient
run = 3
60
0.0; # Time -> Seconds How long should simulation run
injury_start =
20
.0; # When should injury be introduced to patient
injury_stop = 700.0; # When should injury be stopped
simulation_time_run = 30000.0;
}
}
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