/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/sedflux/run_diffusion.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 <diffusion.h>
#include "my_processes.h"
#include "sedflux.h"

Go to the source code of this file.

Defines

#define SED_DIFFUSION_PROC_NAME   "diffusion"
#define EH_LOG_DOMAIN   SED_DIFFUSION_PROC_NAME
#define DIFFUSION_KEY_K_MAX   "diffusion constant"
#define DIFFUSION_KEY_SKIN_DEPTH   "diffusion 1% depth"
#define DIFFUSION_KEY_K_LONG_MAX   "long-shore diffusion constant"
#define DIFFUSION_KEY_K_CROSS_MAX   "cross-shore diffusion constant"

Functions

Sed_process_info run_diffusion (Sed_process proc, Sed_cube prof)
gboolean init_diffusion (Sed_process p, Eh_symbol_table tab, GError **error)
gboolean destroy_diffusion (Sed_process p)


Define Documentation

#define DIFFUSION_KEY_K_CROSS_MAX   "cross-shore diffusion constant"

Definition at line 96 of file run_diffusion.c.

#define DIFFUSION_KEY_K_LONG_MAX   "long-shore diffusion constant"

Definition at line 95 of file run_diffusion.c.

#define DIFFUSION_KEY_K_MAX   "diffusion constant"

Definition at line 93 of file run_diffusion.c.

Referenced by init_diffusion().

#define DIFFUSION_KEY_SKIN_DEPTH   "diffusion 1% depth"

Definition at line 94 of file run_diffusion.c.

Referenced by init_diffusion().

#define EH_LOG_DOMAIN   SED_DIFFUSION_PROC_NAME

Definition at line 22 of file run_diffusion.c.

#define SED_DIFFUSION_PROC_NAME   "diffusion"

Definition at line 21 of file run_diffusion.c.


Function Documentation

gboolean destroy_diffusion ( Sed_process  p  ) 

Definition at line 139 of file run_diffusion.c.

References eh_free, eh_input_val_destroy(), Diffusion_t::k_max, and sed_process_user_data().

gboolean init_diffusion ( Sed_process  p,
Eh_symbol_table  tab,
GError **  error 
)

Definition at line 106 of file run_diffusion.c.

References DIFFUSION_KEY_K_MAX, DIFFUSION_KEY_SKIN_DEPTH, eh_check_to_s(), eh_return_val_if_fail, eh_set_error_strv(), eh_symbol_table_dbl_value(), eh_symbol_table_input_value(), eh_symbol_table_require_labels(), Diffusion_t::k_max, sed_process_new_user_data, SEDFLUX_ERROR, SEDFLUX_ERROR_BAD_PARAM, and Diffusion_t::skin_depth.

Sed_process_info run_diffusion ( Sed_process  proc,
Sed_cube  prof 
)

Definition at line 36 of file run_diffusion.c.

References diffuse_sediment(), diffuse_sediment_2(), DIFFUSION_OPT_WATER, eh_free, eh_input_val_eval(), eh_require, Diffusion_t::k_max, sed_cell_destroy(), sed_cube_age_in_years(), sed_cube_storm(), sed_cube_time_step_in_days(), SED_EMPTY_INFO, sed_mode_is_3d(), sed_process_user_data(), and Diffusion_t::skin_depth.


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