Skip to content

Commit 617e42d

Browse files
authored
[NB,C] Save array variables in MAT format (#14922)
* Use number of array + scalar variables for freeModelDataVars * Use number of array + scalar variables to save mat results using index mapping * New util functions `lengthName` and `lengthDescription` to work with scalar and array variables. * New util functions `printArrayName` and `printArrayDescription` to print name and comment for scalar and array variables. * Update NB test `simpleForLoop.mos` to support array variables.
1 parent e101803 commit 617e42d

File tree

3 files changed

+867
-446
lines changed

3 files changed

+867
-446
lines changed

OMCompiler/SimulationRuntime/c/simulation/results/simulation_result.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
extern "C" {
3838
#endif /* cplusplus */
3939

40-
/* A prototype for the simulation result interface. */
40+
/** Simulation result interface. */
4141
typedef struct simulation_result {
4242
const char *filename;
4343
long numpoints;

0 commit comments

Comments
 (0)