Changeset 359fa1d in OpenModelica
- Timestamp:
- 2021-05-18T11:46:02+02:00 (3 years ago)
- Parents:
- f1024952
- git-author:
- Andreas <38031952+AnHeuermann@…> (05/14/21 18:47:54)
- git-committer:
- AnHeuermann <andreas.heuermann@…> (05/18/21 11:46:02)
- Location:
- OMCompiler/SimulationRuntime/c/simulation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/SimulationRuntime/c/simulation/simulation_info_json.c
rad22570 r359fa1d 394 394 } 395 395 #endif 396 assert(xml->functionNames == NULL); 396 397 xml->functionNames = (FUNCTION_INFO*) calloc(xml->nFunctions, sizeof(FUNCTION_INFO)); 398 assert(xml->equationInfo == NULL); 397 399 xml->equationInfo = (EQUATION_INFO*) calloc(1+xml->nEquations, sizeof(EQUATION_INFO)); 398 400 xml->equationInfo[0].id = 0; … … 411 413 } 412 414 415 /** 416 * @brief Deinitialize memory allocated by modelInfoInit 417 * 418 * @param xml Pointer to model info xml data. 419 */ 420 void modelInfoDeinit(MODEL_DATA_XML* xml) 421 { 422 free(xml->functionNames); xml->functionNames = NULL; 423 free(xml->equationInfo); xml->equationInfo = NULL; 424 } 425 413 426 FUNCTION_INFO modelInfoGetFunction(MODEL_DATA_XML* xml, size_t ix) 414 427 { -
OMCompiler/SimulationRuntime/c/simulation/simulation_info_json.h
r83be5f2b r359fa1d 38 38 #endif 39 39 40 extern FUNCTION_INFO modelInfoGetFunction(MODEL_DATA_XML*,size_t); 41 extern void modelInfoInit(MODEL_DATA_XML*); 42 extern EQUATION_INFO modelInfoGetEquation(MODEL_DATA_XML*,size_t); 43 extern EQUATION_INFO modelInfoGetEquationIndexByProfileBlock(MODEL_DATA_XML*,size_t); 40 void modelInfoInit(MODEL_DATA_XML* xml); 41 void modelInfoDeinit(MODEL_DATA_XML* xml); 42 FUNCTION_INFO modelInfoGetFunction(MODEL_DATA_XML* xml, size_t ix); 43 EQUATION_INFO modelInfoGetEquation(MODEL_DATA_XML* xml, size_t ix); 44 EQUATION_INFO modelInfoGetEquationIndexByProfileBlock(MODEL_DATA_XML* xml, size_t ix); 44 45 45 46 #ifdef __cplusplus -
OMCompiler/SimulationRuntime/c/simulation/solver/model_help.c
r85330b09 r359fa1d 1274 1274 } 1275 1275 1276 /* Free model info xml data */ 1277 modelInfoDeinit(&(data->modelData->modelDataXml)); 1278 1276 1279 TRACE_POP 1277 1280 }
Note: See TracChangeset
for help on using the changeset viewer.