sopalin_init.c

Summary
sopalin_init.c
sopalin_initAllocate fields of the sopalin_data structures and initialize them.
sopalin_cleanClean the fields in sopalin_data structures.
sopalin_init_smpAllocate and initialize thread_data This function is mono-thread and must be called by each thread.
sopalin_clean_smpClean the thread_data structure.
sopalin_backupBackup solver matrix counters.
sopalin_restoreRestore solver matrix counters.
solve_backupBackup solver matrix fanin contrib counters.
solve_restoreRestore solver matrix fanin contrib counters.

sopalin_init

void sopalin_init(Sopalin_Data_t *sopalin_data,
SolverMatrix *m,
SopalinParam *sopaparam,
int fact)

Allocate fields of the sopalin_data structures and initialize them.  This function is mono-thread and must be called just by one thread.

Parameters

sopalin_dataSopalin_data structure to initialize
datacodeSolverMatrix structure (common data)
sopaparamsopalin parameters.
factBoolean for factorisation step or not

Returns

void

sopalin_clean

void sopalin_clean(Sopalin_Data_t *sopalin_data,
int step)

Clean the fields in sopalin_data structures.  If step = 1, fields used only for factorization are cleaned.  If step = 2, all fields are freed.  This function is mono-thread and must be called just by one thread.

Parameters

sopalin_dataSopalin_data structure to clean
stepCleaning step (1 or 2, partial or complete)

Returns

void

sopalin_init_smp

void sopalin_init_smp(Sopalin_Data_t *sopalin_data,
INT me,
int fact,
int init)

Allocate and initialize thread_data This function is mono-thread and must be called by each thread.

Parameters

sopalin_dataSopalin_data structure
meThread indice
factBoolean for factorisation step or not

Returns

void

sopalin_clean_smp

void sopalin_clean_smp(Sopalin_Data_t *sopalin_data,
INT me)

Clean the thread_data structure.  This function is mono-thread and must be called just each thread.

Parameters

sopalin_dataSopalin_data structure
thread_datathread_data structure to clean

Returns

void

sopalin_backup

void sopalin_backup(SolverMatrix *datacode,
Backup *b)

Backup solver matrix counters.  (Fonction Mono-thread)

Parameters

datacodeSolverMatrix structure (common data)
bBackup_t structure

Returns

void

sopalin_restore

void sopalin_restore(SolverMatrix *datacode,
Backup *b)

Restore solver matrix counters.  (Fonction Mono-thread)

Parameters

datacodeSolverMatrix structure (common data)
bBackup structure

Returns void

solve_backup

void solve_backup(SolverMatrix *datacode,
BackupSolve_t *b)

Backup solver matrix fanin contrib counters.  (Fonction Mono-thread)

Parameters

datacodeSolverMatrix structure (common data)
bBackupSolve_t structure

Returns

void

solve_restore

void solve_restore(SolverMatrix *datacode,
BackupSolve_t *b)

Restore solver matrix fanin contrib counters.  (Fonction Mono-thread)

Parameters

datacodeSolverMatrix structure (common data)
bBackupSolve_t structure

Returns void

void sopalin_init(Sopalin_Data_t *sopalin_data,
SolverMatrix *m,
SopalinParam *sopaparam,
int fact)
Allocate fields of the sopalin_data structures and initialize them.
void sopalin_clean(Sopalin_Data_t *sopalin_data,
int step)
Clean the fields in sopalin_data structures.
void sopalin_init_smp(Sopalin_Data_t *sopalin_data,
INT me,
int fact,
int init)
Allocate and initialize thread_data This function is mono-thread and must be called by each thread.
void sopalin_clean_smp(Sopalin_Data_t *sopalin_data,
INT me)
Clean the thread_data structure.
void sopalin_backup(SolverMatrix *datacode,
Backup *b)
Backup solver matrix counters.
void sopalin_restore(SolverMatrix *datacode,
Backup *b)
Restore solver matrix counters.
void solve_backup(SolverMatrix *datacode,
BackupSolve_t *b)
Backup solver matrix fanin contrib counters.
void solve_restore(SolverMatrix *datacode,
BackupSolve_t *b)
Restore solver matrix fanin contrib counters.
Close