plugin_src/data_handler/table.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <netcdf.h>
#include <assert.h>
#include <time.h>
#include "crusde_api.h"
Include dependency graph for table.c:

Functions

const char * get_name ()
const char * get_version ()
const char * get_authors ()
PluginCategory get_category ()
void request_plugins ()
void register_output_fields ()
const char * get_description ()
void run ()
void clear ()
void init ()
 Initialize members that depend on registered values.
void register_parameter ()
 Register parameters this load function claims from the input.
void set_model_data (double **data, int dim_x, int dim_y)

Variables

double ** data_out
boolean data_written
char * filename
FILE * out_file = NULL
int k
int l
int xmin
int ymin
int nlat
int nlon
int ds
int dim
int d
int x_pos
int y_pos
int z_pos

Detailed Description

TODO: add description


Function Documentation

void clear (  ) 

Clean-up before this plug-in gets unloaded.

References data_written, filename, free(), and out_file.

const char* get_authors (  ) 
PluginCategory get_category (  ) 

return DATAOUT_PLUGIN

References DATAOUT_PLUGIN.

const char* get_description (  ) 
const char* get_name (  ) 
const char* get_version (  ) 
void init (  ) 

Initialize members that depend on registered values.

This function must not be called before register_parameter() unless none of the necessary values depends on parameters provided by the user, which are only set after they have been registered. This function is called some time after register_parameter().

References crusde_error(), crusde_get_dimensions(), crusde_get_gridsize(), crusde_get_min_x(), crusde_get_min_y(), crusde_get_out_file(), crusde_get_size_x(), crusde_get_size_y(), crusde_get_x_index(), crusde_get_y_index(), crusde_get_z_index(), d, data_out, dim, ds, filename, nlat, nlon, out_file, x_pos, xmin, y_pos, ymin, and z_pos.

void register_output_fields (  ) 

empty

void register_parameter (  ) 

Register parameters this load function claims from the input.

This function calls register_load_param() defined in crusde_api.h to register

See also:
register_load_param()
register_parameter() (temp_plugin.c.tmp)
void request_plugins (  ) 

empty

void run (  ) 

writes data for actual time step to file

References crusde_model_time(), d, data_out, data_written, dim, ds, k, l, nlat, nlon, out_file, x_pos, xmin, y_pos, ymin, and z_pos.

void set_model_data ( double **  data,
int  dim_x,
int  dim_y 
)

set pointer to model result.

References data_out.


Variable Documentation

int d
double** data_out
boolean data_written
int dim

Referenced by init(), and run().

int ds

Referenced by init(), and run().

char* filename
int k

Referenced by run().

int l
int nlat

Referenced by init(), and run().

int nlon

Referenced by init(), and run().

FILE* out_file = NULL

Referenced by clear(), init(), and run().

int x_pos
int xmin

Referenced by init(), and run().

int y_pos
int ymin

Referenced by init(), and run().

int z_pos

Generated on Tue Feb 16 15:18:27 2010 for CrusDe by  doxygen 1.6.1-20091004