📄 variables.cc
字号:
/* This file defines the functions that can be performed with the Variable object defined in Variables.h*/#include "Header.h"Variables::Variables(double V_init,double Cai_init,double CaSR_init,double Nai_init,double Ki_init){ Volt=V_init; Volt2=V_init; Cai=Cai_init; CaSR=CaSR_init; Nai=Nai_init; Ki=Ki_init; M= 0.; H= 0.75; J= 0.75; Xr1= 0.; Xr2= 1.; Xs= 0.; R= 0.; S= 1.; D= 0.; F= 1.; FCa= 1.; G= 1.; printf("Variables initialized\n");}void Variables::writebackup(double *t,char *despath){ static char filename[300]; sprintf(filename,"%s%s",despath,"/PointBackupData"); ofstream oo(filename,ios::app); if(!oo) { printf("cannot open file %s\n",filename); exit(1); } oo << *t << "\t"; oo << Volt<< "\t"; oo << Volt2 << "\t"; oo << Cai << "\t"; oo << CaSR << "\t"; oo << Nai << "\t"; oo << Ki << "\t"; oo << M << "\t"; oo << H << "\t"; oo << J << "\t"; oo << Xr1 << "\t"; oo << Xr2 << "\t"; oo << Xs << "\t"; oo << S << "\t"; oo << R << "\t"; oo << D << "\t"; oo << F << "\t"; oo << FCa << "\t"; oo << G << "\t"; oo << Itot; oo << endl; oo.close(); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -