Opened 10 years ago

Closed 10 years ago

#3258 closed defect (fixed)

Missing AlgebraicModelJacobian::initializeColoredJacobianA()

Reported by: Rüdiger Franke Owned by: Marcus Walther
Priority: high Milestone: 1.9.3
Component: Cpp Run-time Version: trunk
Keywords: Cc: Ruediger Kampfmann, Volker Waurich, Niklas Worschech

Description

See the following model without states:

model AlgebraicModel
  input Real u;
  output Real y = 2*u;
end AlgebraicModel;

setCommandLineOptions("+simCodeTarget=Cpp");translateModel(AlgebraicModel) works.

translateModelFMU(AlgebraicModel, version="2.0") gives the compilation error:

OMCppAlgebraicModelExtension.cpp: In member function ‘virtual void AlgebraicModelExtension::initialize()’:
OMCppAlgebraicModelExtension.cpp:34:3: error: ‘initializeColoredJacobianA’ is not a member of ‘AlgebraicModelJacobian’
   AlgebraicModelJacobian::initializeColoredJacobianA();
   ^
<builtin>: recipe for target 'OMCppAlgebraicModelCalcHelperMain.o' failed

In fact the method initializeColoredJacobianA is missing if generating an FMU for a model without states.

Change History (1)

comment:1 by Rüdiger Franke, 10 years ago

Resolution: fixed
Status: newclosed

Thanks for the fix in r25354!

Note: See TracTickets for help on using tickets.