openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Public Member Functions | Public Attributes | List of all members
opencarp::igb_output_manager Class Reference

#include <sim_utils.h>

Collaboration diagram for opencarp::igb_output_manager:

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...
 
IGBheaderget_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_itemsync_IOs
 
SF::vector< async_io_itemasync_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
 

Detailed Description

Definition at line 285 of file sim_utils.h.

Member Function Documentation

◆ close_files_and_cleanup()

void opencarp::igb_output_manager::close_files_and_cleanup ( )

close file descriptors

Definition at line 1483 of file sim_utils.cc.

Here is the caller graph for this function:

◆ get_igb_header()

IGBheader * opencarp::igb_output_manager::get_igb_header ( const sf_vec vec)

Get the pointer to the igb header for a vector that was registered for output.

Parameters
vecAdress of SlimFem_vector that was registered for output.
Returns
Get igb header pointer on success, else NULL.

Definition at line 1507 of file sim_utils.cc.

◆ register_output()

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.

Parameters
inp_dataPointer to the data we want to output.
inp_meshidID of the mesh the data lives on.
dpnd.o.f. per node used in the dataset.
nameOutput filename.
unitUnits of the dataset.
idxPointer to vector of local indices to restrict the output to. NULL if no restriction.
elem_dataWhether data is defined on elements (true) or nodes (false (false).

Definition at line 1403 of file sim_utils.cc.

Here is the caller graph for this function:

◆ register_output_sync()

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 
)

Definition at line 1272 of file sim_utils.cc.

Here is the caller graph for this function:

◆ write_data()

void opencarp::igb_output_manager::write_data ( )

write registered data to disk

Definition at line 1436 of file sim_utils.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ async_IOs

SF::vector<async_io_item> opencarp::igb_output_manager::async_IOs

Definition at line 305 of file sim_utils.h.

◆ buffmap

std::map<SF::mixed_tuple<mesh_t, int>, sf_vec*> opencarp::igb_output_manager::buffmap

map data spec -> PETSc vector buffer

Definition at line 307 of file sim_utils.h.

◆ buffmap_elem

std::map<SF::mixed_tuple<mesh_t, int>, sf_vec*> opencarp::igb_output_manager::buffmap_elem

Definition at line 308 of file sim_utils.h.

◆ sync_IOs

SF::vector<sync_io_item> opencarp::igb_output_manager::sync_IOs

Definition at line 304 of file sim_utils.h.


The documentation for this class was generated from the following files: