全要素に同じ相対誘電率を付与する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mesh_type), | intent(inout) | :: | mesh | |||
| real(kind=dp), | intent(in) | :: | epsilon_r |
subroutine apply_uniform_epsilon_r(mesh, epsilon_r) type(mesh_type), intent(inout) :: mesh real(dp), intent(in) :: epsilon_r if (.not. ieee_is_finite(epsilon_r) .or. epsilon_r < 1.0d0) error stop 'epsilon_r must be finite and >= 1.' if (.not. allocated(mesh%elem_epsilon_r)) return mesh%elem_epsilon_r = epsilon_r end subroutine apply_uniform_epsilon_r