#include <stdlib.h>#include <stdio.h>#include <string.h>#include <math.h>#include <assert.h>#include "pdh_intf.h"#include "sih_intf.h"#include "./sih_lapack.h"#include "lin_alg_intf.h"#include "uth_log.h"
Functions | |
| int | sir_direct_put_list (int Num, int *List, int Ll) |
| int | sir_direct_module_introduce (char *Solver_name) |
| int | sir_direct_solve_lin_sys (int Problem_id, int Parallel, char *Filename) |
| int | sir_direct_init (int Parallel, char *Filename) |
| int | sir_direct_create (int Solver_id, int Problem_id) |
| int | sir_direct_solve (int Solver_id, int Comp_type, int Monitor) |
| int | sir_direct_assemble_stiff_mat (int Solver_id, int Comp_type, int Nr_dof_bl, int *L_bl_nrdofs, int *L_bl_posglob, double *Stiff_mat, double *Rhs_vect, char *Rewr_dofs) |
| int | sir_direct_free (int Solver_id) |
| int | sir_direct_destroy (int Solver_id) |
| sit_direct_solver * | sir_direct_select_solver (int Solver_id) |
Variables | |
| int | siv_direct_nr_solvers = 0 |
| int | siv_direct_cur_solver_id |
| sit_direct_solver | siv_direct_solvers [SIC_MAX_NUM_SOLV] |
| int sir_direct_assemble_stiff_mat | ( | int | Solver_id, | |
| int | Comp_type, | |||
| int | Nr_dof_bl, | |||
| int * | L_bl_nrdofs, | |||
| int * | L_bl_posglob, | |||
| double * | Stiff_mat, | |||
| double * | Rhs_vect, | |||
| char * | Rewr_dofs | |||
| ) |
----------------------------------------------------------- sir_direct_assemble_stiff_mat - to assemble entries to the global stiffness matrix and the global load vector using the provided local stiffness matrix and load vector ------------------------------------------------------------


| int sir_direct_create | ( | int | Solver_id, | |
| int | Problem_id | |||
| ) |
----------------------------------------------------------- sir_direct_create - to create and initialize solver data structure ------------------------------------------------------------
| Solver_id | returns: >=0 - success code, <0 - error code | |
| Problem_id | in: solver identification ID of the problem associated with the solver |


| int sir_direct_destroy | ( | int | Solver_id | ) |
----------------------------------------------------------- sir_direct_destroy - to destroy a solver instance and make room for next solvers ------------------------------------------------------------
| Solver_id | returns: >=0 - success code, <0 - error code in: solver identification |

| int sir_direct_free | ( | int | Solver_id | ) |
----------------------------------------------------------- sir_direct_free - to free memory for stiffness and preconditioner matrices ------------------------------------------------------------
| Solver_id | returns: >=0 - success code, <0 - error code in: solver identification |


| int sir_direct_init | ( | int | Parallel, | |
| char * | Filename | |||
| ) |
----------------------------------------------------------- sir_direct_init - to create a new iterative solver, read its control parameters and initialize its data structure ------------------------------------------------------------
| Parallel | returns: >0 - solver ID, <0 - error code | |
| Filename | parameter specifying sequential (SIC_SEQUENTIAL) or parallel (SIC_PARALLEL) execution in: name of the file with control parameters |

| int sir_direct_module_introduce | ( | char * | Solver_name | ) |
----------------------------------------------------------- sir_direct_module_introduce - to return the direct solver name ------------------------------------------------------------
| Solver_name | returns: >=0 - success code, <0 - error code out: the name of the solver |
| int sir_direct_put_list | ( | int | Num, | |
| int * | List, | |||
| int | Ll | |||
| ) |

| sit_direct_solver* sir_direct_select_solver | ( | int | Solver_id | ) |
----------------------------------------------------------- sir_direct_select_solver - to return the pointer to a given solver ------------------------------------------------------------

| int sir_direct_solve | ( | int | Solver_id, | |
| int | Comp_type, | |||
| int | Monitor | |||
| ) |
----------------------------------------------------------- sir_direct_solve - to solve the system for a given data ------------------------------------------------------------
| Solver_id | returns: >=0 - success code, <0 - error code | |
| Comp_type | in: solver identification | |
| Monitor | in: indicator for the scope of computations: SIC_SOLVE - solve the system SIC_RESOLVE - resolve for the new right hand side in: monitoring flag with options: SIC_PRINT_NOT - do not print anything SIC_PRINT_ERRORS - print error messages only SIC_PRINT_INFO - print most important information SIC_PRINT_ALLINFO - print all available information |


| int siv_direct_nr_solvers = 0 |
| sit_direct_solver siv_direct_solvers[SIC_MAX_NUM_SOLV] |
1.6.1