subroutine print_module_parameters(module_name)
! Print modules' current parameters
! This subroutine has to be placed in the SWIM program unit as
! namelists cant be parsed as arguments
use time, only : time_parameters
!use hydrotope, only : hydrotope_parameters
use subbasin, only : subbasin_parameters
use catchment, only : catchment_parameters
use evapotranspiration, only : evapotranspiration_parameters
use soil, only : soil_parameters
use groundwater, only : groundwater_parameters
use reservoir, only : reservoir_parameters
use vegetation, only : vegetation_parameters
use crop, only : crop_parameters
use landuse, only : landuse_parameters
use snow, only : snow_parameters
use nutrient, only : nutrient_parameters
use management, only : management_parameters
use river, only : river_parameters
use erosion, only : erosion_parameters
use input, only : &
input_parameters, &
#ifdef with_netcdf
nc_climate_parameters, &
#endif
print_help
use output, only : output_parameters
character(len=*), intent(in) :: module_name
logical :: pparams(size(swim_modules))
pparams = swim_modules == module_name
if (module_name == "all") pparams(:) = .True.
if (.not. any(pparams)) &
call print_help("Not a valid module name in -d "//trim(module_name))
if (pparams(1)) write(*, nml=time_parameters)
!if (pparams(2)) write(*, nml=hydrotope_parameters)
if (pparams(3)) write(*, nml=subbasin_parameters)
if (pparams(4)) write(*, nml=catchment_parameters)
if (pparams(5)) write(*, nml=evapotranspiration_parameters)
if (pparams(6)) write(*, nml=soil_parameters)
if (pparams(7)) write(*, nml=groundwater_parameters)
if (pparams(8)) write(*, nml=reservoir_parameters)
if (pparams(9)) write(*, nml=vegetation_parameters)
if (pparams(10)) write(*, nml=crop_parameters)
if (pparams(11)) write(*, nml=landuse_parameters)
if (pparams(12)) write(*, nml=snow_parameters)
if (pparams(13)) write(*, nml=nutrient_parameters)
if (pparams(14)) write(*, nml=management_parameters)
if (pparams(15)) write(*, nml=river_parameters)
if (pparams(16)) write(*, nml=erosion_parameters)
if (pparams(17)) write(*, nml=output_parameters)
if (pparams(18)) then
write(*, nml=input_parameters)
#ifdef with_netcdf
write(*, nml=nc_climate_parameters)
#endif
end if
stop
end subroutine print_module_parameters