8 #include "FirmThresholdCostFnLCAProbe.hpp" 9 #include "../layers/HyPerLCALayer.hpp" 13 FirmThresholdCostFnLCAProbe::FirmThresholdCostFnLCAProbe(
const char *name, HyPerCol *hc) {
18 FirmThresholdCostFnLCAProbe::FirmThresholdCostFnLCAProbe() { initialize_base(); }
21 std::shared_ptr<CommunicateInitInfoMessage const> message) {
29 if (targetLCALayer ==
nullptr) {
30 if (parent->columnId() == 0) {
32 "%s: targetLayer \"%s\" is not an LCA layer.\n",
39 if (parent->columnId() == 0) {
41 "%s: LCAProbes require targetLayer \"%s\" to use " 42 "VThresh etc. instead of " 43 "verticesV/verticesV.\n",
50 MPI_Barrier(parent->getCommunicator()->communicator());
53 coefficient = targetLCALayer->getVThresh();
54 return Response::SUCCESS;
bool layerListsVerticesInParams() const
const char * getTargetName()
static bool completed(Status &a)
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override