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

Go to the source code of this file.

Functions

void cs_matrix_set_type_hypre (cs_matrix_t *matrix, int use_device)
 Switch matrix type to HYPRE.

Function Documentation

◆ cs_matrix_set_type_hypre()

void cs_matrix_set_type_hypre ( cs_matrix_t * matrix,
int use_device )

Switch matrix type to HYPRE.

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]use_device0 for host, 1 for device (GPU)