Ice Sheet System Model  4.18
Code documentation
Functions
ISSMToPetscMatrixType.cpp File Reference
#include <petscmat.h>
#include <petscvec.h>
#include <petscksp.h>
#include "../../toolkitsenums.h"
#include "../../../shared/shared.h"

Go to the source code of this file.

Functions

MatType ISSMToPetscMatrixType (MatrixType type)
 

Function Documentation

◆ ISSMToPetscMatrixType()

MatType ISSMToPetscMatrixType ( MatrixType  type)

Definition at line 20 of file ISSMToPetscMatrixType.cpp.

20  {
21 
22  switch(type){
23  case DENSE_SEQUENTIAL:
24  return MATSEQDENSE;
25  break;
26  case SPARSE_SEQUENTIAL:
27  return MATSEQAIJ;
28  break;
29  default:
30  _error_("unknown matrix type !");
31  break;
32  }
33 }
DENSE_SEQUENTIAL
@ DENSE_SEQUENTIAL
Definition: toolkitsenums.h:16
SPARSE_SEQUENTIAL
@ SPARSE_SEQUENTIAL
Definition: toolkitsenums.h:16
_error_
#define _error_(StreamArgs)
Definition: exceptions.h:49