mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add first fully functioning M-callable C implementation of the
'ip_simple' mimetic inner product. Coincides with the results from 'computeMimeticIP' to (roughly) the order of round-off on a non-trivial test case. The calling interface is BI = mex_ip_simple(G, rock) and some latitude has been extended towards multiple data types in the various G fields (e.g., G.cells.facePos may be an 'int32'). Additional clean-up and optimisation is likely.
This commit is contained in:
parent
4c469918e1
commit
714dfd0545
@ -1,6 +1,12 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#if COMPILING_FOR_MATLAB
|
||||||
|
#include "mex.h"
|
||||||
|
#include "matrix.h"
|
||||||
|
#define MAT_SIZE_T mwSignedIndex
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef MAT_SIZE_T
|
#ifndef MAT_SIZE_T
|
||||||
#define MAT_SIZE_T int
|
#define MAT_SIZE_T int
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user