uniformmesh Subroutine

public subroutine uniformmesh(x1, x2, delta_x, n_x, x)

Arguments

Type IntentOptional AttributesName
real(kind=8), intent(in) :: x1

the left size of the mesh boundary

real(kind=8), intent(in) :: x2

the right side of the mesh boundary

real(kind=8), intent(in) :: delta_x

the largest element size

integer(kind=4), intent(out) :: n_x

the number of mesh elements

real(kind=8), , dimension(:), allocatable:: x

the mesh midpoints

Description

creates a uniform mesh with size delta_x


Variables

TypeVisibility AttributesNameInitial
integer(kind=4), public :: i
integer(kind=4), public :: j