00001 subroutine search_emdmax_xaxis_grid(iremax)
00002 use phys_constant, only : long
00003 use grid_parameter, only : nrf, ntfeq, npfxzp
00004 use def_matter, only : emd
00005 use make_array_1d
00006 implicit none
00007 real(long) :: emdmax
00008 integer :: iremax
00009 real(long), pointer :: fnc_x(:)
00010
00011
00012
00013 call alloc_array1d(fnc_x,0,nrf)
00014 fnc_x(0:nrf)=emd(0:nrf,ntfeq,npfxzp)
00015 iremax = maxloc(fnc_x,DIM=1) - 1
00016 deallocate(fnc_x)
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 end subroutine search_emdmax_xaxis_grid