/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/utils/eh_grid.c File Reference

#include <eh_utils.h>
#include <string.h>

Go to the source code of this file.

Functions

Eh_ind_2 eh_ind_2_create (int i, int j)
gboolean eh_ind_2_cmp (Eh_ind_2 a, Eh_ind_2 b)
Eh_ind_2eh_ind_2_dup (Eh_ind_2 *src, Eh_ind_2 *dest)
gssize eh_grid_n_x (Eh_grid g)
gssize eh_grid_n_y (Eh_grid g)
gssize eh_grid_n_el (Eh_grid g)
gssize eh_grid_el_size (Eh_grid g)
gssize eh_grid_low_x (Eh_grid g)
gssize eh_grid_low_y (Eh_grid g)
double * eh_grid_x (Eh_grid g)
double * eh_grid_y (Eh_grid g)
void * eh_grid_row (Eh_grid g, gssize row)
void ** eh_grid_data (Eh_grid g)
double ** eh_dbl_grid_data (Eh_grid g)
double ** eh_dbl_grid_data_start (Eh_grid g)
void * eh_grid_data_start (Eh_grid g)
Eh_grid eh_grid_set_data (Eh_grid g, void **new_data)
Eh_grid eh_grid_set_x_lin (Eh_grid g, double x_0, double dx)
Eh_grid eh_grid_set_y_lin (Eh_grid g, double y_0, double dy)
Eh_grid eh_grid_malloc (gssize n_x, gssize n_y, gssize size)
Eh_dbl_grid eh_dbl_grid_new_set (gint n_x, gint n_y, double **d)
Eh_grid eh_grid_malloc_uniform (gssize n_x, gssize n_y, gssize size, double dx, double dy)
Eh_grid eh_grid_resize (Eh_grid g, gssize n_x, gssize n_y)
Eh_grid eh_grid_add_row (Eh_grid g, void *new_row)
Eh_grid eh_grid_add_column (Eh_grid g, void *new_column)
void eh_grid_free_data (Eh_grid g, gboolean free_data)
Eh_grid eh_grid_destroy (Eh_grid g, gboolean free_data)
void eh_grid_dump (FILE *fp, Eh_grid g)
Eh_grid eh_grid_load (FILE *fp)
gboolean eh_grid_cmp_data (Eh_grid g_1, Eh_grid g_2)
gboolean eh_grid_cmp_x_data (Eh_grid g_1, Eh_grid g_2)
gboolean eh_grid_cmp_y_data (Eh_grid g_1, Eh_grid g_2)
gboolean eh_grid_cmp (Eh_grid g_1, Eh_grid g_2)
gboolean eh_dbl_grid_cmp (Eh_dbl_grid g_1, Eh_dbl_grid g_2, double eps)
Eh_grid eh_grid_dup (Eh_grid g)
Eh_grid eh_grid_copy (Eh_grid dest, Eh_grid src)
Eh_grid eh_grid_copy_data (Eh_grid dest, Eh_grid src)
Eh_grid eh_grid_reindex (Eh_grid g, gssize low_x, gssize low_y)
gboolean eh_grid_is_in_domain (Eh_grid g, gssize i, gssize j)
gboolean eh_grid_is_same_size (Eh_grid g_1, Eh_grid g_2)
Eh_grid_id eh_grid_sub_to_id (gssize n_j, gssize i, gssize j)
Eh_ind_2 eh_grid_id_to_sub (gssize n_i, Eh_grid_id id)
void eh_dbl_grid_set_val (Eh_dbl_grid g, gssize i, gssize j, double val)
void eh_int_grid_set_val (Eh_dbl_grid g, gssize i, gssize j, int val)
double eh_dbl_grid_val (Eh_dbl_grid g, gssize i, gssize j)
int eh_int_grid_val (Eh_int_grid g, gssize i, gssize j)
void * eh_grid_loc (Eh_grid g, gssize i, gssize j)
int eh_dbl_grid_write (FILE *fp, Eh_dbl_grid g)
gboolean eh_grid_is_compatible (Eh_grid g_1, Eh_grid g_2)
Eh_dbl_grid eh_dbl_grid_subtract (Eh_dbl_grid g_1, Eh_dbl_grid g_2)
Eh_dbl_grid eh_dbl_grid_add (Eh_dbl_grid g_1, Eh_dbl_grid g_2)
double eh_dbl_grid_sum (Eh_dbl_grid g)
double eh_dbl_grid_sum_bad_val (Eh_dbl_grid g, double bad_val)
Eh_dbl_grid eh_dbl_grid_set (Eh_dbl_grid g, double val)
Eh_dbl_grid eh_dbl_grid_randomize (Eh_dbl_grid g)
void eh_dbl_grid_scalar_mult (Eh_dbl_grid g, double scalar)
Eh_dbl_grid eh_dbl_grid_rotate (Eh_dbl_grid g, double angle, gssize i_0, gssize j_0, double *lost)
Eh_dbl_grid eh_dbl_grid_reduce (Eh_dbl_grid g, gssize new_n_x, gssize new_n_y)
Eh_dbl_grid eh_dbl_grid_expand (Eh_dbl_grid g, gssize new_n_x, gssize new_n_y)
Eh_dbl_grid eh_dbl_grid_remesh (Eh_dbl_grid g, gssize new_n_x, gssize new_n_y)
void interpolate_2 (Eh_dbl_grid source, Eh_dbl_grid dest)
void interpolate_2_bad_val (Eh_dbl_grid source, Eh_dbl_grid dest, double bad_val)
gboolean eh_grid_path_is_same (gssize *p_1, gssize *p_2)
gssize eh_grid_path_len (gssize *p)
Eh_grid_ideh_dbl_grid_line_ids (Eh_dbl_grid g, gssize i_0, gssize j_0, gssize i_1, gssize j_1)
Eh_grid sed_grid_sub (Eh_grid g, int i_0, int j_0, int n_x, int n_y)
void eh_dbl_grid_rebin (Eh_dbl_grid source, Eh_dbl_grid dest)
void eh_dbl_grid_rebin_bad_val (Eh_dbl_grid source, Eh_dbl_grid dest, double bad_val)
void eh_grid_foreach (Eh_grid g, GFunc func, gpointer user_data)
Eh_dbl_grid eh_dbl_grid_populate (Eh_dbl_grid g, Populate_func f, gpointer user_data)
void eh_dbl_grid_fprintf (FILE *fp, const gchar *format, Eh_dbl_grid g)
Eh_grid eh_grid_transpose (Eh_grid g)
Eh_dbl_grid eh_dbl_grid_diff (Eh_dbl_grid g, gssize n, gssize dim)


Function Documentation

Eh_dbl_grid eh_dbl_grid_add ( Eh_dbl_grid  g_1,
Eh_dbl_grid  g_2 
)

Definition at line 598 of file eh_grid.c.

References eh_grid_data_start(), eh_grid_is_compatible(), and eh_require.

Referenced by main(), run_isostasy(), and subside_grid_load().

gboolean eh_dbl_grid_cmp ( Eh_dbl_grid  g_1,
Eh_dbl_grid  g_2,
double  eps 
)

Definition at line 380 of file eh_grid.c.

References eh_grid_cmp(), eh_grid_data_start(), eh_grid_is_same_size(), and eh_grid_n_el().

double** eh_dbl_grid_data ( Eh_grid  g  ) 

Definition at line 93 of file eh_grid.c.

Referenced by add_sediment_from_external_source(), diffuse_grid(), diffuse_sediment_2(), eh_dlm_print_dbl_grid(), inflow_set_bathy_data_from_cube(), main(), plumeout3(), run_isostasy(), run_plume_hypo(), run_subsidence(), sakura_set_bathy_data_from_cube(), sakura_write_data(), subside_grid_load(), subside_half_plane_load(), and subside_point_load().

double** eh_dbl_grid_data_start ( Eh_grid  g  ) 

Definition at line 99 of file eh_grid.c.

References eh_grid_data_start().

Eh_dbl_grid eh_dbl_grid_diff ( Eh_dbl_grid  g,
gssize  n,
gssize  dim 
)

Definition at line 1315 of file eh_grid.c.

References eh_dbl_array_diff(), eh_grid_new, and eh_grid_transpose().

Eh_dbl_grid eh_dbl_grid_expand ( Eh_dbl_grid  g,
gssize  new_n_x,
gssize  new_n_y 
)

Definition at line 742 of file eh_grid.c.

References eh_dbl_grid_remesh(), and eh_require.

Referenced by run_isostasy().

void eh_dbl_grid_fprintf ( FILE *  fp,
const gchar *  format,
Eh_dbl_grid  g 
)

Definition at line 1203 of file eh_grid.c.

References eh_require.

Referenced by eh_data_record_print().

Eh_grid_id* eh_dbl_grid_line_ids ( Eh_dbl_grid  g,
gssize  i_0,
gssize  j_0,
gssize  i_1,
gssize  j_1 
)

Definition at line 916 of file eh_grid.c.

References eh_dbl_grid_line_ids(), eh_grid_n_y(), eh_grid_sub_to_id(), eh_new, and floor.

Referenced by eh_dbl_grid_line_ids().

Eh_dbl_grid eh_dbl_grid_new_set ( gint  n_x,
gint  n_y,
double **  d 
)

Definition at line 162 of file eh_grid.c.

References eh_new, eh_return_val_if_fail, and NEW_OBJECT.

Referenced by sed_bathy_grid_scan_2d_ascii().

Eh_dbl_grid eh_dbl_grid_populate ( Eh_dbl_grid  g,
Populate_func  f,
gpointer  user_data 
)

Definition at line 1172 of file eh_grid.c.

References eh_dbl_grid_scalar_mult(), eh_dbl_grid_set_val(), eh_dbl_grid_val(), eh_get_fuzzy_dbl(), and floor.

Referenced by run_bedload().

Eh_dbl_grid eh_dbl_grid_randomize ( Eh_dbl_grid  g  ) 

Definition at line 653 of file eh_grid.c.

References eh_grid_data_start(), and eh_grid_n_el().

void eh_dbl_grid_rebin ( Eh_dbl_grid  source,
Eh_dbl_grid  dest 
)

Definition at line 1106 of file eh_grid.c.

References eh_dbl_grid_rebin_bad_val(), and eh_nan().

void eh_dbl_grid_rebin_bad_val ( Eh_dbl_grid  source,
Eh_dbl_grid  dest,
double  bad_val 
)

Definition at line 1111 of file eh_grid.c.

References eh_free, eh_grid_reindex(), eh_new, and eh_rebin_dbl_array_bad_val().

Referenced by eh_dbl_grid_rebin(), and plumeout3().

Eh_dbl_grid eh_dbl_grid_reduce ( Eh_dbl_grid  g,
gssize  new_n_x,
gssize  new_n_y 
)

Definition at line 733 of file eh_grid.c.

References eh_dbl_grid_remesh(), and eh_require.

Eh_dbl_grid eh_dbl_grid_remesh ( Eh_dbl_grid  g,
gssize  new_n_x,
gssize  new_n_y 
)

Definition at line 751 of file eh_grid.c.

References eh_free, eh_grid_dup(), eh_grid_new, eh_grid_reindex(), eh_new, eh_require, interpolate(), and interpolate_2().

Referenced by eh_dbl_grid_expand(), eh_dbl_grid_reduce(), and run_isostasy().

Eh_dbl_grid eh_dbl_grid_rotate ( Eh_dbl_grid  g,
double  angle,
gssize  i_0,
gssize  j_0,
double *  lost 
)

Definition at line 676 of file eh_grid.c.

References eh_compare_dbl(), eh_grid_copy_data(), eh_grid_destroy(), eh_grid_is_in_domain(), eh_grid_new, eh_grid_reindex(), and eh_round().

void eh_dbl_grid_scalar_mult ( Eh_dbl_grid  g,
double  scalar 
)

Definition at line 663 of file eh_grid.c.

References eh_grid_data_start(), and eh_return_if_fail.

Referenced by eh_dbl_grid_populate(), plumeout3(), and run_isostasy().

Eh_dbl_grid eh_dbl_grid_set ( Eh_dbl_grid  g,
double  val 
)

Definition at line 643 of file eh_grid.c.

References eh_grid_data_start(), and eh_grid_n_el().

Referenced by main(), and subside_grid_load().

void eh_dbl_grid_set_val ( Eh_dbl_grid  g,
gssize  i,
gssize  j,
double  val 
)

Definition at line 499 of file eh_grid.c.

Referenced by diffuse_grid(), diffuse_sediment_2(), eh_dbl_grid_populate(), get_diffusion_components(), interpolate_2_bad_val(), main(), run_bedload(), sed_cube_grid(), sed_cube_property_subgrid(), and sed_get_floor_3_default().

Eh_dbl_grid eh_dbl_grid_subtract ( Eh_dbl_grid  g_1,
Eh_dbl_grid  g_2 
)

Definition at line 583 of file eh_grid.c.

References eh_grid_data_start(), eh_grid_is_compatible(), and eh_require.

Referenced by run_isostasy().

double eh_dbl_grid_sum ( Eh_dbl_grid  g  ) 

Definition at line 613 of file eh_grid.c.

References eh_dbl_grid_sum_bad_val(), and eh_nan().

Referenced by deposit_in_ocean(), plumeout3(), and run_isostasy().

double eh_dbl_grid_sum_bad_val ( Eh_dbl_grid  g,
double  bad_val 
)

Definition at line 618 of file eh_grid.c.

References eh_grid_data_start(), eh_grid_n_el(), eh_isnan(), and eh_require.

Referenced by eh_dbl_grid_sum().

double eh_dbl_grid_val ( Eh_dbl_grid  g,
gssize  i,
gssize  j 
)

Definition at line 509 of file eh_grid.c.

Referenced by deposit_in_ocean(), diffuse_sediment_2(), eh_dbl_grid_populate(), get_diffusion_components(), interpolate_2_bad_val(), main(), run_bedload(), run_isostasy(), sed_cube_new_from_file(), sed_cube_set_bathy(), and subside_grid_load().

int eh_dbl_grid_write ( FILE *  fp,
Eh_dbl_grid  g 
)

Definition at line 524 of file eh_grid.c.

References eh_grid_data_start().

Eh_grid eh_grid_add_column ( Eh_grid  g,
void *  new_column 
)

Definition at line 251 of file eh_grid.c.

References eh_grid_resize().

Referenced by eh_data_record_add_column().

Eh_grid eh_grid_add_row ( Eh_grid  g,
void *  new_row 
)

Definition at line 242 of file eh_grid.c.

References eh_grid_resize(), and eh_require.

Referenced by eh_data_record_add_row(), and eh_data_record_scan().

gboolean eh_grid_cmp ( Eh_grid  g_1,
Eh_grid  g_2 
)

Definition at line 364 of file eh_grid.c.

References eh_grid_cmp_data(), eh_grid_cmp_x_data(), eh_grid_cmp_y_data(), and eh_grid_is_same_size().

Referenced by eh_dbl_grid_cmp().

gboolean eh_grid_cmp_data ( Eh_grid  g_1,
Eh_grid  g_2 
)

Definition at line 325 of file eh_grid.c.

References eh_grid_is_same_size().

Referenced by eh_grid_cmp().

gboolean eh_grid_cmp_x_data ( Eh_grid  g_1,
Eh_grid  g_2 
)

Definition at line 340 of file eh_grid.c.

Referenced by eh_grid_cmp().

gboolean eh_grid_cmp_y_data ( Eh_grid  g_1,
Eh_grid  g_2 
)

Definition at line 352 of file eh_grid.c.

Referenced by eh_grid_cmp().

Eh_grid eh_grid_copy ( Eh_grid  dest,
Eh_grid  src 
)

Definition at line 409 of file eh_grid.c.

References eh_grid_reindex(), and eh_require.

Referenced by eh_grid_dup(), run_isostasy(), and sed_cube_read().

Eh_grid eh_grid_copy_data ( Eh_grid  dest,
Eh_grid  src 
)

Definition at line 430 of file eh_grid.c.

References eh_grid_reindex(), and eh_require.

Referenced by eh_dbl_grid_rotate().

void** eh_grid_data ( Eh_grid  g  ) 

Definition at line 87 of file eh_grid.c.

Referenced by diffuse_grid(), rain_sediment_3(), and sed_cell_grid_data().

void* eh_grid_data_start ( Eh_grid  g  ) 

Definition at line 104 of file eh_grid.c.

Referenced by eh_dbl_grid_add(), eh_dbl_grid_cmp(), eh_dbl_grid_data_start(), eh_dbl_grid_randomize(), eh_dbl_grid_scalar_mult(), eh_dbl_grid_set(), eh_dbl_grid_subtract(), eh_dbl_grid_sum_bad_val(), eh_dbl_grid_write(), eh_grid_to_ndgrid(), get_sediment_flux(), main(), sed_bathy_grid_scan_1d_ascii(), sed_bathy_grid_scan_2d_binary(), sed_cell_grid_add(), sed_cell_grid_clear(), sed_cell_grid_copy_data(), sed_cell_grid_free(), sed_cell_grid_free_data(), sed_cell_grid_init(), sed_cell_grid_mass(), sed_get_floor_sequence_2(), and sed_get_floor_sequence_3().

Eh_grid eh_grid_destroy ( Eh_grid  g,
gboolean  free_data 
)

Definition at line 279 of file eh_grid.c.

References eh_free, and eh_grid_free_data().

Referenced by avulsion_full(), destroy_bbl(), destroy_isostasy(), destroy_plume_hypo(), destroy_subsidence(), diffuse_grid(), diffuse_sediment_2(), eh_data_record_destroy(), eh_data_record_interpolate_rows(), eh_dbl_grid_rotate(), get_sediment_flux(), inflow_set_bathy_data_from_cube(), interpolate_2_bad_val(), main(), run_bedload(), run_isostasy(), run_plume_hypo(), sakura_set_bathy_data_from_cube(), sed_bathy_grid_scan_2d_ascii(), sed_cell_grid_destroy(), sed_cube_destroy_in_suspension(), sed_cube_new_from_file(), sed_cube_property_subgrid(), sed_cube_read(), and subside_grid_load().

void eh_grid_dump ( FILE *  fp,
Eh_grid  g 
)

Definition at line 289 of file eh_grid.c.

Referenced by sed_cube_write().

Eh_grid eh_grid_dup ( Eh_grid  g  ) 

Definition at line 401 of file eh_grid.c.

References eh_grid_copy(), and eh_grid_malloc().

Referenced by eh_dbl_grid_remesh(), run_isostasy(), and subside_grid_load().

gssize eh_grid_el_size ( Eh_grid  g  ) 

Definition at line 57 of file eh_grid.c.

Referenced by eh_data_record_set_row().

void eh_grid_foreach ( Eh_grid  g,
GFunc  func,
gpointer  user_data 
)

Definition at line 1160 of file eh_grid.c.

References eh_return_if_fail.

void eh_grid_free_data ( Eh_grid  g,
gboolean  free_data 
)

Definition at line 264 of file eh_grid.c.

References eh_free, and eh_grid_reindex().

Referenced by eh_grid_destroy().

Eh_ind_2 eh_grid_id_to_sub ( gssize  n_i,
Eh_grid_id  id 
)

Definition at line 489 of file eh_grid.c.

References Eh_ind_2::i, and Eh_ind_2::j.

Referenced by sed_cube_sub(), and subside_helper().

gboolean eh_grid_is_compatible ( Eh_grid  g_1,
Eh_grid  g_2 
)

Definition at line 568 of file eh_grid.c.

Referenced by eh_dbl_grid_add(), eh_dbl_grid_subtract(), get_diffusion_components(), sed_cell_grid_add(), and sed_cell_grid_copy_data().

gboolean eh_grid_is_in_domain ( Eh_grid  g,
gssize  i,
gssize  j 
)

Definition at line 472 of file eh_grid.c.

Referenced by eh_dbl_grid_rotate().

gboolean eh_grid_is_same_size ( Eh_grid  g_1,
Eh_grid  g_2 
)

Definition at line 477 of file eh_grid.c.

Referenced by eh_dbl_grid_cmp(), eh_grid_cmp(), and eh_grid_cmp_data().

Eh_grid eh_grid_load ( FILE *  fp  ) 

Definition at line 301 of file eh_grid.c.

References eh_grid_malloc(), and eh_grid_reindex().

Referenced by sed_cube_read().

void* eh_grid_loc ( Eh_grid  g,
gssize  i,
gssize  j 
)

Definition at line 519 of file eh_grid.c.

gssize eh_grid_low_x ( Eh_grid  g  ) 

Definition at line 62 of file eh_grid.c.

Referenced by deposit_in_ocean(), interpolate_2_bad_val(), and run_bedload().

gssize eh_grid_low_y ( Eh_grid  g  ) 

Definition at line 67 of file eh_grid.c.

Referenced by deposit_in_ocean(), interpolate_2_bad_val(), and run_bedload().

Eh_grid eh_grid_malloc ( gssize  n_x,
gssize  n_y,
gssize  size 
)

Definition at line 137 of file eh_grid.c.

References eh_grid_resize(), eh_return_val_if_fail, and NEW_OBJECT.

Referenced by eh_grid_dup(), eh_grid_load(), eh_grid_malloc_uniform(), and sed_grid_sub().

Eh_grid eh_grid_malloc_uniform ( gssize  n_x,
gssize  n_y,
gssize  size,
double  dx,
double  dy 
)

Definition at line 184 of file eh_grid.c.

References eh_grid_malloc(), eh_grid_set_x_lin(), and eh_grid_set_y_lin().

gssize eh_grid_n_el ( Eh_grid  g  ) 

Definition at line 52 of file eh_grid.c.

Referenced by eh_dbl_grid_cmp(), eh_dbl_grid_randomize(), eh_dbl_grid_set(), eh_dbl_grid_sum_bad_val(), sed_cell_grid_add(), sed_cell_grid_clear(), sed_cell_grid_copy_data(), sed_cell_grid_free(), sed_cell_grid_free_data(), sed_cell_grid_init(), sed_cell_grid_mass(), and subside_grid_load().

gssize eh_grid_n_x ( Eh_grid  g  ) 

Definition at line 42 of file eh_grid.c.

Referenced by add_sediment_from_external_source(), avulsion_full(), deposit_in_ocean(), diffuse_grid(), diffuse_sediment_2(), eh_data_record_interpolate_rows(), eh_data_record_row(), eh_data_record_set_row(), eh_data_record_size(), eh_dlm_print_dbl_grid(), eh_grid_to_ndgrid(), get_diffusion_components(), interpolate_2_bad_val(), main(), plumeout3(), run_bedload(), run_plume_hypo(), sakura_write_data(), sed_cube_grid(), sed_cube_new_from_file(), sed_cube_set_bathy(), subside_grid_load(), subside_half_plane_load(), and subside_point_load().

gssize eh_grid_n_y ( Eh_grid  g  ) 

Definition at line 47 of file eh_grid.c.

Referenced by add_sediment_from_external_source(), avulsion_full(), deposit_in_ocean(), diffuse_grid(), diffuse_sediment_2(), eh_data_record_interpolate_rows(), eh_data_record_set_row(), eh_data_record_size(), eh_dbl_grid_line_ids(), eh_dlm_print_dbl_grid(), eh_grid_to_ndgrid(), get_diffusion_components(), interpolate_2_bad_val(), main(), plume3d(), plume_centerline_deposit(), plume_width_averaged_deposit(), plume_width_averaged_deposit_num(), plumeout3(), run_bedload(), run_plume_hypo(), sakura_write_data(), sed_cube_grid(), sed_cube_new_from_file(), sed_cube_set_bathy(), sed_get_floor_sequence_2(), subside_grid_load(), subside_half_plane_load(), subside_helper(), and subside_point_load().

gboolean eh_grid_path_is_same ( gssize *  p_1,
gssize *  p_2 
)

Definition at line 882 of file eh_grid.c.

References eh_grid_path_len(), and eh_return_val_if_fail.

gssize eh_grid_path_len ( gssize *  p  ) 

Definition at line 905 of file eh_grid.c.

References eh_return_val_if_fail.

Referenced by eh_grid_path_is_same().

Eh_grid eh_grid_reindex ( Eh_grid  g,
gssize  low_x,
gssize  low_y 
)

Definition at line 450 of file eh_grid.c.

Referenced by eh_dbl_grid_rebin_bad_val(), eh_dbl_grid_remesh(), eh_dbl_grid_rotate(), eh_grid_copy(), eh_grid_copy_data(), eh_grid_free_data(), eh_grid_load(), eh_grid_transpose(), interpolate_2_bad_val(), run_bedload(), run_plume_hypo(), and sed_cube_create_in_suspension().

Eh_grid eh_grid_resize ( Eh_grid  g,
gssize  n_x,
gssize  n_y 
)

Definition at line 194 of file eh_grid.c.

References eh_free, eh_new, and eh_renew.

Referenced by eh_data_record_scan(), eh_grid_add_column(), eh_grid_add_row(), and eh_grid_malloc().

void* eh_grid_row ( Eh_grid  g,
gssize  row 
)

Definition at line 82 of file eh_grid.c.

Referenced by eh_data_record_interpolate_rows(), eh_data_record_row(), interpolate_2_bad_val(), and sed_cell_grid_val().

Eh_grid eh_grid_set_data ( Eh_grid  g,
void **  new_data 
)

Definition at line 109 of file eh_grid.c.

Referenced by diffuse_grid().

Eh_grid eh_grid_set_x_lin ( Eh_grid  g,
double  x_0,
double  dx 
)

Definition at line 115 of file eh_grid.c.

References eh_dbl_array_linspace(), and eh_require.

Referenced by eh_grid_malloc_uniform(), main(), run_isostasy(), and run_plume_hypo().

Eh_grid eh_grid_set_y_lin ( Eh_grid  g,
double  y_0,
double  dy 
)

Definition at line 126 of file eh_grid.c.

References eh_dbl_array_linspace(), and eh_require.

Referenced by eh_grid_malloc_uniform(), main(), run_isostasy(), run_plume_hypo(), and sed_bathy_grid_scan_1d_ascii().

Eh_grid_id eh_grid_sub_to_id ( gssize  n_j,
gssize  i,
gssize  j 
)

Definition at line 484 of file eh_grid.c.

Referenced by eh_dbl_grid_line_ids(), sed_cube_column_id(), sed_cube_find_column_above(), sed_cube_find_column_below(), sed_cube_id(), and sed_cube_river_path_id().

Eh_grid eh_grid_transpose ( Eh_grid  g  ) 

Definition at line 1223 of file eh_grid.c.

References eh_free, eh_grid_reindex(), eh_grid_x(), eh_memswap, eh_new, and eh_renew.

Referenced by eh_data_record_print(), eh_data_record_scan(), and eh_dbl_grid_diff().

double* eh_grid_x ( Eh_grid  g  ) 

Definition at line 72 of file eh_grid.c.

Referenced by eh_get_polygon_from_grid(), eh_grid_to_ndgrid(), eh_grid_transpose(), interpolate_2_bad_val(), plumeout3(), sed_bathy_grid_scan_2d_ascii(), sed_bathy_grid_scan_2d_binary(), sed_cube_new_from_file(), sed_get_floor_sequence_3(), and subside_point_load().

double* eh_grid_y ( Eh_grid  g  ) 

Definition at line 77 of file eh_grid.c.

Referenced by eh_get_polygon_from_grid(), eh_grid_to_ndgrid(), interpolate_2_bad_val(), plume3d(), plume_centerline_deposit(), plume_width_averaged_deposit(), plume_width_averaged_deposit_num(), plumeout3(), sed_bathy_grid_scan_1d_ascii(), sed_bathy_grid_scan_2d_ascii(), sed_bathy_grid_scan_2d_binary(), sed_cube_new_from_file(), sed_get_floor_sequence_2(), sed_get_floor_sequence_3(), subside_half_plane_load(), and subside_point_load().

gboolean eh_ind_2_cmp ( Eh_ind_2  a,
Eh_ind_2  b 
)

Definition at line 28 of file eh_grid.c.

References Eh_ind_2::i, and Eh_ind_2::j.

Eh_ind_2 eh_ind_2_create ( int  i,
int  j 
)

Definition at line 20 of file eh_grid.c.

References Eh_ind_2::i, and Eh_ind_2::j.

Referenced by get_offset_from_angle(), sed_cube_find_line_path(), and sed_find_next_shore().

Eh_ind_2* eh_ind_2_dup ( Eh_ind_2 src,
Eh_ind_2 dest 
)

Definition at line 33 of file eh_grid.c.

References eh_new, Eh_ind_2::i, and Eh_ind_2::j.

Referenced by sed_cube_find_adjacent_shore_edge(), sed_cube_find_line_path(), sed_find_next_shore(), and sed_find_river_mouth().

void eh_int_grid_set_val ( Eh_dbl_grid  g,
gssize  i,
gssize  j,
int  val 
)

Definition at line 504 of file eh_grid.c.

int eh_int_grid_val ( Eh_int_grid  g,
gssize  i,
gssize  j 
)

Definition at line 514 of file eh_grid.c.

void interpolate_2 ( Eh_dbl_grid  source,
Eh_dbl_grid  dest 
)

Definition at line 831 of file eh_grid.c.

References eh_nan(), and interpolate_2_bad_val().

Referenced by eh_dbl_grid_remesh().

void interpolate_2_bad_val ( Eh_dbl_grid  source,
Eh_dbl_grid  dest,
double  bad_val 
)

Definition at line 837 of file eh_grid.c.

References eh_dbl_grid_set_val(), eh_dbl_grid_val(), eh_free, eh_grid_destroy(), eh_grid_low_x(), eh_grid_low_y(), eh_grid_n_x(), eh_grid_n_y(), eh_grid_new, eh_grid_reindex(), eh_grid_row(), eh_grid_x(), eh_grid_y(), eh_new, and interpolate_bad_val().

Referenced by interpolate_2().

Eh_grid sed_grid_sub ( Eh_grid  g,
int  i_0,
int  j_0,
int  n_x,
int  n_y 
)

Definition at line 1000 of file eh_grid.c.

References eh_grid_malloc().


Generated on Fri Jan 4 18:04:18 2008 for sedflux by  doxygen 1.5.2