MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_finite_differences Module Reference

Finite difference operators for computing divergence of velocity fields. More...

Functions/Subroutines

subroutine s_compute_finite_difference_coefficients (q, s_cc, fd_coeff_s, local_buff_size, fd_number_in, fd_order_in, offset_s)
 Compute the centered finite-difference coefficients for first-order spatial derivatives in the s-coordinate direction (x, y, or z). Supports up to 4th order accuracy.

Detailed Description

Finite difference operators for computing divergence of velocity fields.

Function/Subroutine Documentation

◆ s_compute_finite_difference_coefficients()

subroutine m_finite_differences::s_compute_finite_difference_coefficients ( integer, intent(in) q,
real(wp), dimension(-local_buff_size:q + local_buff_size), intent(in) s_cc,
real(wp), dimension(:,:), intent(inout), allocatable fd_coeff_s,
integer, intent(in) local_buff_size,
integer, intent(in) fd_number_in,
integer, intent(in) fd_order_in,
type(int_bounds_info), intent(in), optional offset_s )

Compute the centered finite-difference coefficients for first-order spatial derivatives in the s-coordinate direction (x, y, or z). Supports up to 4th order accuracy.

Parameters
fd_coeff_sFinite-diff. coefficients in the s-coordinate direction
fd_number_inFinite-difference number
fd_order_inFinite-difference order of accuracy
offset_sOptional offset bounds in the s-coordinate direction

Definition at line 331 of file m_finite_differences.fpp.f90.