opm-core/coarse_conn.h
Bård Skaflestad 9cd8f309c3 Announce and implement the public interface for deriving coarse-grid
topology from a fine-grid topology and a partition vector.
2010-08-30 16:51:25 +00:00

27 lines
469 B
C

#ifndef COARSE_CONN_H_INCLUDED
#define COARSE_CONN_H_INCLUDED
struct coarse_topology {
int nblocks;
int nfaces;
int *neighbours;
int *blkfacepos;
int *blkfaces;
int *subfacepos;
int *subfaces;
};
struct coarse_topology *
coarse_topology_create(int nc, int nf, int expct_nconn,
const int *p, const int *neighbours);
void
coarse_topology_destroy(struct coarse_topology *t);
#endif /* COARSE_CONN_H_INCLUDED */