Skip to content

Commit

Permalink
Fix implicit declaration of jacobian function generated code. (#9105)
Browse files Browse the repository at this point in the history
  - Include `util/jacobian_util.h` in the generated `<prefix>_model.h` file
    to get declaration of `allocSparsePattern`.

    This was declaring it implicitly as `int allocSparsePattern` and
    segfaulting later on the CMake built `omc` and `libSimulationRuntimeC`.
  • Loading branch information
mahge committed Jun 15, 2022
1 parent d44c00f commit 8566ff4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OMCompiler/Compiler/Template/CodegenC.tpl
Expand Up @@ -118,6 +118,7 @@ end translateModel;
#include "simulation/simulation_runtime.h"
#include "util/omc_error.h"
#include "util/parallel_helper.h"
#include "util/jacobian_util.h"
#include "simulation/simulation_omc_assert.h"
#include "simulation/solver/model_help.h"
#include "simulation/solver/delay.h"
Expand Down

0 comments on commit 8566ff4

Please sign in to comment.