openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Enumerations | Functions | Variables
IGBapd.cc File Reference
#include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <fstream>
#include <set>
#include <vector>
#include <zlib.h>
#include "IGBheader.h"
#include "apd_cmdline.h"
Include dependency graph for IGBapd.cc:

Go to the source code of this file.

Enumerations

enum  thresh_t { Fixed , AboveRest , PerCentRepol , MinDeriv }
 

Functions

float lininterp (float y0, float y1, float x0, float x1, float interp)
 
bool process_specifier (char *sp, set< int > &nodes, int max)
 
void extract_nodes (const char *list, vector< int > &nodes, int max)
 
int main (int argc, char *argv[])
 

Variables

const float UNCOMPUTED = -1
 
const float UNSTARTED = -1
 
const int NO_PRIOR = -1
 

Enumeration Type Documentation

◆ thresh_t

enum thresh_t
Enumerator
Fixed 
AboveRest 
PerCentRepol 
MinDeriv 

Definition at line 40 of file IGBapd.cc.

Function Documentation

◆ extract_nodes()

void extract_nodes ( const char *  list,
vector< int > &  nodes,
int  max 
)

Definition at line 151 of file IGBapd.cc.

Here is the caller graph for this function:

◆ lininterp()

float lininterp ( float  y0,
float  y1,
float  x0,
float  x1,
float  interp 
)

approxmiate when interp was reached

Definition at line 51 of file IGBapd.cc.

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 181 of file IGBapd.cc.

◆ process_specifier()

bool process_specifier ( char *  sp,
set< int > &  nodes,
int  max 
)

get list of specified nodes from a string: (([0-9]?[-([0-9]+|*))|*)[:[0-9]+] This mean you can specify n -> node n n0-n1 -> nodes n0 to n1 inclusive n-* -> all nodes starting at n

  • -> all nodes To any of these, :d may be appended on the end signifying stride d
Parameters
spuser specified string of nodes
nodesset of nodes
maxnumber of nodes in model
Postcondition
nodes contains all the specified nodes
Returns
true iff all nodes have been specified

Definition at line 77 of file IGBapd.cc.

Here is the caller graph for this function:

Variable Documentation

◆ NO_PRIOR

const int NO_PRIOR = -1

Definition at line 46 of file IGBapd.cc.

◆ UNCOMPUTED

const float UNCOMPUTED = -1

Definition at line 44 of file IGBapd.cc.

◆ UNSTARTED

const float UNSTARTED = -1

Definition at line 45 of file IGBapd.cc.