Ice Sheet System Model
4.18
Code documentation
src
c
toolkits
petsc
patches
ISSMToPetscNormMode.cpp
Go to the documentation of this file.
1
/* \file ISSMToPetscNormMode.cpp
2
* \brief: convert NormMode from ISSM to Petsc
3
*/
4
5
#ifdef HAVE_CONFIG_H
6
#include <config.h>
7
#else
8
#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
9
#endif
10
11
/*Petsc includes: */
12
#include <petscmat.h>
13
#include <petscvec.h>
14
#include <petscksp.h>
15
16
/*ISSM includes: */
17
#include "../../toolkitsenums.h"
18
#include "../../../shared/shared.h"
19
20
NormType
ISSMToPetscNormMode
(
NormMode
mode){
21
22
switch
(mode){
23
case
NORM_INF
:
24
return
NORM_INFINITY;
25
break
;
26
case
NORM_TWO
:
27
return
NORM_2;
28
break
;
29
default
:
30
_error_
(
"unknown norm !"
);
31
break
;
32
}
33
}
NORM_INF
@ NORM_INF
Definition:
toolkitsenums.h:15
NORM_TWO
@ NORM_TWO
Definition:
toolkitsenums.h:15
ISSMToPetscNormMode
NormType ISSMToPetscNormMode(NormMode mode)
Definition:
ISSMToPetscNormMode.cpp:20
NormMode
NormMode
Definition:
toolkitsenums.h:15
_error_
#define _error_(StreamArgs)
Definition:
exceptions.h:49
Generated on Thu Jul 2 2020 08:09:22 for Ice Sheet System Model by
1.8.19