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:
Bård Skaflestad 2010-07-08 23:28:33 +00:00
parent 4c469918e1
commit 714dfd0545

View File

@ -1,6 +1,12 @@
#include <stddef.h>
#include <stdlib.h>
#if COMPILING_FOR_MATLAB
#include "mex.h"
#include "matrix.h"
#define MAT_SIZE_T mwSignedIndex
#endif
#ifndef MAT_SIZE_T
#define MAT_SIZE_T int
#endif