Note
Function that returns the autocorrelation function of a surface in PARAM%acf_surf
subroutine calc_acf() !================================================================================================ !<@note Function that returns the autocorrelation function of a surface in PARAM%acf_surf !< !<@endnote !------------------------------------------------------------------------------------------------ implicit none integer(kind=I4) :: w, h logical(kind=I4) :: set_acf ! if set_acf is true, the acf becomes the prescribed one read(JOB,*) set_acf ; LINE_READ = LINE_READ +1 ; write(SPY,*) LINE_READ, "Set ACF ", set_acf w = PARAM%width h = PARAM%height call acf_wiener( tab_in = PARAM%surf(1:w, 1:h), & ! IN tab_out = PARAM%acf_surf(1:w, 1:h), & ! OUT w = w, & ! IN h = h ) ! IN if ( set_acf ) PARAM%imp_acf(1:w, 1:h) = PARAM%acf_surf(1:w, 1:h) return endsubroutine calc_acf