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)
96 xmin, xmax, ymin, ymax, zmin, zmax)
112 full_elements, xmin, xmax, ymin, ymax, zmin, zmax)
114 integer,
intent(in),
optional :: size
115 character(len=*),
intent(in) :: name
116 logical,
intent(in) :: invert
117 logical,
intent(in) :: full_elements
118 real(kind=
rp),
intent(in) :: xmin
119 real(kind=
rp),
intent(in) :: xmax
120 real(kind=
rp),
intent(in) :: ymin
121 real(kind=
rp),
intent(in) :: ymax
122 real(kind=
rp),
intent(in) :: zmin
123 real(kind=
rp),
intent(in) :: zmax
125 call this%init_base(
size, name, invert, full_elements)
147 call this%free_base()
169 real(kind=
rp),
intent(in) :: x
170 real(kind=
rp),
intent(in) :: y
171 real(kind=
rp),
intent(in) :: z
172 integer,
intent(in) :: j
173 integer,
intent(in) :: k
174 integer,
intent(in) :: l
175 integer,
intent(in) :: e
177 logical :: in_x, in_y, in_z
180 in_x = ( (x .gt. this%xmin .and. x .lt. this%xmax) .or. &
184 in_y = ( (y .gt. this%ymin .and. y .lt. this%ymax) .or. &
188 in_z = ( (z .gt. this%zmin .and. z .lt. this%zmax) .or. &
191 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.