-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
37 lines (32 loc) · 941 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "DESolver.h"
#include "luo_rudy_I_model_1991.h"
#include "maltsev_2009.h"
#include <cellchain.h>
#include <stdio.h>
static void integrateOneCell(double MaxTime){
Cell *cell;
cell = new luo_rudy_I_model_1991(true);
cell->init();
//cell->incrementV(50);
*cell->stimulus.stim_amplitude = -20;
GnuplotPiper Gpp(10,MaxTime,cell->dt,100);
ForwardEulerSolver Solver(&Gpp);
Solver.Solve(cell,MaxTime,cell->dt);
printf("Number of steps: %li\n",Solver.count);
delete cell;
}
int main(int argc, char *argv[])
{
integrateOneCell(5000);
// vector<int> toPace;
// toPace.push_back(1);
// toPace.push_back(2);
// toPace.push_back(3);
// CellChain chain(205,15,30,20,110,30);
// chain.setStimStartColl(10);
// chain.setStimAmplitudeColl(0);
// // chain.setStimAmplitudeColl(-25,toPace);
// chain.Solve(40000, 30000);
fprintf(stderr,"Solve finished\n");
return 0;
}