Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
nmsh_file Module Reference

Neko binary mesh data.

Data Types

type  nmsh_file_t
 Interface for Neko nmsh files. More...

Functions/Subroutines

subroutine nmsh_file_read (this, data)
 Load a mesh from a binary Neko nmsh file.
subroutine nmsh_file_read_2d (this, msh)
 Load a mesh from a binary Neko nmsh file.
subroutine nmsh_file_read_zones (fh, base_offset, nzones, msh)
 Read zone data in chunks and ring-pass between ranks, avoiding storage of the full zone list on every rank. Uses two ring traversals: first marks all matching facets on every rank, then applies periodic facets (apply must follow mark globally since apply mutates point ids that mark reads via get_facet_ids).
pure subroutine nmsh_file_extrude_periodic_ids (f, glb_pt_ids, glb_nelv, ids)
 Compute the extruded periodic point ids for the 2D thin-slab path. Pure function of the zone fields; safe to invoke independently from the mark and apply ring passes.
subroutine nmsh_file_read_zones_2d (fh, base_offset, nzones, msh)
 Read zone data in chunks and ring-pass between ranks for the 2D thin-slab path. Two ring traversals as in nmsh_file_read_zones, but periodic entries also need their glb_pt_ids reordered to account for the extruded layer.
subroutine nmsh_file_read_curves (fh, base_offset, ncurves, msh, extrusion_depth)
 Read curve element data in chunks and ring-pass between ranks, avoiding storage of the full curve list on every rank. If extrusion_depth is present, copy the four 2D curve edges to the corresponding upper edges of the extruded slab.
subroutine nmsh_file_write (this, data, t)
 Write a mesh from to a binary Neko nmsh file.

Variables

integer, parameter max_write_nel = 8000000
 Specifices the maximum number of elements any rank is allowed to write (for nmsh). Needed in order to generate large meshes where an individual write might exceed 2GB.

Function/Subroutine Documentation

◆ nmsh_file_extrude_periodic_ids()

pure subroutine nmsh_file::nmsh_file_extrude_periodic_ids ( integer, intent(in) f,
integer, dimension(4), intent(in) glb_pt_ids,
integer, intent(in) glb_nelv,
integer, dimension(4), intent(out) ids )
private

Definition at line 434 of file nmsh_file.f90.

Here is the caller graph for this function:

◆ nmsh_file_read()

subroutine nmsh_file::nmsh_file_read ( class(nmsh_file_t) this,
class(*), intent(inout), target data )

Definition at line 70 of file nmsh_file.f90.

Here is the call graph for this function:

◆ nmsh_file_read_2d()

subroutine nmsh_file::nmsh_file_read_2d ( class(nmsh_file_t) this,
type(mesh_t), intent(inout), pointer msh )
private

Definition at line 210 of file nmsh_file.f90.

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

◆ nmsh_file_read_curves()

subroutine nmsh_file::nmsh_file_read_curves ( type(mpi_file), intent(inout) fh,
integer(kind=mpi_offset_kind), intent(in) base_offset,
integer, intent(in) ncurves,
type(mesh_t), intent(inout) msh,
real(kind=dp), intent(in), optional extrusion_depth )
private

Definition at line 579 of file nmsh_file.f90.

Here is the caller graph for this function:

◆ nmsh_file_read_zones()

subroutine nmsh_file::nmsh_file_read_zones ( type(mpi_file), intent(inout) fh,
integer(kind=mpi_offset_kind), intent(in) base_offset,
integer, intent(in) nzones,
type(mesh_t), intent(inout) msh )
private

Definition at line 326 of file nmsh_file.f90.

Here is the caller graph for this function:

◆ nmsh_file_read_zones_2d()

subroutine nmsh_file::nmsh_file_read_zones_2d ( type(mpi_file), intent(inout) fh,
integer(kind=mpi_offset_kind), intent(in) base_offset,
integer, intent(in) nzones,
type(mesh_t), intent(inout) msh )
private

Definition at line 463 of file nmsh_file.f90.

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

◆ nmsh_file_write()

subroutine nmsh_file::nmsh_file_write ( class(nmsh_file_t), intent(inout) this,
class(*), intent(in), target data,
real(kind=dp), intent(in), optional t )
private

Definition at line 653 of file nmsh_file.f90.

Variable Documentation

◆ max_write_nel

integer, parameter nmsh_file::max_write_nel = 8000000
private

Definition at line 59 of file nmsh_file.f90.