318# 31 "/home/runner/work/MFC/MFC/src/common/m_helper_basic.fpp"
320# 31 "/home/runner/work/MFC/MFC/src/common/m_helper_basic.fpp"
322# 31 "/home/runner/work/MFC/MFC/src/common/m_helper_basic.fpp"
324# 31 "/home/runner/work/MFC/MFC/src/common/m_helper_basic.fpp"
326# 31 "/home/runner/work/MFC/MFC/src/common/m_helper_basic.fpp"
328# 31 "/home/runner/work/MFC/MFC/src/common/m_helper_basic.fpp"
330# 31 "/home/runner/work/MFC/MFC/src/common/m_helper_basic.fpp"
332 real(wp),
intent(in) :: a, b
333 real(wp),
optional,
intent(in) :: tol_input
336 if (
present(tol_input))
then
344 else if (a == 0._wp .or. b == 0._wp .or. (abs(a) + abs(b) < tiny(a)))
then
345 res = (abs(a - b) < (tol*tiny(a)))
347 res = (abs(a - b)/min(abs(a) + abs(b), huge(a)) < tol)
458 igr_order, buff_size, idwint, idwbuff, &
459 viscous, bubbles_lagrange, m, n, p, num_dims, igr, ib)
461 integer,
intent(in) :: recon_type, weno_polyn, muscl_polyn
462 integer,
intent(in) :: m, n, p, num_dims, igr_order
463 integer,
intent(inout) :: buff_size
464 type(int_bounds_info),
dimension(3),
intent(inout) :: idwint, idwbuff
465 logical,
intent(in) :: viscous, bubbles_lagrange
466 logical,
intent(in) :: igr
467 logical,
intent(in) :: ib
474 buff_size = (igr_order - 1)/2 + 2
475 elseif (recon_type == weno_type)
then
477 buff_size = 2*weno_polyn + 2
479 buff_size = weno_polyn + 2
481 elseif (recon_type == muscl_type)
then
482 buff_size = muscl_polyn + 2
486 if (bubbles_lagrange)
then
487 buff_size = max(buff_size, 6)
491 buff_size = max(buff_size, 10)
495 idwint(1)%beg = 0; idwint(2)%beg = 0; idwint(3)%beg = 0
496 idwint(1)%end = m; idwint(2)%end = n; idwint(3)%end = p
498 idwbuff(1)%beg = -buff_size
499 if (num_dims > 1) then; idwbuff(2)%beg = -buff_size; else; idwbuff(2)%beg = 0;
end if
500 if (num_dims > 2) then; idwbuff(3)%beg = -buff_size; else; idwbuff(3)%beg = 0;
end if
502 idwbuff(1)%end = idwint(1)%end - idwbuff(1)%beg
503 idwbuff(2)%end = idwint(2)%end - idwbuff(2)%beg
504 idwbuff(3)%end = idwint(3)%end - idwbuff(3)%beg
514 type(cell_num_bounds),
intent(out) :: bounds
515 integer,
intent(in) :: m, n, p
517 bounds%mn_max = max(m, n)
518 bounds%np_max = max(n, p)
519 bounds%mp_max = max(m, p)
520 bounds%mnp_max = max(m, n, p)
521 bounds%mn_min = min(m, n)
522 bounds%np_min = min(n, p)
523 bounds%mp_min = min(m, p)
524 bounds%mnp_min = min(m, n, p)
subroutine, public s_configure_coordinate_bounds(recon_type, weno_polyn, muscl_polyn, igr_order, buff_size, idwint, idwbuff, viscous, bubbles_lagrange, m, n, p, num_dims, igr, ib)