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

#include <stdlib.h>
#include "hydroclimate.h"
#include "hydrotimeser.h"
#include "hydroparams.h"
#include "hydroinout.h"
#include "hydroreadclimate.h"
#include "hydroalloc_mem.h"
#include "hydrofree_mem.h"
#include "hydrodaysmonths.h"
#include "hydrotrend.h"
#include "hydrornseeds.h"

Go to the source code of this file.

Defines

#define MAXIT   (3000)
#define swap_dbl_vec(x, i, j)   { double temp; temp=x[i]; x[i]=x[j]; x[j]=temp; }

Typedefs

typedef int( Cost_fcn )(double *, int)

Functions

double * anneal (double *x, int n, Cost_fcn *f, int cost_min, int jj)
int eh_get_fuzzy_int (int y, int z, int jj, int count)
int cost_fcn (double *x, int n)
float hydroran4 (long *idum)
int hydroweather (gw_rainfall_etc *gw_rain)

Variables

int jj


Define Documentation

#define MAXIT   (3000)

Definition at line 35 of file hydroweather.c.

#define swap_dbl_vec ( x,
i,
 )     { double temp; temp=x[i]; x[i]=x[j]; x[j]=temp; }

Definition at line 36 of file hydroweather.c.

Referenced by anneal().


Typedef Documentation

typedef int( Cost_fcn)(double *, int)

Definition at line 37 of file hydroweather.c.


Function Documentation

double * anneal ( double *  x,
int  n,
Cost_fcn f,
int  cost_min,
int  jj 
)

Definition at line 255 of file hydroweather.c.

References eh_get_fuzzy_int(), MAXIT, start_of(), and swap_dbl_vec.

int cost_fcn ( double *  x,
int  n 
)

Definition at line 313 of file hydroweather.c.

References freematrix1D(), malloc1d, and start_of().

Referenced by hydroweather().

int eh_get_fuzzy_int ( int  y,
int  z,
int  jj,
int  count 
)

Definition at line 289 of file hydroweather.c.

References hydroran4(), INIT_RAN_NUM_SEED, rnseed4, syear, and yr.

Referenced by anneal().

float hydroran4 ( long *  idum  ) 

Definition at line 184 of file hydroran2.c.

References CAM, CIA1, CIA2, CIM1, CIM2, CIMM1, CIQ1, CIQ2, CIR1, CIR2, CNDIV, CNTAB, and CRNMX.

Referenced by eh_get_fuzzy_int(), and hydrosetnumberoutlet().

int hydroweather ( gw_rainfall_etc gw_rain  ) 

Definition at line 55 of file hydroweather.c.

References cost_fcn(), days_in_month(), daysiy, Dec, end_of(), ep, Jan, jj, nran, raindatafile, ranarray, start_of(), syear, gw_rainfall_etc::T, Tdaily, Tmonth, Tnomstd, and yr.

Referenced by main().


Variable Documentation

int jj

Definition at line 42 of file hydroweather.c.

Referenced by eh_svbksb(), eh_svdcmp(), hydrocheckinput(), hydroclimate(), hydrocommandline(), hydroglacial(), hydrooutput(), hydrorain(), hydroran2(), hydrorandom(), hydroreadinput(), hydrosecurityinputcheck(), hydroshoulder(), hydrosnow(), hydroweather(), plumearray(), plumecent(), plumeconc(), plumedist(), plumemass(), plumeout1(), plumeout2(), plumeout3(), and twofft().


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