#include "cs_defs.h"
#include "cs_matrix.h"
Go to the source code of this file.
◆ cs_matrix_petsc_ensure_init()
void cs_matrix_petsc_ensure_init |
( |
void |
| ) |
|
◆ cs_matrix_petsc_finalize()
void cs_matrix_petsc_finalize |
( |
void |
| ) |
|
◆ cs_matrix_set_type_petsc()
void cs_matrix_set_type_petsc |
( |
cs_matrix_t * |
matrix, |
|
|
const char * |
type_name |
|
) |
| |
Switch matrix type to PETSc.
This releases previous coefficients if present, so should be called just after matrix creation, before assigning coefficients.
- Parameters
-
[in,out] | matrix | pointer to matrix structure |
[in] | type_name | string matching PETSc matrix type name, defaults to "MATAIJ" if NULL |