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

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

Go to the source code of this file.

Defines

#define SED_CONSTANTS_PROC_NAME   "constants"
#define EH_LOG_DOMAIN   SED_CONSTANTS_PROC_NAME
#define S_KEY_CONST_GRAVITY   "acceleration due to gravity"
#define S_KEY_CONST_RHO_SEA_H2O   "density of sea water"
#define S_KEY_CONST_RHO_H2O   "density of fresh water"
#define S_KEY_CONST_SALINITY   "ocean salinity"
#define S_KEY_CONST_RHO_QUARTZ   "density of quartz"
#define S_KEY_CONST_RHO_MANTLE   "density of mantle"

Functions

Sed_process_info run_constants (Sed_process proc, Sed_cube prof)
gboolean init_constants (Sed_process p, Eh_symbol_table tab, GError **error)
gboolean destroy_constants (Sed_process p)


Define Documentation

#define EH_LOG_DOMAIN   SED_CONSTANTS_PROC_NAME

Definition at line 22 of file run_constants.c.

#define S_KEY_CONST_GRAVITY   "acceleration due to gravity"

Definition at line 67 of file run_constants.c.

Referenced by init_constants().

#define S_KEY_CONST_RHO_H2O   "density of fresh water"

Definition at line 69 of file run_constants.c.

Referenced by init_constants().

#define S_KEY_CONST_RHO_MANTLE   "density of mantle"

Definition at line 74 of file run_constants.c.

Referenced by init_constants().

#define S_KEY_CONST_RHO_QUARTZ   "density of quartz"

Definition at line 73 of file run_constants.c.

Referenced by init_constants().

#define S_KEY_CONST_RHO_SEA_H2O   "density of sea water"

Definition at line 68 of file run_constants.c.

Referenced by init_constants().

#define S_KEY_CONST_SALINITY   "ocean salinity"

Definition at line 72 of file run_constants.c.

Referenced by init_constants().

#define SED_CONSTANTS_PROC_NAME   "constants"

Definition at line 21 of file run_constants.c.


Function Documentation

gboolean destroy_constants ( Sed_process  p  ) 

Definition at line 102 of file run_constants.c.

References eh_free, eh_input_val_destroy(), Constants_t::gravity, Constants_t::rho_h2o, Constants_t::rho_mantle, Constants_t::rho_quartz, Constants_t::rho_sea_h2o, Constants_t::salinity, and sed_process_user_data().

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

Definition at line 77 of file run_constants.c.

References eh_return_val_if_fail, eh_symbol_table_input_value(), Constants_t::gravity, Constants_t::rho_h2o, Constants_t::rho_mantle, Constants_t::rho_quartz, Constants_t::rho_sea_h2o, S_KEY_CONST_GRAVITY, S_KEY_CONST_RHO_H2O, S_KEY_CONST_RHO_MANTLE, S_KEY_CONST_RHO_QUARTZ, S_KEY_CONST_RHO_SEA_H2O, S_KEY_CONST_SALINITY, Constants_t::salinity, and sed_process_new_user_data.

Sed_process_info run_constants ( Sed_process  proc,
Sed_cube  prof 
)

Definition at line 31 of file run_constants.c.

References eh_input_val_eval(), Constants_t::gravity, Sed_constants::gravity, Constants_t::rho_h2o, Sed_constants::rho_h2o, Constants_t::rho_mantle, Sed_constants::rho_mantle, Constants_t::rho_quartz, Sed_constants::rho_quartz, Constants_t::rho_sea_h2o, Sed_constants::rho_sea_h2o, Constants_t::salinity, Sed_constants::salinity, sed_cube_age_in_years(), sed_cube_constants(), SED_EMPTY_INFO, sed_process_user_data(), sed_set_gravity(), sed_set_rho_fresh_water(), sed_set_rho_mantle(), sed_set_rho_quartz(), sed_set_rho_sea_water(), sed_set_sea_salinity(), and set_cube_set_constants().


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