9.0
general documentation
Loading...
Searching...
No Matches
cs_matrix_hypre.cpp File Reference

Sparse Matrix Representation and Operations using HYPRE. More...

#include "base/cs_defs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <HYPRE.h>
#include <HYPRE_IJ_mv.h>
#include <HYPRE_parcsr_mv.h>
#include <HYPRE_utilities.h>
#include "bft/bft_error.h"
#include "bft/bft_printf.h"
#include "base/cs_base.h"
#include "base/cs_halo.h"
#include "base/cs_log.h"
#include "base/cs_mem.h"
#include "base/cs_numbering.h"
#include "base/cs_timer.h"
#include "alge/cs_matrix.h"
#include "base/cs_base_accel.h"
#include "alge/cs_matrix_default.h"
#include "alge/cs_matrix_hypre.h"
#include "alge/cs_matrix_hypre_priv.h"
#include "alge/cs_matrix_priv.h"
Include dependency graph for cs_matrix_hypre.cpp:

Macros

#define HYPRE_RELEASE_NUMBER   0

Functions

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

Detailed Description

Sparse Matrix Representation and Operations using HYPRE.

Macro Definition Documentation

◆ HYPRE_RELEASE_NUMBER

#define HYPRE_RELEASE_NUMBER   0

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)