Data Types | |
type | aquiferstatetype |
type | lakestatetype |
type | miscstatetype |
type | pointertype |
type | riverstatetype |
type | snowicestatetype |
type | soilstatetype |
type | stateinfotype |
Functions/Subroutines | |
subroutine, public | set_stateinfo (n, dim, stateinfo, frozenstate, soilstate, aquiferstate, riverstate, lakestate, miscstate) |
subroutine, public | allocate_model_states (n, dim, config, frozenstate, soilstate, aquiferstate, riverstate, lakestate, miscstate) |
subroutine, public | deallocate_model_states (frozenstate, soilstate, aquiferstate, riverstate, lakestate, miscstate) |
subroutine, public | initiate_modelstate_submodel (n, dim, config, indexarray, frozenstate, frozenstate2, soilstate, soilstate2, aquiferstate, aquiferstate2, riverstate, riverstate2, lakestate, lakestate2, miscstate, miscstate2) |
subroutine, public | initiate_state_zero (dim, config, frozenstate, soilstate, aquiferstate, riverstate, lakestate, miscstate) |
subroutine | allocate_frozenstate_variables (n, ns, nc, nr, nl, isglac, islrice, issheat, frozenstate) |
subroutine | deallocate_frozenstate_variables (frozenstate) |
subroutine | initiate_frozenstate_submodel (ns, n, indexarray, config, frozenstate, frozenstate2) |
subroutine | initiate_frozenstate_zero (ns, isglac, islrice, issheat, frozenstate) |
subroutine | allocate_soilstate_variables (n, ns, nc, nsl, isN, isP, isC, isS, ist1, issoil, isinf, soilstate) |
subroutine, public | deallocate_soilstate_variables (soilstate) |
subroutine | initiate_soilstate_submodel (ns, n, indexarray, soilstate, soilstate2) |
subroutine | initiate_soilstate_zero (ns, soilstate) |
subroutine | allocate_aquiferstate_variables (na, ns, aquiferstate) |
subroutine | deallocate_aquiferstate_variables (aquiferstate) |
subroutine | initiate_aquiferstate_submodel (ns, na, aquiferstate, aquiferstate2) |
subroutine | initiate_aquiferstate_zero (ns, na, aquiferstate) |
subroutine | allocate_riverstate_variables (n, ns, nr, ml, mt, isN, isP, isC, isS, isSi, ist1, isQb, iswetl, riverstate) |
subroutine | deallocate_riverstate_variables (riverstate) |
subroutine | initiate_riverstate_submodel (ns, n, config, indexarray, riverstate, riverstate2) |
subroutine | initiate_riverstate_zero (ns, isP, isNPCSS, isS, ist1, iswetl, riverstate) |
subroutine | allocate_lakestate_variables (n, dim, config, lakestate) |
subroutine | deallocate_lakestate_variables (lakestate) |
subroutine | initiate_lakestate_submodel (ns, n, config, indexarray, lakestate, lakestate2) |
subroutine | initiate_lakestate_zero (ns, config, lakestate) |
subroutine | allocate_miscstate_variables (n, ns, nc, ist1, isirr, iswtr, isqar, isflood, isgsm, iswetl, isC, miscstate) |
subroutine | deallocate_miscstate_variables (miscstate) |
subroutine | initiate_miscstate_submodel (ns, n, config, indexarray, miscstate, miscstate2) |
subroutine | initiate_miscstate_zero (ns, ist1, isirr, iswtr, isqar, isflood, isgsm, iswetl, isC, miscstate) |
subroutine, public | get_frozenstate_variables_arraysize (n, ns, size, config, dim) |
subroutine, public | set_frozenstate_variables_to_array (n, size, config, frozenstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | set_frozenstate_variables_from_array (n, nsfil, size, config, frozenstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | get_soilstate_variables_arraysize (n, ns, size, config, dim) |
subroutine, public | set_soilstate_variables_to_array (n, size, config, soilstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | set_soilstate_variables_from_array (n, nsfil, size, config, soilstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | get_reset_soilstate_variables_arraysize (n, size, config, dim) |
subroutine, public | set_reset_soilstate_variables_to_array (n, size, config, soilstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | set_reset_soilstate_variables_from_array (n, size, config, soilstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | get_aquiferstate_variables_arraysize (ns, size, dim) |
subroutine, public | set_aquiferstate_variables_to_array (size, aquiferstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | set_aquiferstate_variables_from_array (nsfil, size, aquiferstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | get_riverstate_variables_arraysize (n, ns, size, config, dim) |
subroutine, public | set_riverstate_variables_to_array (n, size, config, riverstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | set_riverstate_variables_from_array (n, nsfil, size, config, statefile, riverstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | get_lakestate_variables_arraysize (n, ns, size, config, dim) |
subroutine, public | set_lakestate_variables_to_array (n, size, config, lakestate, iarrfirst, iarrlast, dim, array) |
subroutine, public | set_lakestate_variables_from_array (n, nsfil, size, config, lakestate, iarrfirst, iarrlast, dim, array) |
subroutine, public | get_miscstate_variables_arraysize (n, size, config, dim) |
subroutine, public | set_miscstate_variables_to_array (n, size, config, miscstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | set_miscstate_variables_from_array (n, nsfil, size, statefile, config, miscstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | get_reset_miscstate_variables_arraysize (n, size, config, dim) |
subroutine, public | set_reset_miscstate_variables_to_array (n, size, config, miscstate, iarrfirst, iarrlast, dim, array) |
subroutine, public | set_reset_miscstate_variables_from_array (n, size, config, miscstate, iarrfirst, iarrlast, dim, array) |
Types for state variables for the HYPE model (HYdrological Predictions for the Environment)
Five types are distinguished; four for different hydrological features in the landscape (snow and ice, soil, river and lake), and one for miscellaneous states. Not all state variables are states of the hydrological model, but hold memory of older values or averages that is needed if the model is restarted. Each statetype has seven subroutines that handle the state variables as a group; allocation, deallocation, initiation (to zero), initiation for submodel simulation, get size of states/array, write to array and read from array.
|
private |
Allocate aquifer state variables for the model.
Consequences Memory will be allocated
[in] | na | Number of aquifers |
[in] | ns | Number of substances |
[in,out] | aquiferstate | aquifer states |
|
private |
Allocate snow and ice state variables for the model.
Consequences Memory will be allocated
[in] | n | Number of subbasins |
[in] | ns | Number of substances |
[in] | nc | Number of classes |
[in] | nr | Number of river types |
[in] | nl | Number of lake types |
[in] | isglac | Status of glacier simulation |
[in] | islrice | Status of lakeriver ice model |
[in] | issheat | Status of snow heat model |
[in,out] | frozenstate | Snow and ice states |
|
private |
Allocate lake state variables for the model.
Consequences Memory will be allocated
[in] | n | number of subbasins |
[in] | dim | simulation dimensions |
[in] | config | simulation configuration |
[in,out] | lakestate | Lake states |
|
private |
Allocate miscellaneous state variables for the model.
Consequences Memory will be allocated
[in] | n | number of subbasins |
[in] | ns | number of substances |
[in] | nc | number of classes |
[in] | ist1 | Status of T1 simulation |
[in] | isirr | Status of irrigation simulation |
[in] | iswtr | Status of water transfer |
[in] | isqar | Status of updating q with AR |
[in] | isflood | Status of flooded area simulation |
[in] | isgsm | Status of growth season model |
[in] | iswetl | Status of wetland simulation |
[in] | isc | Status of organic carbon simulation |
[in,out] | miscstate | misc state |
subroutine, public statetype_module::allocate_model_states | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | dim, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(snowicestatetype), intent(inout) | frozenstate, | ||
type(soilstatetype), intent(inout) | soilstate, | ||
type(aquiferstatetype), intent(inout) | aquiferstate, | ||
type(riverstatetype), intent(inout) | riverstate, | ||
type(lakestatetype), intent(inout) | lakestate, | ||
type(miscstatetype), intent(inout) | miscstate | ||
) |
Allocate state variables for the model.
Consequences Memory will be allocated
[in] | n | Number of subbasins |
[in] | dim | simulation dimensions |
[in] | config | simulation configuration |
[in,out] | frozenstate | Snow and ice states |
[in,out] | soilstate | Soil states |
[in,out] | aquiferstate | Aquifer states |
[in,out] | riverstate | River states |
[in,out] | lakestate | Lake states |
[in,out] | miscstate | Misc states |
|
private |
Allocate river state variables for the model.
Consequences Memory will be allocated
[in] | n | number of subbasins |
[in] | ns | number of substances |
[in] | nr | number of river types |
[in] | ml | maximum river lag steps |
[in] | mt | timestep per day |
[in] | isn | Status of nitrogen simulation |
[in] | isp | Status of phosphorus simulation |
[in] | isc | Status of organic carbon simulation |
[in] | iss | Status of suspended sediment simulation |
[in] | issi | Status of silica simulation |
[in] | ist1 | Status of T1 simulation |
[in] | isqb | Status of bankful flow simulation |
[in] | iswetl | Status of wetland simulation |
[in,out] | riverstate | River states |
|
private |
Allocate soil state variables for the model.
Consequences Memory will be allocated
[in] | n | Number of subbasins |
[in] | ns | Number of substances |
[in] | nc | Number of classes |
[in] | nsl | Number of soil layers |
[in] | isn | Status of nitrogen simulation |
[in] | isp | Status of phosphorus simulation |
[in] | isc | Status of organic carbon simulation |
[in] | iss | Status of suspended sediment simulation |
[in] | ist1 | Status of T1simulation |
[in] | issoil | Status of soil leakage model == 2 |
[in] | isinf | Status of infiltration model == 1 |
[in,out] | soilstate | Soil states |
|
private |
Deallocate aquifer states.
[in,out] | aquiferstate | aquifer states |
|
private |
Deallocate snow and ice states.
[in,out] | frozenstate | River states |
|
private |
Deallocate lake states used for temporary storage of initial state for submodel simulation.
[in,out] | lakestate | Lake states |
|
private |
Deallocate miscellaneous states used for temporary storage of initial state for submodel simulation.
[in,out] | miscstate | misc state |
subroutine, public statetype_module::deallocate_model_states | ( | type(snowicestatetype), intent(inout) | frozenstate, |
type(soilstatetype), intent(inout) | soilstate, | ||
type(aquiferstatetype), intent(inout) | aquiferstate, | ||
type(riverstatetype), intent(inout) | riverstate, | ||
type(lakestatetype), intent(inout) | lakestate, | ||
type(miscstatetype), intent(inout) | miscstate | ||
) |
Deallocate model states.
[in,out] | frozenstate | Snow and ice states |
[in,out] | soilstate | Soil states |
[in,out] | aquiferstate | Aquifer states |
[in,out] | riverstate | River states |
[in,out] | lakestate | Lake states |
[in,out] | miscstate | Misc states |
|
private |
Deallocate river states.
[in,out] | riverstate | River states |
subroutine, public statetype_module::deallocate_soilstate_variables | ( | type(soilstatetype), intent(inout) | soilstate | ) |
Deallocate soil states.
[in,out] | soilstate | Soil states |
subroutine, public statetype_module::get_aquiferstate_variables_arraysize | ( | integer, intent(in) | ns, |
type(statedimensiontype), intent(in) | size, | ||
integer, intent(out) | dim | ||
) |
Get number of aquifer states.
[in] | ns | Number of substances |
[in] | size | simulation dimensions |
[out] | dim | Number of array elements |
subroutine, public statetype_module::get_frozenstate_variables_arraysize | ( | integer, intent(in) | n, |
integer, intent(in) | ns, | ||
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
integer, intent(out) | dim | ||
) |
Get number of frozen states.
[in] | n | Number of subbasins |
[in] | ns | Number of substances |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[out] | dim | Number of array elements |
subroutine, public statetype_module::get_lakestate_variables_arraysize | ( | integer, intent(in) | n, |
integer, intent(in) | ns, | ||
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
integer, intent(out) | dim | ||
) |
Get number of lake states.
[in] | n | Number of subbasins |
[in] | ns | Number of substances |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[out] | dim | Number of array elements |
subroutine, public statetype_module::get_miscstate_variables_arraysize | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
integer, intent(out) | dim | ||
) |
Get number of miscellaneous states.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[out] | dim | Number of array elements |
subroutine, public statetype_module::get_reset_miscstate_variables_arraysize | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
integer, intent(out) | dim | ||
) |
Get number of miscellaneous states.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[out] | dim | Number of array elements |
subroutine, public statetype_module::get_reset_soilstate_variables_arraysize | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
integer, intent(out) | dim | ||
) |
Get number of soil states.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[out] | dim | Number of array elements |
subroutine, public statetype_module::get_riverstate_variables_arraysize | ( | integer, intent(in) | n, |
integer, intent(in) | ns, | ||
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
integer, intent(out) | dim | ||
) |
Get number of river states.
[in] | n | Number of subbasins |
[in] | ns | Number of substances |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[out] | dim | Number of array elements |
subroutine, public statetype_module::get_soilstate_variables_arraysize | ( | integer, intent(in) | n, |
integer, intent(in) | ns, | ||
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
integer, intent(out) | dim | ||
) |
Get number of soil states.
[in] | n | Number of subbasins |
[in] | ns | Number of substances |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[out] | dim | Number of array elements |
|
private |
Initiate submodel aquifer states by temporary storage of initial state (copy)
[in] | ns | number of substances |
[in] | na | Number of aquifers |
[in,out] | aquiferstate | aquifer state, submodel |
[in] | aquiferstate2 | aquifer state, whole model setup |
|
private |
Initiate aquifer states to zero.
[in] | ns | number of substances |
[in] | na | number of aquifers |
[in,out] | aquiferstate | aquifer states |
|
private |
Initiate submodel snow and ice states by temporary storage of initial state.
[in] | ns | number of substances |
[in] | n | number of subbasins in states to be set |
[in] | indexarray | index for basemodel |
[in] | config | simulation configuration |
[in,out] | frozenstate | Snow and ice state, submodel |
[in] | frozenstate2 | Snow and ice state, whole model setup |
|
private |
Initiate snow and ice states to zero.
[in] | ns | number of substances |
[in] | isglac | Status of glacier simulation |
[in] | islrice | Status of lakeriver ice model |
[in] | issheat | Status of snow heat model |
[in,out] | frozenstate | Snow and ice states |
|
private |
Initiate submodel lake states by temporary storage of initial state.
[in] | ns | number of substances |
[in] | n | number of subbasins in states to be set |
[in] | config | simulation configuration |
[in] | indexarray | index for basemodel |
[in,out] | lakestate | Lake state, submodel |
[in] | lakestate2 | Lake state, whole model setup |
|
private |
Initiate lake states to zero.
[in] | ns | number of substances |
[in] | config | simulation configuration |
[in,out] | lakestate | Lake state, submodel |
|
private |
Initiate submodel miscellaneous states by temporary storage of initial state.
[in] | ns | number of substances |
[in] | n | number of subbasins in states to be set |
[in] | config | simulation configuration |
[in] | indexarray | index for basemodel |
[in,out] | miscstate | misc state, submodel |
[in] | miscstate2 | misc state, whole model setup |
|
private |
Initiate miscellaneous states to zero.
[in] | ns | number of substances |
[in] | ist1 | Status of T1 simulation |
[in] | isirr | Status of irrigation simulation |
[in] | iswtr | Status of water transfer |
[in] | isqar | Status of updating q with AR |
[in] | isflood | Status of flooded area simulation |
[in] | isgsm | Status of growth season model |
[in] | iswetl | Status of wetland simulation |
[in] | isc | Status of organic carbon simulation |
[in,out] | miscstate | misc state, submodel |
subroutine, public statetype_module::initiate_modelstate_submodel | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | dim, | ||
type(stateconfigurationtype), intent(in) | config, | ||
integer, dimension(n), intent(in) | indexarray, | ||
type(snowicestatetype), intent(inout) | frozenstate, | ||
type(snowicestatetype), intent(in) | frozenstate2, | ||
type(soilstatetype), intent(inout) | soilstate, | ||
type(soilstatetype), intent(in) | soilstate2, | ||
type(aquiferstatetype), intent(inout) | aquiferstate, | ||
type(aquiferstatetype), intent(in) | aquiferstate2, | ||
type(riverstatetype), intent(inout) | riverstate, | ||
type(riverstatetype), intent(in) | riverstate2, | ||
type(lakestatetype), intent(inout) | lakestate, | ||
type(lakestatetype), intent(in) | lakestate2, | ||
type(miscstatetype), intent(inout) | miscstate, | ||
type(miscstatetype), intent(in) | miscstate2 | ||
) |
Initiate states for submodel.
[in] | n | Number of subbasins (submodel) |
[in] | dim | simulation dimensions |
[in] | config | simulation configuration |
[in] | indexarray | index for basemodel |
[in,out] | frozenstate | Snow and ice state, submodel |
[in] | frozenstate2 | Snow and ice state, whole model setup |
[in,out] | soilstate | Soil states, submodel |
[in] | soilstate2 | Soil states, whole model setup |
[in,out] | aquiferstate | Aquifer states, submodel |
[in] | aquiferstate2 | Aquifer states, whole model setup |
[in,out] | riverstate | River states, submodel |
[in] | riverstate2 | River states, whole model setup |
[in,out] | lakestate | Lake states, submodel |
[in] | lakestate2 | Lake states, whole model setup |
[in,out] | miscstate | Misc states, submodel |
[in] | miscstate2 | Misc states, whole model setup |
|
private |
Initiate submodel river states by temporary storage of initial state.
[in] | ns | number of substances |
[in] | n | number of subbasins in states to be set |
[in] | config | simulation configuration |
[in] | indexarray | index for basemodel |
[in,out] | riverstate | River state, submodel |
[in] | riverstate2 | River state, whole model setup |
|
private |
Initiate river states to zero.
[in] | ns | number of substances |
[in] | isp | Status of phosphorus simulation |
[in] | isnpcss | Status of N, P, C, S or Si simulation |
[in] | iss | Status of suspended sediment simulation |
[in] | ist1 | Status of T1 simulation |
[in] | iswetl | Status of wetland simulation |
[in,out] | riverstate | River states |
|
private |
Initiate submodel soil states by temporary storage of initial state.
[in] | ns | number of substances |
[in] | n | number of subbasins in states to be set |
[in] | indexarray | index for basemodel |
[in,out] | soilstate | Soil state, submodel |
[in] | soilstate2 | Soil state, whole model setup |
|
private |
Initiate soil states to zero.
[in] | ns | number of substances |
[in,out] | soilstate | Soil states |
subroutine, public statetype_module::initiate_state_zero | ( | type(statedimensiontype), intent(in) | dim, |
type(stateconfigurationtype), intent(in) | config, | ||
type(snowicestatetype), intent(inout) | frozenstate, | ||
type(soilstatetype), intent(inout) | soilstate, | ||
type(aquiferstatetype), intent(inout) | aquiferstate, | ||
type(riverstatetype), intent(inout) | riverstate, | ||
type(lakestatetype), intent(inout) | lakestate, | ||
type(miscstatetype), intent(inout) | miscstate | ||
) |
Initiate states to zero.
[in] | dim | simulation dimensions |
[in] | config | simulation configuration |
[in,out] | frozenstate | Snow and ice states |
[in,out] | soilstate | Soil states |
[in,out] | aquiferstate | Aquifer states |
[in,out] | riverstate | River states |
[in,out] | lakestate | Lake states |
[in,out] | miscstate | Misc states |
subroutine, public statetype_module::set_aquiferstate_variables_from_array | ( | integer, intent(in) | nsfil, |
type(statedimensiontype), intent(in) | size, | ||
type(aquiferstatetype), intent(inout) | aquiferstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(in) | array | ||
) |
Read aquifer state variables from array.
[in] | nsfil | Number of substances read from file |
[in] | size | simulation dimensions |
[in,out] | aquiferstate | aquifer states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[in] | array | Array of states |
subroutine, public statetype_module::set_aquiferstate_variables_to_array | ( | type(statedimensiontype), intent(in) | size, |
type(aquiferstatetype), intent(in) | aquiferstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(out) | array | ||
) |
Write aquifer state variables to array.
[in] | size | simulation dimensions |
[in] | aquiferstate | aquifer states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[out] | array | Array of states |
subroutine, public statetype_module::set_frozenstate_variables_from_array | ( | integer, intent(in) | n, |
integer, intent(in) | nsfil, | ||
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(snowicestatetype), intent(inout) | frozenstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(in) | array | ||
) |
Read snow and ice state variables from array.
[in] | n | Number of subbasins |
[in] | nsfil | Number of substances read from file |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in,out] | frozenstate | Snow and ice states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[in] | array | Array of states |
subroutine, public statetype_module::set_frozenstate_variables_to_array | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(snowicestatetype), intent(in) | frozenstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(out) | array | ||
) |
Write snow and ice state variables to array.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in] | frozenstate | Snow and ice states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[out] | array | Array of states |
subroutine, public statetype_module::set_lakestate_variables_from_array | ( | integer, intent(in) | n, |
integer, intent(in) | nsfil, | ||
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(lakestatetype), intent(inout) | lakestate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(in) | array | ||
) |
Read lake state variables from array.
[in] | n | Number of subbasins |
[in] | nsfil | Number of substances of file |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in,out] | lakestate | lake states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[in] | array | Array of states |
subroutine, public statetype_module::set_lakestate_variables_to_array | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(lakestatetype), intent(in) | lakestate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(out) | array | ||
) |
Write lake state variables to array.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in] | lakestate | lake states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[out] | array | Array of states |
subroutine, public statetype_module::set_miscstate_variables_from_array | ( | integer, intent(in) | n, |
integer, intent(in) | nsfil, | ||
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | statefile, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(miscstatetype), intent(inout) | miscstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(in) | array | ||
) |
Read misc state variables from array.
[in] | n | Number of subbasins |
[in] | nsfil | Number of substances of file |
[in] | size | simulation dimensions |
[in] | statefile | state file simulation configuration |
[in] | config | simulation configuration |
[in,out] | miscstate | misc states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[in] | array | Array of states |
subroutine, public statetype_module::set_miscstate_variables_to_array | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(miscstatetype), intent(in) | miscstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(out) | array | ||
) |
Write miscellaneous state variables to array.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in] | miscstate | misc states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[out] | array | Array of states |
subroutine, public statetype_module::set_reset_miscstate_variables_from_array | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(miscstatetype), intent(inout) | miscstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(in) | array | ||
) |
Read misc state variables from array.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in,out] | miscstate | misc states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[in] | array | Array of states |
subroutine, public statetype_module::set_reset_miscstate_variables_to_array | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(miscstatetype), intent(in) | miscstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(out) | array | ||
) |
Write miscellaneous state variables to array.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in] | miscstate | misc states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[out] | array | Array of states |
subroutine, public statetype_module::set_reset_soilstate_variables_from_array | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(soilstatetype), intent(inout) | soilstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(in) | array | ||
) |
Read soil state variables from array.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in,out] | soilstate | Soil states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[in] | array | Array of states |
subroutine, public statetype_module::set_reset_soilstate_variables_to_array | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(soilstatetype), intent(in) | soilstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(out) | array | ||
) |
Write soil state variables to array.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in] | soilstate | Soil states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[out] | array | Array of states |
subroutine, public statetype_module::set_riverstate_variables_from_array | ( | integer, intent(in) | n, |
integer, intent(in) | nsfil, | ||
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(stateconfigurationtype), intent(in) | statefile, | ||
type(riverstatetype), intent(inout) | riverstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(in) | array | ||
) |
Read river state variables from array.
[in] | n | Number of subbasins |
[in] | nsfil | Number of substances of file |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in] | statefile | state file simulation configuration |
[in,out] | riverstate | River states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[in] | array | Array of states |
subroutine, public statetype_module::set_riverstate_variables_to_array | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(riverstatetype), intent(in) | riverstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(out) | array | ||
) |
Write river state variables to array.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in] | riverstate | River states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[out] | array | Array of states |
subroutine, public statetype_module::set_soilstate_variables_from_array | ( | integer, intent(in) | n, |
integer, intent(in) | nsfil, | ||
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(soilstatetype), intent(inout) | soilstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(in) | array | ||
) |
Read soil state variables from array.
[in] | n | Number of subbasins |
[in] | nsfil | Number of substances read from file |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in,out] | soilstate | Soil states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[in] | array | Array of states |
subroutine, public statetype_module::set_soilstate_variables_to_array | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | size, | ||
type(stateconfigurationtype), intent(in) | config, | ||
type(soilstatetype), intent(in) | soilstate, | ||
integer, intent(in) | iarrfirst, | ||
integer, intent(in) | iarrlast, | ||
integer, intent(in) | dim, | ||
real, dimension(dim), intent(out) | array | ||
) |
Write soil state variables to array.
[in] | n | Number of subbasins |
[in] | size | simulation dimensions |
[in] | config | simulation configuration |
[in] | soilstate | Soil states |
[in] | iarrfirst | Index of first array element |
[in] | iarrlast | Index of last array element |
[in] | dim | Number of array elements |
[out] | array | Array of states |
subroutine, public statetype_module::set_stateinfo | ( | integer, intent(in) | n, |
type(statedimensiontype), intent(in) | dim, | ||
type(stateinfotype), dimension(:), intent(inout), allocatable | stateinfo, | ||
type(snowicestatetype), intent(in), target | frozenstate, | ||
type(soilstatetype), intent(in), target | soilstate, | ||
type(aquiferstatetype), intent(in), target | aquiferstate, | ||
type(riverstatetype), intent(in), target | riverstate, | ||
type(lakestatetype), intent(in), target | lakestate, | ||
type(miscstatetype), intent(in), target | miscstate | ||
) |
Allocate state information variable and assign the information.
Consequences Memory will be allocated
[in] | n | Number of subbasins |
[in] | dim | simulation dimensions |
[in] | frozenstate | Snow and ice states |
[in] | soilstate | Soil states |
[in] | aquiferstate | Aquifer states |
[in] | riverstate | River states |
[in] | lakestate | Lake states |
[in] | miscstate | Misc states |