read_native_mesh Subroutine

public subroutine read_native_mesh(mesh_dir, m)

Orchestrates the reading of all mesh components from a directory.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: mesh_dir

Path to the directory containing .dat files.

type(mesh_t), intent(inout) :: m

The mesh structure to populate.


Calls

proc~~read_native_mesh~~CallsGraph proc~read_native_mesh mod_mesh_io::read_native_mesh proc~build_cell_faces mod_mesh_io::build_cell_faces proc~read_native_mesh->proc~build_cell_faces proc~mesh_finalize mod_mesh_types::mesh_finalize proc~read_native_mesh->proc~mesh_finalize proc~read_cells mod_mesh_io::read_cells proc~read_native_mesh->proc~read_cells proc~read_faces mod_mesh_io::read_faces proc~read_native_mesh->proc~read_faces proc~read_patches mod_mesh_io::read_patches proc~read_native_mesh->proc~read_patches proc~read_periodic_optional mod_mesh_io::read_periodic_optional proc~read_native_mesh->proc~read_periodic_optional proc~read_points mod_mesh_io::read_points proc~read_native_mesh->proc~read_points proc~append_cell_face mod_mesh_io::append_cell_face proc~build_cell_faces->proc~append_cell_face proc~fatal_error mod_kinds::fatal_error proc~build_cell_faces->proc~fatal_error proc~read_cells->proc~fatal_error proc~read_faces->proc~fatal_error proc~read_patches->proc~fatal_error proc~read_periodic_optional->proc~fatal_error proc~read_points->proc~fatal_error proc~append_cell_face->proc~fatal_error

Called by

proc~~read_native_mesh~~CalledByGraph proc~read_native_mesh mod_mesh_io::read_native_mesh program~lowmach_react_hex lowmach_react_hex program~lowmach_react_hex->proc~read_native_mesh

Source Code

   subroutine read_native_mesh(mesh_dir, m)
      character(len=*), intent(in) :: mesh_dir
      type(mesh_t), intent(inout) :: m

      call mesh_finalize(m)
      call read_points(trim(mesh_dir)//'/points.dat', m)
      call read_cells(trim(mesh_dir)//'/cells.dat', m)
      call read_faces(trim(mesh_dir)//'/faces.dat', m)
      call read_patches(trim(mesh_dir)//'/patches.dat', m)
      call read_periodic_optional(trim(mesh_dir)//'/periodic.dat', m)
      call build_cell_faces(m)
   end subroutine read_native_mesh