68 if_corr, scalar_name, ri_c, ref_temp, g)
70 logical,
intent(in) :: if_ext
71 real(kind=
rp),
intent(in) :: t
72 integer,
intent(in) :: tstep
73 type(
coef_t),
intent(in) :: coef
74 type(
field_t),
intent(inout) :: nut
75 type(
field_t),
intent(in) :: delta
76 real(kind=
rp),
intent(in) :: c
77 logical,
intent(in) :: if_corr
78 character(len=*),
intent(in) :: scalar_name
79 real(kind=
rp),
intent(in) :: ri_c, ref_temp
80 real(kind=
rp),
intent(in) :: g(3)
83 type(
field_t),
pointer :: a11, a12, a13, a21, a22, a23, a31, a32, a33
84 type(
field_t),
pointer :: u, v, w
85 type(
field_t),
pointer :: temperature, dtdx, dtdy, dtdz
87 type(
field_t),
pointer :: beta11
88 type(
field_t),
pointer :: beta12
89 type(
field_t),
pointer :: beta13
90 type(
field_t),
pointer :: beta22
91 type(
field_t),
pointer :: beta23
92 type(
field_t),
pointer :: beta33
93 type(
field_t),
pointer :: b_beta
94 type(
field_t),
pointer :: aijaij
95 integer :: temp_indices(9), temp_indices_buoy(3)
98 if (if_ext .eqv. .true.)
then
119 call dudxyz (a11%x, u%x, coef%drdx, coef%dsdx, coef%dtdx, coef)
120 call dudxyz (a12%x, u%x, coef%drdy, coef%dsdy, coef%dtdy, coef)
121 call dudxyz (a13%x, u%x, coef%drdz, coef%dsdz, coef%dtdz, coef)
123 call dudxyz (a21%x, v%x, coef%drdx, coef%dsdx, coef%dtdx, coef)
124 call dudxyz (a22%x, v%x, coef%drdy, coef%dsdy, coef%dtdy, coef)
125 call dudxyz (a23%x, v%x, coef%drdz, coef%dsdz, coef%dtdz, coef)
127 call dudxyz (a31%x, w%x, coef%drdx, coef%dsdx, coef%dtdx, coef)
128 call dudxyz (a32%x, w%x, coef%drdy, coef%dsdy, coef%dtdy, coef)
129 call dudxyz (a33%x, w%x, coef%drdz, coef%dsdz, coef%dtdz, coef)
148 call dudxyz(dtdx%x, temperature%x, coef%drdx, coef%dsdx, coef%dtdx, coef)
149 call dudxyz(dtdy%x, temperature%x, coef%drdy, coef%dsdy, coef%dtdy, coef)
150 call dudxyz(dtdz%x, temperature%x, coef%drdz, coef%dsdz, coef%dtdz, coef)
153 a21%x_d, a22%x_d, a23%x_d, &
154 a31%x_d, a32%x_d, a33%x_d, &
155 delta%x_d, nut%x_d, coef%mult_d, &
157 dtdx%x_d, dtdy%x_d, dtdz%x_d, &
162 a21%x_d, a22%x_d, a23%x_d, &
163 a31%x_d, a32%x_d, a33%x_d, &
164 delta%x_d, nut%x_d, coef%mult_d, &
169 call device_col2(nut%x_d, coef%mult_d, nut%dof%size())
subroutine, public device_vreman_nut_compute_buoy(a11_d, a12_d, a13_d, a21_d, a22_d, a23_d, a31_d, a32_d, a33_d, delta_d, nut_d, mult_d, c, eps, n, dtdx_d, dtdy_d, dtdz_d, g, ri_c, ref_temp)