file:/local_home/local_home/hugo/neurospaces_project/heccer/source/c/snapshots/0/heccer/perfectclamp.h        (Mon Jun 16 00:04:26 2008 )        HOME


   1: //
   2: // Heccer : a compartmental solver that implements efficient Crank-Nicolson
   3: // integration for neuronal models.
   4: //
   5: 
   6: //////////////////////////////////////////////////////////////////////////////
   7: //'
   8: //' Heccer : testbed C implementation
   9: //'
  10: //' Copyright (C) 2006-2008 Hugo Cornelis
  11: //'
  12: //' functional ideas .. Hugo Cornelis, hugo.cornelis@gmail.com
  13: //'
  14: //' coding ............ Hugo Cornelis, hugo.cornelis@gmail.com
  15: //'
  16: //////////////////////////////////////////////////////////////////////////////
  17: 
  18: 
  19: #ifndef HECCER_PERFECTCLAMP_H
  20: #define HECCER_PERFECTCLAMP_H
  21: 
  22: 
  23: #include <stdio.h>
  24: 
  25: 
  26: struct PerfectClamp
  27: {
  28:     //m a string identifier, for what it is worth
  29: 
  30:     char *pcName;
  31: 
  32:     //m number of clamped variables
  33: 
  34:     int iClampsActive;
  35: 
  36:     //m input, solved variable
  37: 
  38:     double *pdVoltage;
  39: 
  40:     //m command voltage
  41: 
  42:     double dCommand;
  43: 
  44:     //m filename with command voltages
  45: 
  46:     char *pcFilename;
  47: 
  48:     FILE *pfile;
  49: 
  50: };
  51: 
  52: 
  53: int
  54: PerfectClampAddVariable
  55: (struct PerfectClamp * ppc, void *pvVoltage);
  56: 
  57: int PerfectClampSingleStep(struct PerfectClamp * ppc, double dTime);
  58: 
  59: int PerfectClampFinish(struct PerfectClamp * ppc);
  60: 
  61: int PerfectClampInitiate(struct PerfectClamp * ppc);
  62: 
  63: struct PerfectClamp * PerfectClampNew(char *pcName);
  64: 
  65: int
  66: PerfectClampSetFields
  67: (struct PerfectClamp * ppc,
  68:  double dCommand,
  69:  char *pcFilename);
  70: 
  71: 
  72: #endif
  73: 
  74: 
  75: 








































Generated by Xrefactory version 2.0.14 on Thu Jul 24 22:41:20 2008