8 #include "ConstantV.hpp" 9 #include "columns/HyPerCol.hpp" 10 #include "include/default_params.h" 14 ConstantV::ConstantV() { initialize_base(); }
16 ConstantV::ConstantV(
char const *name, HyPerCol *hc) {
21 ConstantV::~ConstantV() {}
23 int ConstantV::initialize_base() {
return PV_SUCCESS; }
25 int ConstantV::initialize(
char const *name, HyPerCol *hc) {
26 int status = BaseInitV::initialize(name, hc);
37 parent->parameters()->ioParamValue(ioFlag, name,
"valueV", &mValueV, (
float)V_REST);
40 void ConstantV::calcV(
float *V,
PVLayerLoc const *loc) {
42 Fatal().printf(
"%s: calcV called but membrane potential V is null.\n", getDescription_c());
44 int const numNeurons = loc->nx * loc->ny * loc->nf * loc->nbatch;
45 for (
int k = 0; k < numNeurons; k++) {
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual void ioParam_valueV(enum ParamsIOFlag ioFlag)
valueV: The value to initialize the V buffer with