Skip to content

Commit dcfe689

Browse files
committed
fix build errors
1 parent 9f9bf0a commit dcfe689

7 files changed

Lines changed: 502 additions & 67 deletions

File tree

src/common/m_derived_types.fpp

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -271,67 +271,6 @@ module m_derived_types
271271
real(wp) :: model_threshold !< Threshold to turn on smoothen STL patch.
272272
end type ic_patch_parameters
273273

274-
!> Derived type adding initial condition (ic) patch parameters as attributes NOTE: The requirements for the specification of the
275-
!! above parameters are strongly dependent on both the choice of the multicomponent flow model as well as the choice of the
276-
!! patch geometry.
277-
type ic_patch_parameters
278-
279-
integer :: geometry !< Type of geometry for the patch
280-
real(wp) :: x_centroid, y_centroid, z_centroid !< Geometric center coordinates of the patch
281-
real(wp) :: length_x, length_y, length_z !< Dimensions of the patch. x,y,z Lengths.
282-
real(wp) :: radius !< Dimensions of the patch. radius.
283-
real(wp), dimension(3) :: radii !< Elliptical/ellipsoidal patch radii in x, y, z
284-
real(wp) :: epsilon, beta !< The isentropic vortex parameters for the amplitude of the disturbance and domain of influence.
285-
real(wp), dimension(2:9) :: a !< Used by hardcoded IC and as temporary variables.
286-
logical :: non_axis_sym
287-
288-
! Geometry 13 (2D modal Fourier): fourier_cos(n), fourier_sin(n) for mode n
289-
real(wp), dimension(1:max_2d_fourier_modes) :: fourier_cos, fourier_sin
290-
logical :: modal_clip_r_to_min !< When true, clip boundary radius: R(theta) = max(R(theta), modal_r_min) (Non-exp form only)
291-
real(wp) :: modal_r_min !< Minimum boundary radius when modal_clip_r_to_min is true (Non-exp form only)
292-
logical :: modal_use_exp_form !< When true, boundary = radius*exp(Fourier series)
293-
! Geometry 14 (3D spherical harmonic): sph_har_coeff(l,m) for real Y_lm
294-
real(wp), dimension(0:max_sph_harm_degree,-max_sph_harm_degree:max_sph_harm_degree) :: sph_har_coeff
295-
real(wp), dimension(3) :: normal !< Patch orientation normal vector (x, y, z)
296-
logical, dimension(0:num_patches_max - 1) :: alter_patch !< Overwrite permissions for preceding patches
297-
298-
!> Permission indicating to the current patch whether its boundaries will be smoothed out across a few cells or whether they
299-
!! are to remain sharp
300-
logical :: smoothen !< Whether patch boundaries are smoothed across cells
301-
integer :: smooth_patch_id !< Identity (id) of the patch with which current patch is to get smoothed
302-
303-
!> Smoothing coefficient (coeff) for the size of the stencil of cells across which boundaries of the current patch will be
304-
!! smeared out
305-
real(wp) :: smooth_coeff !< Smoothing stencil size coefficient
306-
real(wp), dimension(num_fluids_max) :: alpha_rho
307-
real(wp) :: rho
308-
real(wp), dimension(3) :: vel
309-
real(wp) :: pres
310-
real(wp), dimension(num_fluids_max) :: alpha
311-
real(wp) :: gamma
312-
real(wp) :: pi_inf
313-
real(wp) :: cv
314-
real(wp) :: qv
315-
!> Primitive variables associated with the patch. In order, these include the partial densities, density, velocity,
316-
!! pressure, volume fractions, specific heat ratio function and the liquid stiffness function.
317-
real(wp) :: qvp !< Reference entropy per unit mass (SGEOS)
318-
real(wp) :: Bx, By, Bz !< Magnetic field components; B%x is not used for 1D
319-
real(wp), dimension(6) :: tau_e !< Elastic stresses added to primitive variables if hypoelasticity = True
320-
real(wp) :: R0 !< Bubble size
321-
real(wp) :: V0 !< Bubble velocity
322-
real(wp) :: p0 !< Bubble size
323-
real(wp) :: m0 !< Bubble velocity
324-
integer :: hcid !< Hardcoded initial condition ID id for hard coded initial condition
325-
real(wp) :: cf_val !< Color function value
326-
real(wp) :: Y(1:num_species) !< Species mass fractions STL or OBJ model input parameter
327-
character(LEN=pathlen_max) :: model_filepath !< Path the STL file relative to case_dir.
328-
real(wp), dimension(1:3) :: model_translate !< Translation of the STL object.
329-
real(wp), dimension(1:3) :: model_scale !< Scale factor for the STL object.
330-
real(wp), dimension(1:3) :: model_rotate
331-
integer :: model_spc !< Number of samples per cell to use when discretizing the STL object.
332-
real(wp) :: model_threshold !< Threshold to turn on smoothen STL patch.
333-
end type ic_patch_parameters
334-
335274
type ib_patch_parameters
336275

337276
integer :: geometry !< Type of geometry for the patch

src/common/m_helper.fpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,19 @@ contains
298298
299299
end function f_cross
300300
301+
!> Compute the cross product c = a x b of two 3D vectors.
302+
subroutine s_cross_product(a, b, c)
303+
304+
$:GPU_ROUTINE(parallelism='[seq]')
305+
real(wp), intent(in) :: a(3), b(3)
306+
real(wp), intent(out) :: c(3)
307+
308+
c(1) = a(2)*b(3) - a(3)*b(2)
309+
c(2) = a(3)*b(1) - a(1)*b(3)
310+
c(3) = a(1)*b(2) - a(2)*b(1)
311+
312+
end subroutine s_cross_product
313+
301314
!> Swap two real numbers.
302315
elemental subroutine s_swap(lhs, rhs)
303316

src/simulation/m_bubbles.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module m_bubbles
2424
contains
2525

2626
!> Compute the bubble radial acceleration based on the selected bubble model
27-
elemental function f_rddot(fRho, fP, fR, fV, fR0, fpb, fpbdot, alf, fntait, fBtait, f_bub_adv_src, f_divu, fCson)
27+
function f_rddot(fRho, fP, fR, fV, fR0, fpb, fpbdot, alf, fntait, fBtait, f_bub_adv_src, f_divu, fCson)
2828

2929
$:GPU_ROUTINE(parallelism='[seq]')
3030
real(wp), intent(in) :: fRho, fP, fR, fV, fR0, fpb, fpbdot, alf

src/simulation/m_bubbles_EL.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module m_bubbles_EL
7979
contains
8080
8181
!> Initializes the lagrangian subgrid bubble solver
82-
impure subroutine s_initialize_bubbles_EL_module(q_cons_vf)
82+
impure subroutine s_initialize_bubbles_EL_module(q_cons_vf, bc_type)
8383
8484
type(scalar_field), dimension(sys_size), intent(inout) :: q_cons_vf
8585
type(integer_field), dimension(1:num_dims,1:2), intent(in) :: bc_type

src/simulation/m_bubbles_EL_kernels.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module m_bubbles_EL_kernels
3030
contains
3131

3232
!> Smear the Lagrangian bubble effects onto the Eulerian grid using the selected kernel
33-
subroutine s_smoothfunction(nBubs, lbk_rad, lbk_vel, lbk_s, lbk_pos, updatedvar)
33+
subroutine s_smoothfunction(nBubs, lbk_rad, lbk_vel, lbk_s, lbk_pos, updatedvar, kcomp)
3434

3535
integer, intent(in) :: nBubs
3636
real(wp), dimension(1:lag_params%nBubs_glb,1:3,1:2), intent(in) :: lbk_s, lbk_pos

0 commit comments

Comments
 (0)