openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
#include <sim_utils.h>
Public Member Functions | |
void | register_output_sync (sf_vec *inp_data, const mesh_t inp_meshid, const int dpn, const char *name, const char *units, const SF::vector< mesh_int_t > *idx=NULL, bool elem_data=false) |
void | register_output (sf_vec *inp_data, const mesh_t inp_meshid, const int dpn, const char *name, const char *units, const SF::vector< mesh_int_t > *idx=NULL, bool elem_data=false) |
Register a data vector for output. More... | |
void | write_data () |
write registered data to disk More... | |
IGBheader * | get_igb_header (const sf_vec *vec) |
Get the pointer to the igb header for a vector that was registered for output. More... | |
void | close_files_and_cleanup () |
close file descriptors More... | |
Public Attributes | |
SF::vector< sync_io_item > | sync_IOs |
SF::vector< async_io_item > | async_IOs |
std::map< SF::mixed_tuple< mesh_t, int >, sf_vec * > | buffmap |
map data spec -> PETSc vector buffer More... | |
std::map< SF::mixed_tuple< mesh_t, int >, sf_vec * > | buffmap_elem |
Definition at line 286 of file sim_utils.h.
void opencarp::igb_output_manager::close_files_and_cleanup | ( | ) |
close file descriptors
Definition at line 1527 of file sim_utils.cc.
Get the pointer to the igb header for a vector that was registered for output.
vec | Adress of SlimFem_vector that was registered for output. |
Definition at line 1551 of file sim_utils.cc.
void opencarp::igb_output_manager::register_output | ( | sf_vec * | inp_data, |
const mesh_t | inp_meshid, | ||
const int | dpn, | ||
const char * | name, | ||
const char * | units, | ||
const SF::vector< mesh_int_t > * | idx = NULL , |
||
bool | elem_data = false |
||
) |
Register a data vector for output.
inp_data | Pointer to the data we want to output. |
inp_meshid | ID of the mesh the data lives on. |
dpn | d.o.f. per node used in the dataset. |
name | Output filename. |
unit | Units of the dataset. |
idx | Pointer to vector of local indices to restrict the output to. NULL if no restriction. |
elem_data | Whether data is defined on elements (true) or nodes (false (false). |
Definition at line 1447 of file sim_utils.cc.
void opencarp::igb_output_manager::register_output_sync | ( | sf_vec * | inp_data, |
const mesh_t | inp_meshid, | ||
const int | dpn, | ||
const char * | name, | ||
const char * | units, | ||
const SF::vector< mesh_int_t > * | idx = NULL , |
||
bool | elem_data = false |
||
) |
void opencarp::igb_output_manager::write_data | ( | ) |
write registered data to disk
Definition at line 1480 of file sim_utils.cc.
SF::vector<async_io_item> opencarp::igb_output_manager::async_IOs |
Definition at line 306 of file sim_utils.h.
std::map<SF::mixed_tuple<mesh_t, int>, sf_vec*> opencarp::igb_output_manager::buffmap |
map data spec -> PETSc vector buffer
Definition at line 308 of file sim_utils.h.
std::map<SF::mixed_tuple<mesh_t, int>, sf_vec*> opencarp::igb_output_manager::buffmap_elem |
Definition at line 309 of file sim_utils.h.
SF::vector<sync_io_item> opencarp::igb_output_manager::sync_IOs |
Definition at line 305 of file sim_utils.h.