Add a simple QFS for testing from C.

Not integrated into Autotools build system.  Compile as

  gcc -g -Wall -ansi -pedantic -Wextra test_cfs_tpfa.c cfs_tpfa.c \
          well.c flow_bc.c trans_tpfa.c sparse_sys.c compr_quant.c \
      -lumfpack -llapack -lblas -lm

(or variants thereof).
This commit is contained in:
Bård Skaflestad 2011-08-26 15:30:20 +02:00
parent 809763f333
commit 3a713ac022

View File

@ -31,11 +31,11 @@ extern "C" {
struct compr_quantities { struct compr_quantities {
int nphases; /* Number of phases/components */ int nphases; /* Number of phases/components */
const double *totcompr; /* Total compressibility per cell */ double *totcompr; /* Total compressibility per cell */
const double *voldiscr; /* Volume discrepancy per cell */ double *voldiscr; /* Volume discrepancy per cell */
const double *Ac; /* RB^{-1} per cell */ double *Ac; /* RB^{-1} per cell */
const double *Af; /* RB^{-1} per face */ double *Af; /* RB^{-1} per face */
const double *phasemobf; /* Phase mobility per face */ double *phasemobf; /* Phase mobility per face */
}; };
void void