make_grid Module Subroutine

public module subroutine make_grid(grid, E0, num_segments, grid_segments, nelemnts_per_seg, spacing)

Make a segmented grid starting at E0 Example with num_segments = 3, grid_segments = [1e-3, 1e-2, 1e-1, 1], nelemnts_per_seg = [1000,1000, 100] E0+1e-3 E0+1e-2 E0+1e-1 E0+1.0 !------------------!-------------------!- - - - - - - - -! 1000 energies 1000 energies 100 energies

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(inout), allocatable :: grid(:)

The energy grid

real(kind=dp), intent(in) :: E0

The lowest energy

integer, intent(in) :: num_segments

The number of segments in the energy grid

real(kind=dp), intent(in) :: grid_segments(:)

The boundaries of the grid segments

integer, intent(in) :: nelemnts_per_seg(:)

The number of elements in each grid segment

character(len=3), intent(in) :: spacing

The spacing type in each segment. "LIN" for linear or "LOG" for logarithmic