Skip to content

Commit

Permalink
Set number of interpolation points for the adevs backend to the recom…
Browse files Browse the repository at this point in the history
…mended number

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9687 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
smiz committed Aug 25, 2011
1 parent 1bde1e3 commit 62fd636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/susan_codegen/SimCode/SimCodeAdevs.tpl
Expand Up @@ -656,12 +656,12 @@ case SIMCODE(modelInfo = MODELINFO(vars = vars as SIMVARS(__))) then
if (!init_unknown_vars.empty())
{
long N = init_unknown_vars.size();
long NPT = N+2;
long NPT = 2*N+2;
double* w = new double[N];
for (unsigned i = 0; i < init_unknown_vars.size(); i++)
w[i] = *(init_unknown_vars[i]);
double RHOBEG = 10.0;
double RHOEND = 1.0E-6;
double RHOEND = 1.0E-7;
long IPRINT = 0;
long MAXFUN = 50000;
double* scratch = new double[(NPT+13)*(NPT+N)+3*N*(N+3)/2];
Expand Down

0 comments on commit 62fd636

Please sign in to comment.