Bård Skaflestad
2cb51aac48
Don't require build(er|system) to #define COMPILING_FOR_MATLAB in
...
order to compile this file.
2010-08-03 14:27:13 +00:00
Bård Skaflestad
287d230f8a
Ignore anything named *.mexa64 as these files are compiler output.
2010-07-09 15:36:29 +00:00
Bård Skaflestad
4ea66c06b1
Remove macro definition which is no longer needed.
2010-07-09 10:39:26 +00:00
Bård Skaflestad
eccc63d566
Assert copyright. Forgotten in previous revision.
2010-07-09 10:16:55 +00:00
Bård Skaflestad
945253df6b
Remove statements disabled in earlier revision.
2010-07-09 09:34:29 +00:00
Bård Skaflestad
81d00cc324
Add documentation and building quirk (-DCOMPILING_FOR_MATLAB=1).
2010-07-09 09:32:21 +00:00
Bård Skaflestad
5024034657
Use mxMalloc() and mxFree() over their ANSI C counterparts in order
...
to register memory usage with the M memory manager (e.g., for Ctrl-C
or error purposes).
2010-07-09 09:31:26 +00:00
Bård Skaflestad
5cc657c89e
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.
2010-07-08 23:28:33 +00:00
Bård Skaflestad
fc5bf7f555
Provide call interface to MEX routine for easier M testing.
2010-07-04 22:24:37 +00:00
Bård Skaflestad
9eca2f1e92
Implement cell loop (tentatively named mim_ip_simple_all()) and a
...
MEX gateway for easy testing from M. Builds with fairly strict
warnings, but is not tested yet.
2010-07-04 21:44:04 +00:00
Bård Skaflestad
49242b7e2f
The LAPACK and BLAS operators do not modify their (char*)
...
parameters. Declare these operators as taking (const char*)s.
2010-07-03 11:07:56 +00:00
Bård Skaflestad
05d4a5fdef
Correct a few embarrasing matrix dimension errors (in the "linear
...
pressure" part).
2010-07-02 22:19:38 +00:00
Bård Skaflestad
56a7db04d3
Split mim_ip_simple() up into two co-operating procedures,
...
- mim_ip_span_nullspace()
Constructs orthogonal basis for mimetic IP null space.
- mim_ip_linpress_exact()
Adds term to impose exactness for linear pressure fields.
Re-implement mim_ip_simple() in terms of these procedures.
2010-06-29 21:18:23 +00:00
Bård Skaflestad
01edb43f47
Allow builder to -Define expansion of MAT_SIZE_T .
2010-06-29 19:11:26 +00:00
Bård Skaflestad
c5379fb191
Appease the -pedantic -ansi gods.
2010-06-29 15:32:03 +00:00
Bård Skaflestad
08d53ece42
Don't fall prey to refactoring errors.
2010-06-28 22:54:31 +00:00
Bård Skaflestad
5441bc3efe
For kicks and giggles, add an (untested) C+BLAS/LAPACK
...
implementation of the 'ip_simple' mimetic inner product.
Suggested by: jrn.
2010-06-28 22:47:55 +00:00