read_mesh_input Subroutine

private subroutine read_mesh_input(filename, params)

Reads the &mesh_input namelist block.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
type(case_params_t), intent(inout) :: params

Calls

proc~~read_mesh_input~~CallsGraph proc~read_mesh_input mod_input::read_mesh_input proc~fatal_error mod_kinds::fatal_error proc~read_mesh_input->proc~fatal_error proc~open_namelist_file mod_input::open_namelist_file proc~read_mesh_input->proc~open_namelist_file

Called by

proc~~read_mesh_input~~CalledByGraph proc~read_mesh_input mod_input::read_mesh_input proc~read_case_params mod_input::read_case_params proc~read_case_params->proc~read_mesh_input program~lowmach_react_hex lowmach_react_hex program~lowmach_react_hex->proc~read_case_params

Namelists

Namelist mesh_input


Variables

Name Type Default Description
mesh_dir character(len=path_len) None

Source Code

   subroutine read_mesh_input(filename, params)
      character(len=*), intent(in) :: filename
      type(case_params_t), intent(inout) :: params

      character(len=path_len) :: mesh_dir
      integer :: unit_id, ios

      namelist /mesh_input/ mesh_dir

      mesh_dir = params%mesh_dir

      call open_namelist_file(filename, unit_id, ios)

      if (ios == 0) then
         read(unit_id, nml=mesh_input, iostat=ios)
         close(unit_id)
      end if

      if (ios > 0) call fatal_error('input', 'failed reading &mesh_input')

      params%mesh_dir = mesh_dir
   end subroutine read_mesh_input