9.0
general documentation
Loading...
Searching...
No Matches
cs_matrix_petsc.h File Reference
#include "base/cs_defs.h"
#include "alge/cs_matrix.h"
Include dependency graph for cs_matrix_petsc.h:

Go to the source code of this file.

Functions

void cs_matrix_petsc_ensure_init (void)
void cs_matrix_petsc_finalize (void)
void cs_matrix_set_type_petsc (cs_matrix_t *matrix, const char *type_name)
 Switch matrix type to PETSc.

Function Documentation

◆ 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]matrixpointer to matrix structure
[in]type_namestring matching PETSc matrix type name, defaults to "MATAIJ" if NULL

This releases previous coefficients if present, so should be called just after matrix creation, before assigning coefficients.

Parameters
[in,out]matrixpointer to matrix structure
[in]type_namestring matching PETSc matrix type name, defaults to "MATAIJ" if nullptr