5.13.2-dev0
mHM
The mesoscale Hydrological Model
Loading...
Searching...
No Matches
mo_mrm_write_fluxes_states Module Reference

Creates NetCDF output for different fluxes and state variables of mHM. More...

Functions/Subroutines

type(outputdataset) function mrm_outputdataset (idomain, mask)
 Initialize mRM OutputDataset.
 
subroutine mrm_updatedataset (nc_mrm, l11_qmod, l11_riv_temp)
 Update all variables.
 
type(outputdataset) function gw_outputdataset (idomain, mask)
 Initialize groundwater coupling OutputDataset.
 
subroutine gw_updatedataset (nc_gw, l0_river_head)
 Update riverhead.
 

Detailed Description

Creates NetCDF output for different fluxes and state variables of mHM.

NetCDF is first initialized and later on variables are put to the NetCDF.

Changelog
  • David Schaefer Aug 2015
    • major rewrite
  • Stephan Thober Oct 2015
    • adapted to mRM
  • O. Rakovec, R. Kumar Nov 2017
    • added project description for the netcdf outputs
Authors
Matthias Zink
Date
Apr 2013

Function/Subroutine Documentation

◆ gw_outputdataset()

type(outputdataset) function mo_mrm_write_fluxes_states::gw_outputdataset ( integer(i4), intent(in)  idomain,
logical, dimension(:, :), intent(in), target  mask 
)

Initialize groundwater coupling OutputDataset.

Create and initialize the output file. If new a new output variable needs to be written, this is the first of two procedures to change (second: updateDataset)

Returns
type(OutputDataset)
Authors
Sebastian Mueller
Date
Dec 2022
Parameters
[in]idomaindomain id
[in]maskL11 mask

Definition at line 149 of file mo_mrm_write_fluxes_states.f90.

References mo_nc_output::data_dims(), mo_nc_output::data_dtype(), mo_common_variables::level0, and mo_nc_output::set_attributes().

Referenced by mo_mhm_interface_run::mhm_interface_run_write_output().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gw_updatedataset()

subroutine mo_mrm_write_fluxes_states::gw_updatedataset ( class(outputdataset), intent(inout), target  nc_gw,
real(dp), dimension(:), intent(in)  l0_river_head 
)

Update riverhead.

Call the type bound procedure updateVariable for all output variables. If a new output variable needs to be written, this is the second of two procedures to change (first: newOutputDataset)

Authors
Sebastian Mueller
Date
Dec 2022

Definition at line 186 of file mo_mrm_write_fluxes_states.f90.

Referenced by mo_mhm_interface_run::mhm_interface_run_write_output().

Here is the caller graph for this function:

◆ mrm_outputdataset()

type(outputdataset) function mo_mrm_write_fluxes_states::mrm_outputdataset ( integer(i4), intent(in)  idomain,
logical, dimension(:, :), intent(in), pointer  mask 
)

Initialize mRM OutputDataset.

Create and initialize the output file. If new a new output variable needs to be written, this is the first of two procedures to change (second: updateDataset)

Changelog
  • Robert Schweppe Jun 2018
    • refactoring and reformatting
  • Sebastian Mueller Jul 2020
    • added output for river temperature
Returns
type(OutputDataset)
Authors
Matthias Zink
Date
Apr 2013
Parameters
[in]idomaindomain id
[in]maskL11 mask

Definition at line 48 of file mo_mrm_write_fluxes_states.f90.

References mo_nc_output::data_dims(), mo_nc_output::data_dtype(), mo_mrm_file::file_mrm_output, mo_mrm_global_variables::level11, mo_mrm_global_variables::output_deflate_level_mrm, mo_mrm_global_variables::output_double_precision_mrm, mo_mrm_global_variables::output_time_reference_mrm, mo_mrm_global_variables::outputflxstate_mrm, mo_mrm_global_variables::riv_temp_pcs, mo_nc_output::set_attributes(), and mo_mrm_global_variables::timestep_model_outputs_mrm.

Referenced by mo_mhm_interface_run::mhm_interface_run_write_output().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mrm_updatedataset()

subroutine mo_mrm_write_fluxes_states::mrm_updatedataset ( class(outputdataset), intent(inout), target  nc_mrm,
real(dp), dimension(:), intent(in)  l11_qmod,
real(dp), dimension(:), intent(in), optional  l11_riv_temp 
)

Update all variables.

Call the type bound procedure updateVariable for all output variables. If a new output variable needs to be written, this is the second of two procedures to change (first: newOutputDataset)

Changelog
  • L. Samaniego et al. Dec 2013
    • nullify pointer Matthias Zink, Feb. 2014
    • added aditional output: pet V. Prykhodk, J. Mai, Nov. 2014
    • adding new variable infilSoil
    • case 16 David Schaefer , Jun. 2015
    • major rewrite
  • Stephan Thober Oct 2015
    • adapted to mRM
  • Robert Schweppe Jun 2018
    • refactoring and reformatting
  • Sebastian Mueller Jul 2020
    • add river temperature output (optional)
Authors
Matthias Zink
Date
Apr 2013

Definition at line 113 of file mo_mrm_write_fluxes_states.f90.

References mo_mrm_global_variables::outputflxstate_mrm, and mo_mrm_global_variables::riv_temp_pcs.

Referenced by mo_mhm_interface_run::mhm_interface_run_write_output().

Here is the caller graph for this function: