Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MOD-C-2-CPP: Compatibility fixed for NEURON 9.0, 8.2 and 8.1 #1

Merged
merged 2 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions ImpedanceFM.mod
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ ASSIGNED {


VERBATIM
#include <malloc.h>
#include <stdlib.h>

// calculate impedance for the whole range of frequencies

void calc_impedances(Zr,Zi,fmax,df,rext,rmax,dr,R,sigma1,sigma2,lambda,epsilon,sigmaR)
double Zr[],Zi[],fmax,df,rext,rmax,dr,R,sigma1,sigma2,lambda,epsilon,sigmaR;
void calc_impedances(double Zr[], double Zi[], double fmax, double df, double rext, double rmax, double dr, double R, double sigma1, double sigma2, double lambda,double epsilon, double sigmaR)
// vector Z is impedance, Z[0]=real part, Z[1]=imaginary part
{
double epsR,sigR,w,w2,sig,eps,den,ReZ,ImZ,r,f;
Expand Down
6 changes: 6 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,9 @@ please cite the above paper.
Alain Destexhe,
CNRS, Gif sur Yvette, France
http://cns.iaf.cnrs-gif.fr

Changelog
---------
2022-05: Updated MOD files to contain valid C++ and be compatible
with the upcoming versions 8.2 and 9.0 of NEURON.