00001 subroutine set_allocate_size_mpt
00002 use phys_constant, only : nmpt
00003 use grid_parameter, only : nrg, ntg, npg, nlg,&
00004 & nrf, ntf, npf, nlf
00005
00006 implicit none
00007 integer :: nrgmax=0, ntgmax=0, npgmax=0, nlgmax=0,
00008 nrfmax=0, ntfmax=0, npfmax=0, nlfmax=0
00009 integer :: impt
00010
00011 do impt = 1, nmpt
00012 call copy_grid_parameter_from_mpt(impt)
00013
00014 nrgmax = max(nrgmax, nrg)
00015 ntgmax = max(ntgmax, ntg)
00016 npgmax = max(npgmax, npg)
00017 nlgmax = max(nlgmax, nlg)
00018 nrfmax = max(nrfmax, nrf)
00019 ntfmax = max(ntfmax, ntf)
00020 npfmax = max(npfmax, npf)
00021 nlfmax = max(nlfmax, nlf)
00022 end do
00023
00024 nrg =nrgmax
00025 ntg =ntgmax
00026 npg =npgmax
00027 nlg =nlgmax
00028 nrf =nrfmax
00029 ntf =ntfmax
00030 npf =npfmax
00031 nlf =nlfmax
00032
00033 end subroutine set_allocate_size_mpt