- Timestamp:
- 2012-11-18T20:19:47+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SimulationRuntime/c/simulation/results/simulation_result_mat.cpp
r13652 r13950 381 381 size_t ccol = 0; /* current column - index offset */ 382 382 size_t indx = 1; 383 size_t aliascol = 0; 383 384 INTMAP::iterator it; 384 385 /* assign rows & cols */ … … 425 426 dataInfo[ccol] = table; 426 427 /* row 2 - index of var in table (variable 'Time' have index 1) */ 428 aliascol = table==2?1:it->second+1; 427 429 if (mdl_data->realAlias[i].negate) 428 dataInfo[ccol+1] = - (it->second+1);430 dataInfo[ccol+1] = -aliascol; 429 431 else 430 dataInfo[ccol+1] = it->second+1;432 dataInfo[ccol+1] = aliascol; 431 433 /* row 3 - linear interpolation == 0 */ 432 434 dataInfo[ccol+2] = 0; … … 457 459 /* row 1 - which table */ 458 460 dataInfo[ccol] = table; 459 /* row 2 - index of var in table (variable 'Time' have index 1)*/461 /* row 2 - index of var in table */ 460 462 if (mdl_data->integerAlias[i].negate) 461 463 dataInfo[ccol+1] = -(it->second+1); … … 496 498 /* row 1 - which table */ 497 499 dataInfo[ccol] = table; 498 /* row 2 - index of var in table (variable 'Time' have index 1)*/500 /* row 2 - index of var in table */ 499 501 if (mdl_data->booleanAlias[i].negate) 500 502 {
Note: See TracChangeset
for help on using the changeset viewer.