crusde_api.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
#ifndef _green_api_h
00029
#define _green_api_h
00030
00031
#include "constants.h"
00032
#include "config.h"
00033
00034 #define boolean int
00035 #define true 1
00036 #define false 0
00037
00038
#ifdef __cplusplus
00039
extern "C" {
00040
#endif
00041
00042 typedef enum{
00043
LOAD_PLUGIN = 0,
00044
KERNEL_PLUGIN = 1,
00045
GREEN_PLUGIN = 2,
00046
DATAOUT_PLUGIN = 3,
00047
POSTPROCESS_PLUGIN = 4,
00048
LOADHISTORY_PLUGIN = 5
00049 }
PluginCategory;
00050
00051 typedef enum{
00052
X_FIELD = 0,
00053
Y_FIELD = 1,
00054
Z_FIELD = 2,
00055
ADD_FIELD = 3
00056 }
FieldName;
00057
00058
00059
void crusde_register_param(
double* param,
const char* param_name, PluginCategory);
00060
00061
void crusde_register_output_field(
int* position, FieldName);
00062
00063
int crusde_get_size_x();
00064
int crusde_get_size_y();
00065
int crusde_get_size_t();
00066
int crusde_get_gridsize();
00067
int crusde_get_min_x();
00068
int crusde_get_min_y();
00069
int crusde_get_dimensions();
00070
int crusde_get_displacement_dimensions();
00071
int crusde_model_time();
00072
int crusde_stepsize();
00073
int crusde_get_x_index();
00074
int crusde_get_y_index();
00075
int crusde_get_z_index();
00076
00077
const char*
crusde_get_observation_file();
00078
const char*
crusde_get_load_file();
00079
const char*
crusde_get_out_file();
00080
00081
int crusde_get_green_at(
double** res,
int x,
int y);
00082
00083
double crusde_get_load_at(
int x,
int y,
int t);
00084
double crusde_constrain_load_height(
double h,
int x,
int y,
int z);
00085
00086
00087
void crusde_set_result(
double**);
00088
double**
crusde_get_result();
00089
void crusde_set_quadrant(
int);
00090
int crusde_get_quadrant();
00091
00092
void crusde_exit(
int exitcode);
00093
00094
boolean crusde_load_history_exists();
00095
00096
00097
green_exec_function crusde_request_green_plugin(
char* plugin);
00098
load_exec_function crusde_request_load_plugin(
char* plugin);
00099
run_function crusde_request_kernel_plugin(
char* plugin);
00100
run_function crusde_request_postprocessor_plugin(
char* plugin);
00101
loadhistory_exec_function crusde_request_loadhistory_plugin(
char* plugin);
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
#ifdef __cplusplus
00114
}
00115
#endif
00116
00117
#endif // _green_api_h
Generated on Sun Jul 29 08:17:23 2007 for CrusDe by
1.3.8