xdmf_grid_obj Derived Type

type, private :: xdmf_grid_obj

An XDMF grid.


Inherits

type~~xdmf_grid_obj~~InheritsGraph type~xdmf_grid_obj xdmf_grid_obj type~xdmf_attribute_obj xdmf_attribute_obj type~xdmf_grid_obj->type~xdmf_attribute_obj axis

Inherited by

type~~xdmf_grid_obj~~InheritedByGraph type~xdmf_grid_obj xdmf_grid_obj type~xdmf_obj xdmf_obj type~xdmf_obj->type~xdmf_grid_obj grid

Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: NumberOfElements

Grid dimensions stored as a string of the type "nx ny nz"

type(xdmf_attribute_obj), public :: axis(3)

Grid axes

integer, public :: dims(3)

Grid dimensions

character(len=:), public, allocatable :: name

Grid name

character(len=:), public, allocatable :: path

Path to block_obj represinting the grid


Type-Bound Procedures

procedure, public :: Free => xdmf_grid_obj_Free

  • private pure subroutine xdmf_grid_obj_Free(this)

    Frees up data stored by this XDMF grid.

    Arguments

    Type IntentOptional Attributes Name
    class(xdmf_grid_obj), intent(inout) :: this

    XDMF grid object

Source Code

  type :: xdmf_grid_obj
    !> An XDMF grid.
    character(len=:), allocatable :: name                                      !! Grid name
    type(xdmf_attribute_obj)      :: axis(3)                                   !! Grid axes
    integer                       :: dims(3)                                   !! Grid dimensions
    character(len=:), allocatable :: path                                      !! Path to block_obj represinting the grid
    character(len=:), allocatable :: NumberOfElements                          !! Grid dimensions stored as a string of the type "nx ny nz"
    contains
      procedure :: Free => xdmf_grid_obj_Free
  end type xdmf_grid_obj