FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | use_lz_layout | |||
logical, | intent(in) | :: | use_e_layout | |||
logical, | intent(in) | :: | use_le_layout | |||
logical, | intent(in) | :: | test |
subroutine init_map (use_lz_layout, use_e_layout, use_le_layout, test)
use mp, only: finish_mp, proc0
use redistribute, only: report_map_property
implicit none
logical, intent (in) :: use_lz_layout, use_e_layout, use_le_layout, test
! initialize maps from g_lo to lz_lo, e_lo, and/or le_lo
if (use_lz_layout) then
! init_lambda_layout is called in redistribute
call init_lambda_redistribute_local
if (test) then
if (proc0) print *, '=== Lambda map property ==='
call report_map_property (lambda_map)
end if
end if
if (use_e_layout) then
! init_energy_layout is called in redistribute
call init_energy_redistribute_local
if (test) then
if (proc0) print *, '=== Energy map property ==='
call report_map_property (energy_map)
end if
end if
if (use_le_layout) then
call init_g2le_redistribute_local
if (test) call check_g2le
end if
call init_g2gf(test)
if (test) then
if (proc0) print *, 'init_map done'
end if
end subroutine init_map