Skip to content

Commit

Permalink
fixed #528
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-s committed Jun 19, 2020
1 parent a5f1ee9 commit b3dc83b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 809 deletions.
2 changes: 2 additions & 0 deletions @xolotl/transpile.m
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ function transpile(self)

end

mechanism_add_lines{end+1} = ['n_mechanisms = ' mat2str(length(all_mechanisms)) ';'];

insert_here = filelib.find(lines,'//xolotl:add_mechanisms_here');
corelib.assert(length(insert_here)==1,'Could not find insertion point for mechanism hookups');
lines = [lines(1:insert_here); mechanism_add_lines(:); lines(insert_here+1:end)];
Expand Down
4 changes: 0 additions & 4 deletions c++/mexTemplate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
vector<synapse*> all_synapses; // pointers to all synapses


n_conductances = 0;
n_mechanisms = 0;
n_synapses = 0;



Expand Down Expand Up @@ -214,7 +211,6 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
}



if (v%5 == 0) {
mexPrintf("\n[#COMP] [MECH SIZE] [CURRENT SIZE] [SYN SIZE]\n ");
mexPrintf( "%i ",n_comp);
Expand Down

0 comments on commit b3dc83b

Please sign in to comment.