Skip to content

Commit

Permalink
- Changed the inline implementation slightly so that it works properl…
Browse files Browse the repository at this point in the history
…y with events

  - Added functionODE_inline in the runtime (only called by the inline solver)
  - Now uses RK order 4 properly (was order 1 previously)
  - Verified that RK produces correct results with der(z) = time
  - The inlined code now updates the global time instead of the solver routine


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5942 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 20, 2010
1 parent 3f53ac6 commit 4658adc
Show file tree
Hide file tree
Showing 8 changed files with 1,390 additions and 1,247 deletions.
11 changes: 7 additions & 4 deletions Compiler/SimCode.mo
Expand Up @@ -381,13 +381,16 @@ uniontype Context
end FUNCTION_CONTEXT;
record OTHER
end OTHER;
record INLINE_CONTEXT
end INLINE_CONTEXT;
end Context;


public constant Context contextSimulationNonDiscrete = SIMULATION(false);
public constant Context contextSimulationDiscrete = SIMULATION(true);
public constant Context contextFunction = FUNCTION_CONTEXT();
public constant Context contextOther = OTHER();
public constant Context contextSimulationNonDiscrete = SIMULATION(false);
public constant Context contextSimulationDiscrete = SIMULATION(true);
public constant Context contextInlineSolver = INLINE_CONTEXT();
public constant Context contextFunction = FUNCTION_CONTEXT();
public constant Context contextOther = OTHER();


public function valueblockVars
Expand Down

0 comments on commit 4658adc

Please sign in to comment.