7.1
general documentation
cs_matrix_hypre.h File Reference
#include "cs_defs.h"
#include "cs_halo.h"
#include "cs_matrix.h"
#include "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. More...
 

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)