Skip to content

Commit 54aea85

Browse files
Archith IyerArchith Iyer
authored andcommitted
fix
1 parent 2ef46be commit 54aea85

File tree

11 files changed

+95
-99
lines changed

11 files changed

+95
-99
lines changed

misc/m_silo_proxy.f90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ function DBPUTQM(dbid, name, lname, xname, lxname, yname, lyname, & !! -
189189
integer, intent(IN) :: lyname
190190
character(LEN=*), intent(IN) :: zname
191191
integer, intent(IN) :: lzname
192-
real(kind(0d0)), dimension(:), intent(IN) :: x
193-
real(kind(0d0)), dimension(:), intent(IN) :: y
194-
real(kind(0d0)), dimension(:), intent(IN) :: z
192+
real(wp), dimension(:), intent(IN) :: x
193+
real(wp), dimension(:), intent(IN) :: y
194+
real(wp), dimension(:), intent(IN) :: z
195195
integer, dimension(:), intent(IN) :: dims
196196
integer, intent(IN) :: ndims
197197
integer, intent(IN) :: datatype
@@ -215,8 +215,8 @@ function DBPUTCURVE(dbid, curvename, lcurvename, xvals, yvals, & !! ----
215215
integer, intent(IN) :: dbid
216216
character(LEN=*), intent(IN) :: curvename
217217
integer, intent(IN) :: lcurvename
218-
real(kind(0d0)), dimension(:), intent(IN) :: xvals
219-
real(kind(0d0)), dimension(:), intent(IN) :: yvals
218+
real(wp), dimension(:), intent(IN) :: xvals
219+
real(wp), dimension(:), intent(IN) :: yvals
220220
integer, intent(IN) :: datatype
221221
integer, intent(IN) :: npoints
222222
integer, intent(IN) :: optlist_id
@@ -264,7 +264,7 @@ function DBPUTQV1(dbid, name, lname, meshname, lmeshname, var, & !! ----
264264
integer, intent(IN) :: lname
265265
character(LEN=*), intent(IN) :: meshname
266266
integer, intent(IN) :: lmeshname
267-
real(kind(0d0)), dimension(:, :, :), intent(IN) :: var
267+
real(wp), dimension(:, :, :), intent(IN) :: var
268268
integer, dimension(:), intent(IN) :: dims
269269
integer, intent(IN) :: ndims
270270
integer, intent(IN) :: mixvar

src/common/m_constants.fpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ module m_constants
3535
integer, parameter :: Ifactor_3D = 5 !< Multiple factor of the ratio (edge to cell width) for interpolation along edges for 3D models
3636
integer, parameter :: Ifactor_bary_3D = 20 !< Multiple factor of the ratio (triangle area to cell face area) for interpolation on triangle facets for 3D models
3737
integer, parameter :: num_ray = 20 !< Default number of rays traced per cell
38-
real(kind(0d0)), parameter :: ray_tracing_threshold = 0.9d0 !< Threshold above which the cell is marked as the model patch
39-
real(kind(0d0)), parameter :: threshold_vector_zero = 1d-10 !< Threshold to treat the component of a vector to be zero
40-
real(kind(0d0)), parameter :: threshold_edge_zero = 1d-10 !< Threshold to treat two edges to be overlapped
41-
real(kind(0d0)), parameter :: threshold_bary = 1d-1 !< Threshold to interpolate a barycentric facet
42-
real(kind(0d0)), parameter :: initial_distance_buffer = 1d12 !< Initialized levelset distance for the shortest path pair algorithm
38+
real(wp), parameter :: ray_tracing_threshold = 0.9d0 !< Threshold above which the cell is marked as the model patch
39+
real(wp), parameter :: threshold_vector_zero = 1d-10 !< Threshold to treat the component of a vector to be zero
40+
real(wp), parameter :: threshold_edge_zero = 1d-10 !< Threshold to treat two edges to be overlapped
41+
real(wp), parameter :: threshold_bary = 1d-1 !< Threshold to interpolate a barycentric facet
42+
real(wp), parameter :: initial_distance_buffer = 1d12 !< Initialized levelset distance for the shortest path pair algorithm
4343

4444
end module m_constants

src/common/m_derived_types.fpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ module m_derived_types
168168
!! patch geometries. It is specified through its x-, y-, and z-components
169169
!! respectively.
170170

171-
172171
real(wp) :: epsilon, beta !<
173172
!! The spherical harmonics eccentricity parameters.
174173

@@ -239,7 +238,7 @@ module m_derived_types
239238
integer :: model_spc !<
240239
!! Number of samples per cell to use when discretizing the STL object.
241240

242-
real(kind(0d0)) :: model_threshold !<
241+
real(wp) :: model_threshold !<
243242
!! Threshold to turn on smoothen STL patch.
244243

245244
end type ic_patch_parameters
@@ -277,7 +276,7 @@ module m_derived_types
277276
integer :: model_spc !<
278277
!! Number of samples per cell to use when discretizing the STL object.
279278

280-
real(kind(0d0)) :: model_threshold !<
279+
real(wp) :: model_threshold !<
281280
!! Threshold to turn on smoothen STL patch.
282281
end type ib_patch_parameters
283282

src/common/m_helper_basic.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module m_helper_basic
2525
!! @param tol_input Relative error (default = 1e-6_wp).
2626
!! @return Result of the comparison.
2727
logical function f_approx_equal(a, b, tol_input) result(res)
28+
!$acc routine seq
2829
real(wp), intent(in) :: a, b
2930
real(wp), optional, intent(in) :: tol_input
3031
real(wp) :: tol
@@ -47,6 +48,7 @@ end function f_approx_equal
4748
!> Checks if a real(wp) variable is of default value.
4849
!! @param var Variable to check.
4950
logical function f_is_default(var) result(res)
51+
!$acc routine seq
5052
real(wp), intent(in) :: var
5153

5254
res = f_approx_equal(var, dflt_real)

src/pre_process/m_compute_levelset.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ contains
360360
type(levelset_norm_field), intent(INOUT) :: levelset_norm
361361

362362
integer, intent(IN) :: ib_patch_id
363-
real(kind(0d0)) :: Right, Left, Bottom, Top, Front, Back
364-
real(kind(0d0)) :: x, y, z, min_dist
365-
real(kind(0d0)) :: side_dists(6)
363+
real(wp) :: Right, Left, Bottom, Top, Front, Back
364+
real(wp) :: x, y, z, min_dist
365+
real(wp) :: side_dists(6)
366366

367367
integer :: i, j, k !< Loop index variables
368368

0 commit comments

Comments
 (0)