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

#include <stdio.h>
#include <math.h>
#include <string.h>
#include <glib.h>
#include <utils/utils.h>
#include <sed/sed_sedflux.h>
#include "my_processes.h"
#include "sedflux.h"

Go to the source code of this file.

Defines

#define EH_LOG_DOMAIN   BBL_PROCESS_NAME_S
#define BBL_ALGORITHM_NONE   (0)
#define BBL_ALGORITHM_MUDS   (1)
#define BBL_KEY_ALGORITHM   "algorithm"
#define BBL_KEY_SOURCE_FILE   "external sediment source file"

Functions

double add_sediment_from_external_source (Sed_cube p, Eh_sequence *seq, double start, double finish)
int rain_sediment_3 (Sed_cube p, int algorithm, Sed_riv r)
gboolean init_bbl_data (Sed_process p, Sed_cube prof, GError **error)
Sed_process_info run_bbl (Sed_process p, Sed_cube prof)
gboolean init_bbl (Sed_process p, Eh_symbol_table t, GError **error)
gboolean destroy_bbl (Sed_process p)


Define Documentation

#define BBL_ALGORITHM_MUDS   (1)

Definition at line 92 of file run_bbl.c.

Referenced by init_bbl().

#define BBL_ALGORITHM_NONE   (0)

Definition at line 91 of file run_bbl.c.

Referenced by init_bbl().

#define BBL_KEY_ALGORITHM   "algorithm"

Definition at line 94 of file run_bbl.c.

Referenced by init_bbl().

#define BBL_KEY_SOURCE_FILE   "external sediment source file"

Definition at line 95 of file run_bbl.c.

Referenced by init_bbl().

#define EH_LOG_DOMAIN   BBL_PROCESS_NAME_S

Definition at line 21 of file run_bbl.c.


Function Documentation

double add_sediment_from_external_source ( Sed_cube  p,
Eh_sequence seq,
double  start,
double  finish 
)

Definition at line 217 of file run_bbl.c.

References Eh_sequence::data, eh_dbl_grid_data(), eh_grid_n_x(), eh_grid_n_y(), eh_min, eh_require, Eh_sequence::len, sed_cell_destroy(), sed_cell_mass(), sed_cell_new_env(), sed_cell_resize(), sed_cell_set_equal_fraction(), sed_column_add_cell(), sed_cube_col_ij(), sed_cube_n_x(), sed_cube_n_y(), sed_cube_water_depth(), sed_cube_x_res(), sed_cube_y_res(), and Eh_sequence::t.

Referenced by run_bbl().

gboolean destroy_bbl ( Sed_process  p  ) 

Definition at line 194 of file run_bbl.c.

References Eh_sequence::data, eh_destroy_sequence(), eh_free, eh_grid_destroy(), Eh_sequence::len, sed_process_user_data(), and Bbl_t::src_seq.

gboolean init_bbl ( Sed_process  p,
Eh_symbol_table  t,
GError **  error 
)

Definition at line 105 of file run_bbl.c.

References Bbl_t::algorithm, BBL_ALGORITHM_MUDS, BBL_ALGORITHM_NONE, BBL_KEY_ALGORITHM, BBL_KEY_SOURCE_FILE, eh_free, eh_require, eh_return_val_if_fail, eh_symbol_table_lookup(), eh_symbol_table_require_labels(), eh_symbol_table_value(), Bbl_t::last_year, sed_mode_is_3d(), sed_process_new_user_data, SEDFLUX_ERROR, SEDFLUX_ERROR_BAD_ALGORITHM, Bbl_t::src_file, and Bbl_t::src_seq.

gboolean init_bbl_data ( Sed_process  p,
Sed_cube  prof,
GError **  error 
)

Definition at line 153 of file run_bbl.c.

References eh_free, Bbl_t::last_year, sed_cube_age_in_years(), sed_cube_n_y(), sed_cube_x_res(), sed_cube_y(), sed_cube_y_res(), sed_get_floor_sequence_2(), sed_get_floor_sequence_3(), sed_mode_is_3d(), sed_process_user_data(), Bbl_t::src_file, and Bbl_t::src_seq.

Referenced by run_bbl().

int rain_sediment_3 ( Sed_cube  p,
int  algorithm,
Sed_riv  r 
)

Definition at line 43 of file rain_sediment.c.

References construct_deposit_array_3(), eh_clamp, eh_grid_data(), eh_require, get_tidal_level(), get_tidal_time_step(), Eh_ind_2::i, Eh_ind_2::j, rain_3(), sed_cell_destroy(), sed_cell_grid_clear(), sed_cell_grid_destroy(), sed_cell_grid_new_env(), sed_cell_grid_val(), sed_cell_new_env(), sed_cell_size(), sed_cube_find_river_mouth(), sed_cube_in_suspension(), sed_cube_is_in_domain(), sed_cube_n_x(), sed_cube_n_y(), sed_cube_sea_level(), sed_cube_set_sea_level(), sed_cube_tidal_range(), sed_cube_time_step_in_days(), sed_cube_water_depth(), sed_cube_z_res(), and sed_river_mouth().

Referenced by run_bbl().

Sed_process_info run_bbl ( Sed_process  p,
Sed_cube  prof 
)

Definition at line 41 of file run_bbl.c.

References add_sediment_from_external_source(), Bbl_t::algorithm, eh_free, init_bbl_data(), Bbl_t::last_year, Sed_process_info::mass_added, Sed_process_info::mass_lost, rain_sediment_3(), sed_cell_grid_clear(), sed_cube_age_in_years(), sed_cube_all_branches(), sed_cube_in_suspension(), sed_cube_mass_in_suspension(), sed_cube_n_rivers(), SED_EMPTY_INFO, sed_process_run_count(), sed_process_user_data(), sed_river_name_loc(), and Bbl_t::src_seq.


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