1 #include <../../nrnconf.h> 26 while ((pr = net_cvode_instance->
playrec_uses(v)) != 0) {
45 if (!ppobj || ppobj->ctemplate->is_point_ <= 0
48 hoc_execerror(
"Optional first arg is not a POINT_PROCESS", 0);
80 ddt =
chkarg(iarg+2, 1
e-9, 1e10);
99 }
else if (ddt > 0.) {
101 }
else if (pvar == &
t) {
109 hoc_execerror(
"Second argument of Vector.play in continuous mode must be a time vector", 0);
117 if (!tvec && ddt == -1.) {
186 e_->
send(0., net_cvode_instance, nt);
204 if (current_index_ < y_->size()) {
206 if (current_index_ < t_->size()) {
302 if (discon_index_ < discon_indices_->size()) {
310 if (ubound_index_ < t_->size() - 1) {
337 }
else if (tt <= t_->elem(0)) {
349 if (t0 == t1) {
return (x0 + x1)/2.; }
350 return interp((tt - t0)/(t1 - t0), x0, x1);
369 printf(
"VecPlayContinuous ");
double interpolate(double tt)
virtual ~VecPlayContinuousSave()
int hoc_is_str_arg(int narg)
short * nrn_is_artificial_
static void pnode(Prop *)
int hoc_is_double_arg(int narg)
VecPlayStepSave(PlayRecord *)
char * hoc_object_name(Object *ob)
Represent main neuron object computed by single thread.
virtual void savestate_read(FILE *)
void init(IvocVect *y, IvocVect *t, double dt)
static void pr(N_Vector x)
Point_process * ob2pntproc(Object *)
#define con(arg1, arg2, arg3)
static void Attach(Object *, Observer *)
double * hoc_pgetarg(int narg)
virtual PlayRecordSave * savestate_save()
VecPlayContinuousSave(PlayRecord *)
static double check(double t, Daspk *ida)
virtual void deliver(double t, NetCvode *)
virtual void install(Cvode *)
VecPlayContinuous(double *, IvocVect *y, IvocVect *t, IvocVect *discon, Object *ppobj=nil)
void hoc_execerror(const char *, const char *)
void nrn_vecsim_remove(void *v)
fprintf(stderr, "Don't know the location of params at %p\, pp)
virtual void send(double deliverytime, NetCvode *, NrnThread *)
virtual void savestate_read(FILE *)
VecPlayStep(double *, IvocVect *y, IvocVect *t, double dt, Object *ppobj=nil)
virtual PlayRecordSave * savestate_save()
void nrn_vecsim_add(void *v, bool record)
NetCvode * net_cvode_instance
void init(IvocVect *y, IvocVect *t, IvocVect *tdiscon)
virtual void savestate_write(FILE *)
double interp(double th, double x0, double x1)
virtual void install(Cvode *)
void continuous(double tt)
static void Detach(Object *, Observer *)
virtual void savestate_restore()
PlayRecord * playrec_uses(void *)
int hoc_is_object_arg(int narg)
virtual void savestate_write(FILE *)
virtual void disconnect(Observable *)
Object ** hoc_objgetarg(int)
virtual void deliver(double t, NetCvode *)
virtual ~VecPlayStepSave()
Section * chk_access(void)
double chkarg(int, double low, double high)
virtual void savestate_restore()
virtual ~VecPlayContinuous()
IvocVect * discon_indices_
virtual void disconnect(Observable *)