Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Steady-state solver needs to be implemented #25

Open
tclose opened this issue Nov 29, 2014 · 0 comments
Open

Steady-state solver needs to be implemented #25

tclose opened this issue Nov 29, 2014 · 0 comments

Comments

@tclose
Copy link
Contributor

tclose commented Nov 29, 2014

I am trying to work out what exactly I need to to supply to this template

//-------------------------------------------------------//
// This section was generated from NEST-steadystate.tmpl //
//-------------------------------------------------------//
{% if steady_state_method == "kinsol" %}
extern "C" int {{ModelName}}_steadystate (N_Vector u, N_Vector f, void* pnode) {
{% else %}
extern "C" int {{ModelName}}_steadystate (const gsl_vector *u, void *pnode, gsl_vector *f) {
{% endif %}
{#
{% if steadystate.localVars %}
  double {{steadystate.localVars | join(", ")}};
{% endif %}

  // params is a reference to the model parameters
  const struct {{ModelName}}::Parameters_* params = (struct {{ModelName}}::Parameters_ *)pnode;

{% for parameterDef in steadystate.parameterDefs %}
  {{parameterDef}}
{% endfor %}

{% for eq in steadystate.SSgetStateDefs %}
  {{eq}}
{% endfor %}

{% for eq in steadystate.SScurrentEqDefs %}
  {{eq}}
{% endfor %}

{% for eq in init.initOrder %}
  {{eq}}
{% endfor %}

{% for x in steadystate.SSsetStateDefsLbs %}
    {% if x.lbs %}
  double {{x.lbs | join(", ")}};
    {% endif %}

    {% for eq in x.defs %}
  {{eq}}
    {% endfor %}

{% endfor %}
#}
   return 0;
}
//---------------- NEST-steadystate.tmpl ---------------//

in order for the steady-state solver to work.

@tclose tclose added enhancement and removed bug labels May 15, 2015
@tclose tclose modified the milestone: v0.2 Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant