geo_surface.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2011 Equinor ASA, Norway.
3
4 The file 'geo_surface.h' is part of ERT - Ensemble based Reservoir Tool.
5
6 ERT is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 ERT is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.
14
15 See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
16 for more details.
17*/
18
19
20#ifndef ERT_GEO_SURFACE_H
21#define ERT_GEO_SURFACE_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27
29
30
31 typedef struct geo_surface_struct geo_surface_type;
32
33 bool geo_surface_equal_header( const geo_surface_type * surface1 , const geo_surface_type * surface2 );
34 bool geo_surface_equal( const geo_surface_type * surface1 , const geo_surface_type * surface2);
35 void geo_surface_free( geo_surface_type * geo_surface );
36 void geo_surface_free__( void * arg);
38 geo_surface_type * geo_surface_fload_alloc_irap( const char * filename , bool loadz);
39 geo_surface_type * geo_surface_alloc_new( int nx, int ny, double xinc, double yinc, double xstart, double ystart, double angle );
40 bool geo_surface_fload_irap_zcoord( const geo_surface_type * surface, const char * filename, double *zlist);
41 double geo_surface_iget_zvalue(const geo_surface_type * surface, int index);
42 int geo_surface_get_size( const geo_surface_type * surface );
43 void geo_surface_fprintf_irap( const geo_surface_type * surface, const char * filename );
44 void geo_surface_fprintf_irap_external_zcoord( const geo_surface_type * surface, const char * filename , const double * zcoord);
45 int geo_surface_get_nx( const geo_surface_type * surface );
46 int geo_surface_get_ny( const geo_surface_type * surface );
47 void geo_surface_iget_xy( const geo_surface_type* surface, int index, double* x, double* y);
48
49 void geo_surface_shift( const geo_surface_type * src , double value);
50 void geo_surface_scale( const geo_surface_type * src , double value);
51 void geo_surface_isub( geo_surface_type * self , const geo_surface_type * other);
52 void geo_surface_iset_zvalue(geo_surface_type * surface, int index , double value);
53 void geo_surface_assign_value( const geo_surface_type * src , double value);
54 geo_surface_type * geo_surface_alloc_copy( const geo_surface_type * src , bool copy_zdata);
55 void geo_surface_iadd( geo_surface_type * self , const geo_surface_type * other);
56 void geo_surface_imul( geo_surface_type * self , const geo_surface_type * other);
58
59#ifdef __cplusplus
60}
61#endif
62#endif
int index
Definition: cJSON.h:168
struct geo_pointset_struct geo_pointset_type
Definition: geo_pointset.hpp:28
int geo_surface_get_nx(const geo_surface_type *surface)
bool geo_surface_equal_header(const geo_surface_type *surface1, const geo_surface_type *surface2)
void geo_surface_iadd(geo_surface_type *self, const geo_surface_type *other)
void geo_surface_fprintf_irap_external_zcoord(const geo_surface_type *surface, const char *filename, const double *zcoord)
geo_surface_type * geo_surface_fload_alloc_irap(const char *filename, bool loadz)
geo_surface_type * geo_surface_alloc_copy(const geo_surface_type *src, bool copy_zdata)
void geo_surface_shift(const geo_surface_type *src, double value)
double geo_surface_iget_zvalue(const geo_surface_type *surface, int index)
int geo_surface_get_size(const geo_surface_type *surface)
struct geo_surface_struct geo_surface_type
Definition: geo_surface.hpp:31
void geo_surface_isqrt(geo_surface_type *surface)
void geo_surface_fprintf_irap(const geo_surface_type *surface, const char *filename)
bool geo_surface_equal(const geo_surface_type *surface1, const geo_surface_type *surface2)
void geo_surface_iset_zvalue(geo_surface_type *surface, int index, double value)
void geo_surface_free__(void *arg)
int geo_surface_get_ny(const geo_surface_type *surface)
bool geo_surface_fload_irap_zcoord(const geo_surface_type *surface, const char *filename, double *zlist)
void geo_surface_assign_value(const geo_surface_type *src, double value)
void geo_surface_imul(geo_surface_type *self, const geo_surface_type *other)
void geo_surface_scale(const geo_surface_type *src, double value)
geo_pointset_type * geo_surface_get_pointset(const geo_surface_type *surface)
geo_surface_type * geo_surface_alloc_new(int nx, int ny, double xinc, double yinc, double xstart, double ystart, double angle)
void geo_surface_iget_xy(const geo_surface_type *surface, int index, double *x, double *y)
void geo_surface_free(geo_surface_type *geo_surface)
void geo_surface_isub(geo_surface_type *self, const geo_surface_type *other)
T value(details::expression_node< T > *n)
Definition: exprtk.hpp:12955
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x(y+z)