Read this module's parameters from a file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | files(:) |
subroutine read_params(files) use mod_global_parameters character(len=*), intent(in) :: files(:) integer :: n namelist /mhd_list/ mhd_energy, mhd_gamma, mhd_glm_alpha, mhd_gravity,& mhd_n_tracer, mhd_radiative_cooling, He_abundance, mhd_eta, mhd_source_usr, & mhd_resistivity, mhd_hyperbolic_thermal_conduction, & mhd_hyperbolic_thermal_conduction_anisotropic, & tc_kappa_par, tc_kappa_perp, & mhd_energy_only do n = 1, size(files) open(unitpar, file=trim(files(n)), status="old") read(unitpar, mhd_list, end=111) 111 close(unitpar) end do end subroutine read_params