print.c File Reference

function definition for printing user defined output parameters in either txt or netcdf format More...

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <netcdf.h>
#include "sundials_types.h"
#include "cvode.h"
#include "cvode_dense.h"
#include "nvector_serial.h"
#include "pihm.h"
#include "calib.h"
#include "print.h"

Include dependency graph for print.c:

Go to the source code of this file.

Defines

#define NDIMS   2
#define ERR(e)   {printf("Error: %s\n", nc_strerror(e)); return;}

Functions

void FPrint (Model_Data mData, N_Vector CV_Y, realtype t)
 This function calls different fuction depending on the Output File Mode and simulated variables user wants to print as declared in print.h file.
void FPrintInitFile (Model_Data mData, Control_Data cData, N_Vector CV_Y, int i)
 Print new .init file at the completion of simulation.
void FPrintInit (Model_Data mData)
 Initializes several variables and allocates memory depending on output file mode and variables user wants to output.
void FPrintCloseAll (void)
 Close all the files those were opened in function FPrintInit.
realtype FPrint_CS_AreaOrPerem (int rivOrder, realtype rivDepth, realtype rivCoeff, realtype a_pBool)
 returns Area or Peremeter of a river segment cross-section
realtype FPrint_OverlandFlow (int loci, int locj, int surfmode, realtype avg_y, realtype grad_y, realtype avg_sf, realtype alfa, realtype beta, realtype crossA, realtype avg_rough, int eletypeBool, realtype avg_perem)
 Computes surface flux across the edge between two elements or two river segments.
void printRiverFlow (Model_Data mData, N_Vector CV_Y, FILE *flow_file, realtype t)
 prints the outflow from each river segment to the flow_file in TXT format
void printRiverFlowcdf (Model_Data mData, N_Vector CV_Y, int ncid, int data_varid, realtype t)
 prints the outflow from each river segment to the flow_file in CDF format
void printRiverBase (Model_Data mData, FILE *rivBaseFile, realtype t)
 Function to print Baseflow to River in TXT format.
void printRiverBasecdf (Model_Data mData, int ncid, int data_varid, realtype t)
 Function to print Base flow to River in CDF format.
void printRiverSurf (Model_Data mData, FILE *rivSurfFile, realtype t)
 Function to print Surfaceflow to River in TXT format.
void printRiverSurfcdf (Model_Data mData, int ncid, int data_varid, realtype t)
 Function to print Surfaceflow to River in CDF format.
void printRiverHead (Model_Data mData, N_Vector CV_Y, FILE *rivHeadFile, realtype t)
 Function to print River State (head) in TXT format.
void printRiverHeadcdf (Model_Data mData, N_Vector CV_Y, int ncid, int data_varid, realtype t)
 Function to print River State (head) in CDF format.
void printIS (Model_Data mData, FILE *isFile, realtype t)
 Function to print Interception Storage in TXT format.
void printIScdf (Model_Data mData, int ncid, int data_varid, realtype t)
 Function to print Interception Storage in CDF format.
void printSatState (Model_Data mData, N_Vector CV_Y, FILE *file, realtype t)
 Function to print Saturated State (head) in TXT format.
void printSatStatecdf (Model_Data mData, N_Vector CV_Y, int ncid, int data_varid, realtype t)
 Function to print Saturated State (head) in CDF format.
void printUsatState (Model_Data mData, N_Vector CV_Y, FILE *file, realtype t)
 Function to print Unsaturated State (head) in TXT format.
void printUsatStatecdf (Model_Data mData, N_Vector CV_Y, int ncid, int data_varid, realtype t)
 Function to print Unsaturated State (head) in CDF format.
void printSurfState (Model_Data mData, N_Vector CV_Y, FILE *file, realtype t)
 Function to print Surface Flow State (head) in TXT format.
void printSurfStatecdf (Model_Data mData, N_Vector CV_Y, int ncid, int data_varid, realtype t)
 Function to print Surface Flow State (head) in CDF format.
void printET0 (Model_Data mData, FILE *file, realtype t)
 Function to print ET0 in TXT format.
void printET0cdf (Model_Data mData, int ncid, int data_varid, realtype t)
 Function to print ET0 in CDF format.
void printET1 (Model_Data mData, FILE *file, realtype t)
 Function to print ET1 in TXT format.
void printET1cdf (Model_Data mData, int ncid, int data_varid, realtype t)
 Function to print ET1 in CDF format.
void printET2 (Model_Data mData, FILE *file, realtype t)
 Function to print ET2 in TXT format.
void printET2cdf (Model_Data mData, int ncid, int data_varid, realtype t)
 Function to print ET2 in CDF format.
void printNetPpt (Model_Data mData, FILE *file, realtype t)
 Function to print Net Precipitation in TXT format.
void printNetPptcdf (Model_Data mData, int ncid, int data_varid, realtype t)
 Function to print Net Precipitation in CDF format.
void printInfil (Model_Data mData, FILE *file, realtype t)
 Function to print Variable Infiltration in TXT format.
void printInfilcdf (Model_Data mData, int ncid, int data_varid, realtype t)
 Function to print Variable Infiltration in CDF format.
void printRecharge (Model_Data mData, FILE *file, realtype t)
 Function to print Recharge to GW in TXT format.
void printRechargecdf (Model_Data mData, int ncid, int data_varid, realtype t)
 Function to print Recharge to GW in CDF format.

Variables

FILE * isStatePtr
FILE * satStatePtr
FILE * usatStatePtr
FILE * surfStatePtr
FILE * et0Ptr
FILE * et1Ptr
FILE * et2Ptr
FILE * netPrecipPtr
FILE * infilPtr
FILE * rechargePtr
FILE * rivHeadPtr
FILE * rivFlowPtr
FILE * rivBasePtr
FILE * rivSurfPtr
char * isStateFile
char * satStateFile
char * usatStateFile
char * surfStateFile
char * et0File
char * et1File
char * et2File
char * netPrecipFile
char * infilFile
char * rechargeFile
char * rivHeadFile
char * rivFlowFile
char * rivBaseFile
char * rivSurfFile
FILE * initPtr
char * initFile
static double * tempIS
static double * tempSatState
static double * tempUsatState
static double * tempSurfState
static double * tempET0
static double * tempET1
static double * tempET2
static double * tempNetPpt
static double * tempInfil
static double * tempRecharge
static double * tempFlow
static double * tempBase
static double * tempSurf
static double * tempHead
int NUMELE
int NUMRIV
int retval
int isStateID
int satStateID
int usatStateID
int surfStateID
int et0ID
int et1ID
int et2ID
int netPrecipID
int infilID
int rechargeID
int rivHeadID
int rivFlowID
int rivBaseID
int rivSurfID
int ele_dimid
int rec_dimid
int dimids [NDIMS]
int startEle [NDIMS]
int countEle [NDIMS]
int startRiv [NDIMS]
int countRiv [NDIMS]
int isState_varid
int satState_varid
int usatState_varid
int surfState_varid
int et0_varid
int et1_varid
int et2_varid
int netPrecip_varid
int infil_varid
int recharge_varid
int rivHead_varid
int rivFlow_varid
int rivBase_varid
int rivSurf_varid


Detailed Description

function definition for printing user defined output parameters in either txt or netcdf format

Definition in file print.c.


Define Documentation

#define ERR (  )     {printf("Error: %s\n", nc_strerror(e)); return;}

Definition at line 45 of file print.c.

Referenced by FPrintInit(), printET0cdf(), printET1cdf(), printET2cdf(), printInfilcdf(), printIScdf(), printNetPptcdf(), printRechargecdf(), printRiverBasecdf(), printRiverHeadcdf(), printRiverSurfcdf(), printSatStatecdf(), printSurfStatecdf(), and printUsatStatecdf().

#define NDIMS   2

Defines dimension: time vs. Elements or time vs. RiverSegments

Definition at line 43 of file print.c.

Referenced by FPrintInit().


Function Documentation

void FPrint ( Model_Data  mData,
N_Vector  CV_Y,
realtype  t 
)

This function calls different fuction depending on the Output File Mode and simulated variables user wants to print as declared in print.h file.

Parameters:
mData is pointer to model data structure
CV_Y is state variable vector
t is time of current simulation

Definition at line 101 of file print.c.

References CDF, ET0, et0_varid, et0ID, et0Ptr, ET1, et1_varid, et1ID, et1Ptr, ET2, et2_varid, et2ID, et2Ptr, FPRINT_MODE, Infil, infil_varid, infilID, infilPtr, ISState, isState_varid, isStateID, isStatePtr, NetPpt, netPrecip_varid, netPrecipID, netPrecipPtr, printET0(), printET0cdf(), printET1(), printET1cdf(), printET2(), printET2cdf(), printInfil(), printInfilcdf(), printIS(), printIScdf(), printNetPpt(), printNetPptcdf(), printRecharge(), printRechargecdf(), printRiverBase(), printRiverBasecdf(), printRiverFlow(), printRiverFlowcdf(), printRiverHead(), printRiverHeadcdf(), printRiverSurf(), printRiverSurfcdf(), printSatState(), printSatStatecdf(), printSurfState(), printSurfStatecdf(), printUsatState(), printUsatStatecdf(), RECHARGE, recharge_varid, rechargeID, rechargePtr, RivBase, rivBase_varid, rivBaseID, rivBasePtr, RivFlow, rivFlow_varid, rivFlowID, rivFlowPtr, RivHead, rivHead_varid, rivHeadID, rivHeadPtr, RivSurf, rivSurf_varid, rivSurfID, rivSurfPtr, SatState, satState_varid, satStateID, satStatePtr, SurfState, surfState_varid, surfStateID, surfStatePtr, TXT, UsatState, usatState_varid, usatStateID, usatStatePtr, and YEA.

Referenced by main().

Here is the call graph for this function:

realtype FPrint_CS_AreaOrPerem ( int  rivOrder,
realtype  rivDepth,
realtype  rivCoeff,
realtype  a_pBool 
)

returns Area or Peremeter of a river segment cross-section

Parameters:
rivOrder is the interpolation order of the river segment
rivDepth is the depth of water in the river segment
rivCoeff is the interpolation factor of the river segment
a_pBool is identifer for either Area or Peremeter

Definition at line 799 of file print.c.

References EPSILON.

Referenced by printRiverFlow(), and printRiverFlowcdf().

realtype FPrint_OverlandFlow ( int  loci,
int  locj,
int  surfmode,
realtype  avg_y,
realtype  grad_y,
realtype  avg_sf,
realtype  alfa,
realtype  beta,
realtype  crossA,
realtype  avg_rough,
int  eletypeBool,
realtype  avg_perem 
)

Computes surface flux across the edge between two elements or two river segments.

Parameters:
loci is Element Number
locj is the Neighbour Numer of the Element
surfmode is identifier to the Surface Flow mode
avg_y is the avarage head between the elements
grad_y is the hydraulic gradient between the elements
avg_sf is the avarage friction slope of the elements
alfa is dummy variable
beta is dummy variable
crossA is average area of cross-section
avg_rough is avarage manning's roughness coefficient
eletypeBool is an identifier to element mode 1: Element 0: River
avg_perem is the avarage wetted perimeter

Definition at line 837 of file print.c.

void FPrintCloseAll ( void   ) 

Close all the files those were opened in function FPrintInit.

Definition at line 730 of file print.c.

References CDF, ET0, et0ID, et0Ptr, ET1, et1ID, et1Ptr, ET2, et2ID, et2Ptr, FPRINT_MODE, Infil, infilID, infilPtr, ISState, isStateID, isStatePtr, NetPpt, netPrecipID, netPrecipPtr, RECHARGE, rechargeID, rechargePtr, RivBase, rivBaseID, rivBasePtr, RivFlow, rivFlowID, rivFlowPtr, RivHead, rivHeadID, rivHeadPtr, RivSurf, rivSurfID, rivSurfPtr, SatState, satStateID, satStatePtr, SurfState, surfStateID, surfStatePtr, TXT, UsatState, usatStateID, usatStatePtr, and YEA.

void FPrintInit ( Model_Data  mData  ) 

Initializes several variables and allocates memory depending on output file mode and variables user wants to output.

Parameters:
mData is pointer to model data structure

Definition at line 247 of file print.c.

References CDF, countEle, countRiv, dimids, ele_dimid, ERR, ET0, et0_varid, et0File, et0ID, et0Ptr, ET1, et1_varid, et1File, et1ID, et1Ptr, ET2, et2_varid, et2File, et2ID, et2Ptr, FPRINT_MODE, Infil, infil_varid, infilFile, infilID, infilPtr, ISState, isState_varid, isStateFile, isStateID, isStatePtr, NDIMS, NetPpt, netPrecip_varid, netPrecipFile, netPrecipID, netPrecipPtr, NUMELE, model_data_structure::NumEle, NUMRIV, model_data_structure::NumRiv, rec_dimid, RECHARGE, recharge_varid, rechargeFile, rechargeID, rechargePtr, retval, RivBase, rivBase_varid, rivBaseFile, rivBaseID, rivBasePtr, RivFlow, rivFlow_varid, rivFlowFile, rivFlowID, rivFlowPtr, RivHead, rivHead_varid, rivHeadFile, rivHeadID, rivHeadPtr, RivSurf, rivSurf_varid, rivSurfFile, rivSurfID, rivSurfPtr, SatState, satState_varid, satStateFile, satStateID, satStatePtr, setFileName(), startEle, SurfState, surfState_varid, surfStateFile, surfStateID, surfStatePtr, tempBase, tempET0, tempET1, tempET2, tempFlow, tempHead, tempInfil, tempIS, tempNetPpt, tempRecharge, tempSatState, tempSurf, tempSurfState, tempUsatState, TXT, UsatState, usatState_varid, usatStateFile, usatStateID, usatStatePtr, and YEA.

Here is the call graph for this function:

void FPrintInitFile ( Model_Data  mData,
Control_Data  cData,
N_Vector  CV_Y,
int  i 
)

Print new .init file at the completion of simulation.

Parameters:
mData is pointer to model data structure
cData is pointer to control data structure
CV_Y is state variable vector
i is the index of cData.Tout

Definition at line 215 of file print.c.

References model_data_structure::EleIS, model_data_structure::EleSnow, initFile, initPtr, model_data_structure::NumEle, model_data_structure::NumRiv, setFileName(), and control_data_structure::Tout.

Here is the call graph for this function:

void printET0 ( Model_Data  mData,
FILE *  file,
realtype  t 
)

Function to print ET0 in TXT format.

Parameters:
mData is the pointer to the model data structure
file is the pointer to the output file
t is the time of current simulation

Definition at line 1414 of file print.c.

References model_data_structure::Ele, model_data_structure::EleET, ET0T, model_data_structure::NumEle, tempET0, and element_type::VegFrac.

Referenced by FPrint().

void printET0cdf ( Model_Data  mData,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print ET0 in CDF format.

Parameters:
mData is the pointer to the model data structure
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1435 of file print.c.

References countEle, model_data_structure::Ele, model_data_structure::EleET, ERR, ET0T, model_data_structure::NumEle, retval, startEle, tempET0, and element_type::VegFrac.

Referenced by FPrint().

void printET1 ( Model_Data  mData,
FILE *  file,
realtype  t 
)

Function to print ET1 in TXT format.

Parameters:
mData is the pointer to the model data structure
file is the pointer to the output file
t is the time of current simulation

Definition at line 1459 of file print.c.

References model_data_structure::EleET, ET1T, model_data_structure::NumEle, and tempET1.

Referenced by FPrint().

void printET1cdf ( Model_Data  mData,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print ET1 in CDF format.

Parameters:
mData is the pointer to the model data structure
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1480 of file print.c.

References countEle, model_data_structure::EleET, ERR, ET1T, model_data_structure::NumEle, retval, startEle, and tempET1.

Referenced by FPrint().

void printET2 ( Model_Data  mData,
FILE *  file,
realtype  t 
)

Function to print ET2 in TXT format.

Parameters:
mData is the pointer to the model data structure
file is the pointer to the output file
t is the time of current simulation

Definition at line 1505 of file print.c.

References model_data_structure::EleET, ET2T, model_data_structure::NumEle, and tempET2.

Referenced by FPrint().

void printET2cdf ( Model_Data  mData,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print ET2 in CDF format.

Parameters:
mData is the pointer to the model data structure
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1526 of file print.c.

References countEle, model_data_structure::EleET, ERR, ET2T, model_data_structure::NumEle, retval, startEle, and tempET2.

Referenced by FPrint().

void printInfil ( Model_Data  mData,
FILE *  file,
realtype  t 
)

Function to print Variable Infiltration in TXT format.

Parameters:
mData is the pointer to the model data structure
file is the pointer to the output file
t is the time of current simulation

Definition at line 1595 of file print.c.

References model_data_structure::EleVic, InfilT, model_data_structure::NumEle, and tempInfil.

Referenced by FPrint().

void printInfilcdf ( Model_Data  mData,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print Variable Infiltration in CDF format.

Parameters:
mData is the pointer to the model data structure
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1616 of file print.c.

References countEle, model_data_structure::EleVic, ERR, InfilT, model_data_structure::NumEle, retval, startEle, and tempInfil.

Referenced by FPrint().

void printIS ( Model_Data  mData,
FILE *  isFile,
realtype  t 
)

Function to print Interception Storage in TXT format.

Parameters:
mData is the pointer to the model data structure
isFile is the pointer to the output file
t is the time of current simulation

Definition at line 1228 of file print.c.

References model_data_structure::EleIS, ISStateT, model_data_structure::NumEle, and tempIS.

Referenced by FPrint().

void printIScdf ( Model_Data  mData,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print Interception Storage in CDF format.

Parameters:
mData is the pointer to the model data structure
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1249 of file print.c.

References countEle, model_data_structure::EleIS, ERR, ISStateT, model_data_structure::NumEle, retval, startEle, and tempIS.

Referenced by FPrint().

void printNetPpt ( Model_Data  mData,
FILE *  file,
realtype  t 
)

Function to print Net Precipitation in TXT format.

Parameters:
mData is the pointer to the model data structure
file is the pointer to the output file
t is the time of current simulation

Definition at line 1550 of file print.c.

References model_data_structure::EleNetPrep, NetPptT, model_data_structure::NumEle, and tempNetPpt.

Referenced by FPrint().

void printNetPptcdf ( Model_Data  mData,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print Net Precipitation in CDF format.

Parameters:
mData is the pointer to the model data structure
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1571 of file print.c.

References countEle, model_data_structure::EleNetPrep, ERR, NetPptT, model_data_structure::NumEle, retval, startEle, and tempNetPpt.

Referenced by FPrint().

void printRecharge ( Model_Data  mData,
FILE *  file,
realtype  t 
)

Function to print Recharge to GW in TXT format.

Parameters:
mData is the pointer to the model data structure
file is the pointer to the output file
t is the time of current simulation

Definition at line 1640 of file print.c.

References model_data_structure::NumEle, model_data_structure::Recharge, RECHARGET, and tempRecharge.

Referenced by FPrint().

void printRechargecdf ( Model_Data  mData,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print Recharge to GW in CDF format.

Parameters:
mData is the pointer to the model data structure
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1661 of file print.c.

References countEle, ERR, model_data_structure::NumEle, model_data_structure::Recharge, RECHARGET, retval, startEle, and tempRecharge.

Referenced by FPrint().

void printRiverBase ( Model_Data  mData,
FILE *  rivBaseFile,
realtype  t 
)

Function to print Baseflow to River in TXT format.

Parameters:
mData is the pointer to the model data structure
rivBaseFile is the pointer to the output file
t is the time of current simulation

Definition at line 1091 of file print.c.

References model_data_structure::FluxRiv, model_data_structure::NumRiv, RivBaseT, and tempBase.

Referenced by FPrint().

void printRiverBasecdf ( Model_Data  mData,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print Base flow to River in CDF format.

Parameters:
mData is the pointer to the model data structure
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1112 of file print.c.

References countRiv, ERR, model_data_structure::FluxRiv, model_data_structure::NumRiv, retval, RivBaseT, startRiv, and tempBase.

Referenced by FPrint().

void printRiverFlow ( Model_Data  mData,
N_Vector  CV_Y,
FILE *  flow_file,
realtype  t 
)

prints the outflow from each river segment to the flow_file in TXT format

Parameters:
mData is the pointer to the model data structure
CV_Y is the state variable vector
flow_file is the pointer to the output file
t is the time of current simulation

Avg perimeter

Definition at line 927 of file print.c.

References river_shape_type::coeff, river_segment_type::down, FPrint_CS_AreaOrPerem(), river_shape_type::interpOrd, model_data_structure::NumEle, model_data_structure::NumRiv, model_data_structure::Riv, model_data_structure::Riv_Shape, river_segment_type::shape, and river_segment_type::zmin.

Referenced by FPrint().

Here is the call graph for this function:

void printRiverFlowcdf ( Model_Data  mData,
N_Vector  CV_Y,
int  ncid,
int  data_varid,
realtype  t 
)

prints the outflow from each river segment to the flow_file in CDF format

Parameters:
mData is the pointer to the model data structure
CV_Y is the state variable vector
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Avg perimeter

Definition at line 1007 of file print.c.

References river_shape_type::coeff, river_segment_type::down, FPrint_CS_AreaOrPerem(), river_shape_type::interpOrd, model_data_structure::NumEle, model_data_structure::NumRiv, model_data_structure::Riv, model_data_structure::Riv_Shape, river_segment_type::shape, and river_segment_type::zmin.

Referenced by FPrint().

Here is the call graph for this function:

void printRiverHead ( Model_Data  mData,
N_Vector  CV_Y,
FILE *  rivHeadFile,
realtype  t 
)

Function to print River State (head) in TXT format.

Parameters:
mData is the pointer to the model data structure
CV_Y is the state variable vector
rivHeadFile is the pointer to the output file
t is the time of current simulation

Definition at line 1181 of file print.c.

References model_data_structure::NumEle, model_data_structure::NumRiv, RivHeadT, and tempHead.

Referenced by FPrint().

void printRiverHeadcdf ( Model_Data  mData,
N_Vector  CV_Y,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print River State (head) in CDF format.

Parameters:
mData is the pointer to the model data structure
CV_Y is the state variable vector
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1203 of file print.c.

References countRiv, ERR, model_data_structure::NumEle, model_data_structure::NumRiv, retval, RivHeadT, startRiv, and tempHead.

Referenced by FPrint().

void printRiverSurf ( Model_Data  mData,
FILE *  rivSurfFile,
realtype  t 
)

Function to print Surfaceflow to River in TXT format.

Parameters:
mData is the pointer to the model data structure
rivSurfFile is the pointer to the output file
t is the time of current simulation

Definition at line 1136 of file print.c.

References model_data_structure::FluxRiv, model_data_structure::NumRiv, RivSurfT, and tempSurf.

Referenced by FPrint().

void printRiverSurfcdf ( Model_Data  mData,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print Surfaceflow to River in CDF format.

Parameters:
mData is the pointer to the model data structure
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1157 of file print.c.

References countRiv, ERR, model_data_structure::FluxRiv, model_data_structure::NumRiv, retval, RivSurfT, startRiv, and tempSurf.

Referenced by FPrint().

void printSatState ( Model_Data  mData,
N_Vector  CV_Y,
FILE *  file,
realtype  t 
)

Function to print Saturated State (head) in TXT format.

Parameters:
mData is the pointer to the model data structure
CV_Y is state variable vector
file is the pointer to the output file
t is the time of current simulation

Definition at line 1273 of file print.c.

References model_data_structure::NumEle, SatStateT, and tempSatState.

Referenced by FPrint().

void printSatStatecdf ( Model_Data  mData,
N_Vector  CV_Y,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print Saturated State (head) in CDF format.

Parameters:
mData is the pointer to the model data structure
CV_Y is state variable vector
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1295 of file print.c.

References countEle, ERR, model_data_structure::NumEle, retval, SatStateT, startEle, and tempSatState.

Referenced by FPrint().

void printSurfState ( Model_Data  mData,
N_Vector  CV_Y,
FILE *  file,
realtype  t 
)

Function to print Surface Flow State (head) in TXT format.

Parameters:
mData is the pointer to the model data structure
CV_Y is state variable vector
file is the pointer to the output file
t is the time of current simulation

Definition at line 1367 of file print.c.

References model_data_structure::NumEle, SurfStateT, and tempSurfState.

Referenced by FPrint().

void printSurfStatecdf ( Model_Data  mData,
N_Vector  CV_Y,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print Surface Flow State (head) in CDF format.

Parameters:
mData is the pointer to the model data structure
CV_Y is state variable vector
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1389 of file print.c.

References countEle, ERR, model_data_structure::NumEle, retval, startEle, SurfStateT, and tempSurfState.

Referenced by FPrint().

void printUsatState ( Model_Data  mData,
N_Vector  CV_Y,
FILE *  file,
realtype  t 
)

Function to print Unsaturated State (head) in TXT format.

Parameters:
mData is the pointer to the model data structure
CV_Y is state variable vector
file is the pointer to the output file
t is the time of current simulation

Definition at line 1320 of file print.c.

References model_data_structure::NumEle, tempUsatState, and UsatStateT.

Referenced by FPrint().

void printUsatStatecdf ( Model_Data  mData,
N_Vector  CV_Y,
int  ncid,
int  data_varid,
realtype  t 
)

Function to print Unsaturated State (head) in CDF format.

Parameters:
mData is the pointer to the model data structure
CV_Y is state variable vector
ncid is the netcdf file identifier
data_varid is the netcdf variable identifier
t is the time of current simulation

Definition at line 1342 of file print.c.

References countEle, ERR, model_data_structure::NumEle, retval, startEle, tempUsatState, and UsatStateT.

Referenced by FPrint().


Variable Documentation

int countEle[NDIMS]

count variable for Element's cdf files

Definition at line 86 of file print.c.

Referenced by FPrintInit(), printET0cdf(), printET1cdf(), printET2cdf(), printInfilcdf(), printIScdf(), printNetPptcdf(), printRechargecdf(), printSatStatecdf(), printSurfStatecdf(), and printUsatStatecdf().

int countRiv[NDIMS]

count variable for RiverSegment's cdf files

Definition at line 88 of file print.c.

Referenced by FPrintInit(), printRiverBasecdf(), printRiverHeadcdf(), and printRiverSurfcdf().

int dimids[NDIMS]

Array of Dimension IDs

Definition at line 84 of file print.c.

Referenced by FPrintInit().

int ele_dimid

Dimension ID for elements or river segments

Definition at line 82 of file print.c.

Referenced by FPrintInit().

int et0_varid

Definition at line 92 of file print.c.

Referenced by FPrint(), and FPrintInit().

char* et0File

Definition at line 56 of file print.c.

Referenced by FPrintInit().

int et0ID

Definition at line 78 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE* et0Ptr

Definition at line 50 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int et1_varid

Definition at line 92 of file print.c.

Referenced by FPrint(), and FPrintInit().

char * et1File

Definition at line 56 of file print.c.

Referenced by FPrintInit().

int et1ID

Definition at line 78 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE * et1Ptr

Definition at line 50 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int et2_varid

Definition at line 92 of file print.c.

Referenced by FPrint(), and FPrintInit().

char * et2File

Definition at line 56 of file print.c.

Referenced by FPrintInit().

int et2ID

Definition at line 78 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE * et2Ptr

Definition at line 50 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int infil_varid

Definition at line 92 of file print.c.

Referenced by FPrint(), and FPrintInit().

char * infilFile

Definition at line 56 of file print.c.

Referenced by FPrintInit().

int infilID

Definition at line 78 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE * infilPtr

Definition at line 50 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

char* initFile

string to hold .init file name

Definition at line 61 of file print.c.

Referenced by FPrintInitFile().

FILE* initPtr

File pointer for .init file

Definition at line 60 of file print.c.

Referenced by FPrintInitFile().

int isState_varid

Definition at line 91 of file print.c.

Referenced by FPrint(), and FPrintInit().

char* isStateFile

Definition at line 55 of file print.c.

Referenced by FPrintInit().

int isStateID

Definition at line 77 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE* isStatePtr

Definition at line 49 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int netPrecip_varid

Definition at line 92 of file print.c.

Referenced by FPrint(), and FPrintInit().

char * netPrecipFile

Definition at line 56 of file print.c.

Referenced by FPrintInit().

int netPrecipID

Definition at line 78 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE * netPrecipPtr

Definition at line 50 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int NUMELE

Number of Elements in the model domain

Definition at line 69 of file print.c.

Referenced by FPrintInit().

int NUMRIV

Number of River Segs in the model domain

Definition at line 70 of file print.c.

Referenced by FPrintInit().

int rec_dimid

Dimension ID for records (time)

Definition at line 83 of file print.c.

Referenced by FPrintInit().

int recharge_varid

Definition at line 92 of file print.c.

Referenced by FPrint(), and FPrintInit().

char * rechargeFile

Definition at line 56 of file print.c.

Referenced by FPrintInit().

int rechargeID

Definition at line 78 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE * rechargePtr

Definition at line 50 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int retval

Return Variable for netcdf function calls

Definition at line 73 of file print.c.

Referenced by FPrintInit(), printET0cdf(), printET1cdf(), printET2cdf(), printInfilcdf(), printIScdf(), printNetPptcdf(), printRechargecdf(), printRiverBasecdf(), printRiverHeadcdf(), printRiverSurfcdf(), printSatStatecdf(), printSurfStatecdf(), and printUsatStatecdf().

int rivBase_varid

Definition at line 94 of file print.c.

Referenced by FPrint(), and FPrintInit().

char * rivBaseFile

Definition at line 58 of file print.c.

Referenced by FPrintInit().

int rivBaseID

Definition at line 80 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE * rivBasePtr

Definition at line 52 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int rivFlow_varid

Definition at line 94 of file print.c.

Referenced by FPrint(), and FPrintInit().

char* rivFlowFile

Definition at line 58 of file print.c.

Referenced by FPrintInit().

int rivFlowID

Definition at line 80 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE* rivFlowPtr

Definition at line 52 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int rivHead_varid

Definition at line 93 of file print.c.

Referenced by FPrint(), and FPrintInit().

char* rivHeadFile

Definition at line 57 of file print.c.

Referenced by FPrintInit().

int rivHeadID

Definition at line 79 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE* rivHeadPtr

Definition at line 51 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int rivSurf_varid

Definition at line 94 of file print.c.

Referenced by FPrint(), and FPrintInit().

char * rivSurfFile

Definition at line 58 of file print.c.

Referenced by FPrintInit().

int rivSurfID

Definition at line 80 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE * rivSurfPtr

Definition at line 52 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int satState_varid

Definition at line 91 of file print.c.

Referenced by FPrint(), and FPrintInit().

char * satStateFile

Definition at line 55 of file print.c.

Referenced by FPrintInit().

int satStateID

Definition at line 77 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE * satStatePtr

Definition at line 49 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

int startEle[NDIMS]

start variable for Element's cdf files

Definition at line 85 of file print.c.

Referenced by FPrintInit(), printET0cdf(), printET1cdf(), printET2cdf(), printInfilcdf(), printIScdf(), printNetPptcdf(), printRechargecdf(), printSatStatecdf(), printSurfStatecdf(), and printUsatStatecdf().

int startRiv[NDIMS]

start variable for RiverSegment's cdf files

Definition at line 87 of file print.c.

Referenced by printRiverBasecdf(), printRiverHeadcdf(), and printRiverSurfcdf().

int surfState_varid

Definition at line 91 of file print.c.

Referenced by FPrint(), and FPrintInit().

char * surfStateFile

Definition at line 55 of file print.c.

Referenced by FPrintInit().

int surfStateID

Definition at line 77 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE * surfStatePtr

Definition at line 49 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

double * tempBase [static]

Definition at line 66 of file print.c.

Referenced by FPrintInit(), printRiverBase(), and printRiverBasecdf().

double* tempET0 [static]

Definition at line 65 of file print.c.

Referenced by FPrintInit(), printET0(), and printET0cdf().

double * tempET1 [static]

Definition at line 65 of file print.c.

Referenced by FPrintInit(), printET1(), and printET1cdf().

double * tempET2 [static]

Definition at line 65 of file print.c.

Referenced by FPrintInit(), printET2(), and printET2cdf().

double* tempFlow [static]

Definition at line 66 of file print.c.

Referenced by FPrintInit().

double * tempHead [static]

Definition at line 66 of file print.c.

Referenced by FPrintInit(), printRiverHead(), and printRiverHeadcdf().

double * tempInfil [static]

Definition at line 65 of file print.c.

Referenced by FPrintInit(), printInfil(), and printInfilcdf().

double* tempIS [static]

Definition at line 64 of file print.c.

Referenced by FPrintInit(), printIS(), and printIScdf().

double * tempNetPpt [static]

Definition at line 65 of file print.c.

Referenced by FPrintInit(), printNetPpt(), and printNetPptcdf().

double * tempRecharge [static]

Definition at line 65 of file print.c.

Referenced by FPrintInit(), printRecharge(), and printRechargecdf().

double * tempSatState [static]

Definition at line 64 of file print.c.

Referenced by FPrintInit(), printSatState(), and printSatStatecdf().

double * tempSurf [static]

Definition at line 66 of file print.c.

Referenced by FPrintInit(), printRiverSurf(), and printRiverSurfcdf().

double * tempSurfState [static]

Definition at line 64 of file print.c.

Referenced by FPrintInit(), printSurfState(), and printSurfStatecdf().

double * tempUsatState [static]

Definition at line 64 of file print.c.

Referenced by FPrintInit(), printUsatState(), and printUsatStatecdf().

int usatState_varid

Definition at line 91 of file print.c.

Referenced by FPrint(), and FPrintInit().

char * usatStateFile

Definition at line 55 of file print.c.

Referenced by FPrintInit().

int usatStateID

Definition at line 77 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().

FILE * usatStatePtr

Definition at line 49 of file print.c.

Referenced by FPrint(), FPrintCloseAll(), and FPrintInit().


Generated on Thu Jul 12 14:34:20 2007 for PIHM by  doxygen 1.5.2