openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
sv_init.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // openCARP is an open cardiac electrophysiology simulator.
3 //
4 // Copyright (C) 2020 openCARP project
5 //
6 // This program is licensed under the openCARP Academic Public License (APL)
7 // v1.0: You can use and redistribute it and/or modify it in non-commercial
8 // academic environments under the terms of APL as published by the openCARP
9 // project v1.0, or (at your option) any later version. Commercial use requires
10 // a commercial license (info@opencarp.org).
11 //
12 // This program is distributed without any warranty; see the openCARP APL for
13 // more details.
14 //
15 // You should have received a copy of the openCARP APL along with this program
16 // and can find it online: http://www.opencarp.org/license
17 // ----------------------------------------------------------------------------
18 
27 #ifndef sv_init_h
28 #define sv_init_h
29 
30 #ifdef __cplusplus
31 # include "MULTI_ION_IF.h"
32 #endif // ifdef __cplusplus
33 #include <string.h>
34 
35 namespace limpet {
36 
37 int read_sv(MULTI_IF *, int, const char *);
38 void save_sv(MULTI_IF *, int, const char *);
39 void open_trace(MULTI_IF *, int, int *, int *);
40 void dump_trace(MULTI_IF *, limpet::Real);
41 void close_trace(MULTI_IF *);
42 int current_global_node(int); // Used in error recovery
43 float current_global_time(void); // Used in error recovery
44 void set_start_time(const float); // Used in error recovery.
47 
48 } // namespace limpet
49 
50 #endif
int read_sv(MULTI_IF *, int, const char *)
double Real
Definition: MULTI_ION_IF.h:151
void close_trace(MULTI_IF *MIIF)
void set_start_time(const float)
void save_sv(MULTI_IF *, int, const char *)
float current_global_time()
int should_print_bounds_exceeded_messages()
int set_print_bounds_exceeded_messages(int newval)
Define multiple ionic models to be used in different regions.
int current_global_node(int local_node)
void open_trace(MULTI_IF *MIIF, int n_traceNodes, int *traceNodes, int *label, opencarp::sf_mesh *imesh)
Set up ionic model traces at some global node numbers.
void dump_trace(MULTI_IF *MIIF, limpet::Real time)