Exemplo n.º 1
0
void HSolveActive::setup( Id seed, double dt )
{
    //~ cout << ".. HA.setup()" << endl;

    this->HSolvePassive::setup( seed, dt );

    readHHChannels();
    readGates();
    readCalcium();
    createLookupTables();
    readSynapses(); // Reads SynChans, SpikeGens. Drops process msg for SpikeGens.
    readExternalChannels();
    manageOutgoingMessages(); // Manages messages going out from the cell's components.

    //~ reinit();
    cleanup();

    //~ cout << "# of compartments: " << compartmentId_.size() << "." << endl;
    //~ cout << "# of channels: " << channelId_.size() << "." << endl;
    //~ cout << "# of gates: " << gateId_.size() << "." << endl;
    //~ cout << "# of states: " << state_.size() << "." << endl;
    //~ cout << "# of Ca pools: " << caConc_.size() << "." << endl;
    //~ cout << "# of SynChans: " << synchan_.size() << "." << endl;
    //~ cout << "# of SpikeGens: " << spikegen_.size() << "." << endl;
}
Exemplo n.º 2
0
 void setupNeighbourshipFromFile(std::string path)
 {
     FILE * pFile = fopen (path.c_str(), "r");
     if (pFile == NULL)
         perror ("Error opening file");
     else
     {
         std::cout << "Start to read gates.csv\n";
         ignoreFirstLine(pFile);
         while(true)
         {
             if(feof(pFile)) break;
             readGates(pFile);
         }
         std::cout << "gates.csv has been read in.\n";
         fclose(pFile);
     }
 }