Ice Sheet System Model
4.18
Code documentation
src
c
toolkits
petsc
patches
ISSMToPetscInsertMode.cpp
Go to the documentation of this file.
1
/* \file ISSMToPetscInsertMode.cpp
2
* \brief: convert InsertMode 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
InsertMode
ISSMToPetscInsertMode
(
InsMode
mode){
21
22
switch
(mode){
23
case
ADD_VAL
:
24
return
ADD_VALUES;
25
break
;
26
case
INS_VAL
:
27
return
INSERT_VALUES;
28
break
;
29
default
:
30
_error_
(
"unknown insert mode!"
);
31
break
;
32
}
33
}
ADD_VAL
@ ADD_VAL
Definition:
toolkitsenums.h:14
INS_VAL
@ INS_VAL
Definition:
toolkitsenums.h:14
_error_
#define _error_(StreamArgs)
Definition:
exceptions.h:49
ISSMToPetscInsertMode
InsertMode ISSMToPetscInsertMode(InsMode mode)
Definition:
ISSMToPetscInsertMode.cpp:20
InsMode
InsMode
Definition:
toolkitsenums.h:14
Generated on Thu Jul 2 2020 08:09:22 for Ice Sheet System Model by
1.8.19