38 use json_module,
only: json_file
70 type(json_file),
intent(inout) :: json
71 integer,
intent(in) :: size
73 character(len=:),
allocatable :: str_read
74 real(kind=
rp),
allocatable :: values(:)
75 real(kind=
rp) :: xmin, xmax, ymin, ymax, zmin, zmax
77 logical :: full_elements
88 call json_get(json,
"name", str_read)
90 call json_get(json,
"name", str_read)
95 xmin, xmax, ymin, ymax, zmin, zmax)
111 ymin, ymax, zmin, zmax)
113 integer,
intent(in),
optional :: size
114 character(len=*),
intent(in) :: name
115 logical,
intent(in) :: invert
116 logical,
intent(in) :: full_elements
117 real(kind=
rp),
intent(in) :: xmin
118 real(kind=
rp),
intent(in) :: xmax
119 real(kind=
rp),
intent(in) :: ymin
120 real(kind=
rp),
intent(in) :: ymax
121 real(kind=
rp),
intent(in) :: zmin
122 real(kind=
rp),
intent(in) :: zmax
124 call this%init_base(
size, name, invert, full_elements)
146 call this%free_base()
168 real(kind=
rp),
intent(in) :: x
169 real(kind=
rp),
intent(in) :: y
170 real(kind=
rp),
intent(in) :: z
171 integer,
intent(in) :: j
172 integer,
intent(in) :: k
173 integer,
intent(in) :: l
174 integer,
intent(in) :: e
176 logical :: in_x, in_y, in_z
179 in_x = ( (x .gt. this%xmin .and. x .lt. this%xmax) .or. &
183 in_y = ( (y .gt. this%ymin .and. y .lt. this%ymax) .or. &
187 in_z = ( (z .gt. this%zmin .and. z .lt. this%zmax) .or. &
190 is_inside = in_x .and. in_y .and. in_z
Retrieves a parameter by name or assigns a provided default value. In the latter case also adds the m...
Retrieves a parameter by name or throws an error.
subroutine box_point_zone_init_from_json(this, json, size)
Constructor from json object file.
pure logical function box_point_zone_criterion(this, x, y, z, j, k, l, e)
Defines the criterion of selection of a GLL point in the box point zone. In the case of a box point z...
subroutine box_point_zone_init_common(this, size, name, invert, full_elements, xmin, xmax, ymin, ymax, zmin, zmax)
Initializes a box point zone from its coordinates.
subroutine box_point_zone_free(this)
Destructor.
Utilities for retrieving parameters from the case files.
integer, parameter, public rp
Global precision used in computations.
Base abstract type for point zones.