Skip to content

Commit 0573579

Browse files
author
Peter Aronsson
committed
Added StructualParam1.mo, removed print from Inst.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1795 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 36f39dd commit 0573579

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Compiler/Inst.rml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,6 @@ relation inst_classdef: (Env, Mod, Prefix, Connect.Sets, ClassInf.State,
810810
list_append(alg,alg2) => alg' &
811811
list_append(initalg,initalg2) => initalg' &
812812
(*3. Instantiate components *)
813-
print "ready to instantiate components\n" &
814813
inst_element_list(env4, mods, pre, csets, ci_state1, compelts'',
815814
inst_dims, impl, packimpl)
816815
=> (dae1,env5, csets1, ci_state2, tys) &

Compiler/SimCodegen.rml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ relation generate_ode_header: () => string =
416416

417417
rule Util.string_append_list(
418418
[
419-
" void functionODE(/*insert stuff here*/) {"
419+
"void functionODE(double *x, double *xd, double *y, double *p, \n",
420+
" int nx, int ny, int np, double *time)\n",
421+
"{\n"
420422
]) => res
421423
------------------------
422424
generate_ode_header() => res
@@ -432,7 +434,7 @@ relation generate_ode_footer: () => string =
432434

433435
rule Util.string_append_list(
434436
[
435-
" void functionODE("
437+
"}"
436438

437439
]) => res
438440
------------------------

Compiler/modpar/Codegen.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,13 @@ void Codegen::generateParallelMPIGlobals()
541541
m_cstreamFunc << "extern int rank;" << endl;
542542
m_cstreamFunc << "extern double x[];" << endl;
543543
m_cstreamFunc << "extern double xd[];" << endl;
544+
m_cstreamFunc << "extern \"C\" {" << endl;
544545
m_cstreamFunc << "void hybrd_(void (int, double *, double*, int)," << endl
545-
<< "int, double*,double*,double,int, " << endl
546-
<< "int,int,double,double*,int,double, " << endl
547-
<< "int,int*,int*,double *,double*,double*, " << endl
548-
<< "int, double*,double*,double*,double*,double*);" << endl;
546+
<< "int n, double* x,double* fvec,double xtol,int maxfev, " << endl
547+
<< "int ml,int mu,double epsfcn,double* diag,int mode, double factor, " << endl
548+
<< "int nprint,int* info,int* nfev,double* fjac,int ldfjac,double* r, " << endl
549+
<< "int lr, double* qtf,double* wa1,double* wa2,double* wa3,double* wa4);" << endl;
550+
m_cstreamFunc << "}" << endl;
549551
m_cstream << "/* MPI Global variables */" << endl;
550552
m_cstream << "MPI_Status status;" << endl;
551553
m_cstream << "MPI_Request request;" << endl;

0 commit comments

Comments
 (0)