Reads the input mesh file (gmsh .msh format) and returns the number of nodes, element connectivity, and the coordinates of the nodes in 1D
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(out) | :: | num_nodes | Number of nodes in mesh |
||
| integer, | intent(out), | dimension(:), allocatable | :: | nodes2vertex | Array containing node to vertex connectivity (only interesting w.r.t discontinuous galerkin) |
|
| integer, | intent(out), | dimension(:,:), allocatable | :: | cells | Array containing node connectivity of each element |
|
| real(kind=wp), | intent(out), | dimension(:), allocatable | :: | points | Array containing node coordinates |
|
| logical, | intent(in) | :: | dg | Logical switch is continuous galerkin or discontinuous galerkin |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | num_nodes | |||
| real(kind=wp), | intent(in), | dimension(:) | :: | points | ||
| real(kind=wp), | intent(in), | dimension(:) | :: | GlobalX |