Skip to content

Commit

Permalink
api/simulation/k_sim_scc.c:
Browse files Browse the repository at this point in the history
    - KSIM_CPUS allocated in K_simul_SCC_init()
    - KSIM_CPUS freed in K_simul_SCC_init()
  • Loading branch information
jmpplan committed Oct 16, 2023
1 parent dd99ac0 commit a2acab0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/simulation/k_sim_scc.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ static int K_simul_SCC_init(KDB* dbe, KDB* dbv, KDB* dbs, SAMPLE* smpl)
// NE PAS FREEER KSIM_NORMS ni KSIM_NITERS CAR UTILISES POUR LE REPORTING A POSTERIORI !!
SCR_free(KSIM_NORMS);
SCR_free(KSIM_NITERS);
SCR_free(KSIM_CPUS);
KSIM_NORMS = (IODE_REAL *) SCR_malloc(sizeof(IODE_REAL) * KSMPL(dbv)->s_nb);
KSIM_NITERS = (int *) SCR_malloc(sizeof(int) * KSMPL(dbv)->s_nb);
KSIM_CPUS = (long *) SCR_malloc(sizeof(long) * KSMPL(dbv)->s_nb);

/* LINK EQUATIONS + SAVE ENDO POSITIONS */
kmsg("Linking equations ....");
Expand Down

0 comments on commit a2acab0

Please sign in to comment.