53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
/*===========================================================================
|
|
//
|
|
// File: preprocess.h
|
|
//
|
|
// Created: Fri Jun 19 08:43:04 2009
|
|
//
|
|
// Author: Jostein R. Natvig <Jostein.R.Natvig@sintef.no>
|
|
//
|
|
// $Date: 2010-08-27 19:12:16 +0200 (Fri, 27 Aug 2010) $
|
|
//
|
|
// $Revision: 930 $
|
|
//
|
|
//==========================================================================*/
|
|
|
|
/*
|
|
Copyright 2010 SINTEF ICT, Applied Mathematics.
|
|
*/
|
|
|
|
#ifndef CGRIDINTERFACE_H
|
|
#define CGRIDINTERFACE_H
|
|
|
|
#include <grid.h>
|
|
|
|
#include "preprocess.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct CornerpointGrid {
|
|
struct UnstructuredGrid grid;
|
|
|
|
/*
|
|
* Special cornerpoint definitions
|
|
*/
|
|
int cartdims[3];
|
|
int *index_map;
|
|
};
|
|
|
|
|
|
void preprocess (const struct grdecl *in,
|
|
double tol,
|
|
struct CornerpointGrid *out);
|
|
|
|
void compute_geometry (struct CornerpointGrid *g);
|
|
|
|
void free_cornerpoint_grid(struct CornerpointGrid *g);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* CGRIDINTERFACE_H */
|