int PlasticConnTestLayer::publish(InterColComm* comm, double timef)
{
   setActivitytoGlobalPos();
   int status = comm->publish(this, clayer->activity);
   return status;

   //return HyPerLayer::publish(comm, time);
}
int ShrunkenPatchTestLayer::publish(InterColComm* comm, double timed)
{
   setActivitytoGlobalPos();
   int status = comm->publish(this, clayer->activity);
   return status;

   //return HyPerLayer::publish(comm, time);
}
int PlasticConnTestLayer::allocateDataStructures() {
   int status = ANNLayer::allocateDataStructures();
   if (status==PV_SUCCESS) {
      setActivitytoGlobalPos();
      copyAtoV();
   }
   return status;
}
int ShrunkenPatchTestLayer::allocateDataStructures() {
   int status = ANNLayer::allocateDataStructures();
   if (status==PV_SUCCESS) {
      setVtoGlobalPos();
      setActivitytoGlobalPos();
   }
   return status;
}