Skip to content

adam_nasto_gmp_cns_kernels

ADAM, NASTO GMP Compressible-Navier-Stokes fluidyanmics application kernels.

Source: src/app/nasto/gmp/adam_nasto_gmp_cns_kernels.F90

Dependencies

Contents

Subroutines

compute_conservatives_device

Compute convervative variables from auxiliary ones.

fortran
subroutine compute_conservatives_device(b, i, j, k, ngc, q_aux_gpu, q)

Arguments

NameTypeIntentAttributesDescription
binteger(kind=I4P)inCell indexes.
iinteger(kind=I4P)inCell indexes.
jinteger(kind=I4P)inCell indexes.
kinteger(kind=I4P)inCell indexes.
ngcinteger(kind=I4P)inGhost cells number.
q_aux_gpureal(kind=R8P)inAuxiliary variables.
qreal(kind=R8P)inoutConservative varibales.

Call graph

compute_conservative_fluxes_device

Compute convervative fluxes from auxiliary variables.

fortran
subroutine compute_conservative_fluxes_device(sir, b, i, j, k, ngc, q_aux_gpu, f)

Arguments

NameTypeIntentAttributesDescription
sirreal(kind=R8P)inDirectional (1=x,2=y,3=z) increment.
binteger(kind=I4P)inCell indexes.
iinteger(kind=I4P)inCell indexes.
jinteger(kind=I4P)inCell indexes.
kinteger(kind=I4P)inCell indexes.
ngcinteger(kind=I4P)inGhost cells number.
q_aux_gpureal(kind=R8P)inAuxiliary variables.
freal(kind=R8P)inoutConservative fluxes.

Call graph

compute_max_eigenvalues_device

fortran
subroutine compute_max_eigenvalues_device(si, sir, weno_s, b, i, j, k, ngc, nv, q_aux_gpu, evmax)

Arguments

NameTypeIntentAttributesDescription
siinteger(kind=I4P)inStencil increment.
sirreal(kind=R8P)inStencil increment, real cast.
weno_sinteger(kind=I4P)inWeno stencils number/dimension.
binteger(kind=I4P)inCell indexes.
iinteger(kind=I4P)inCell indexes.
jinteger(kind=I4P)inCell indexes.
kinteger(kind=I4P)inCell indexes.
ngcinteger(kind=I4P)inGhost cells number.
nvinteger(kind=I4P)inNumber of conservative varibales.
q_aux_gpureal(kind=R8P)inAuxiliary variables.
evmaxreal(kind=R8P)inoutMaximum eigenvalues in the big stencil.

Call graph

compute_eigenvectors_device

fortran
subroutine compute_eigenvectors_device(si, sir, b, i, j, k, ngc, nv, g, q_aux_gpu, el, er)

Arguments

NameTypeIntentAttributesDescription
siinteger(kind=I4P)inStencil increment.
sirreal(kind=R8P)inStencil increment, real cast.
binteger(kind=I4P)inCell indexes.
iinteger(kind=I4P)inCell indexes.
jinteger(kind=I4P)inCell indexes.
kinteger(kind=I4P)inCell indexes.
ngcinteger(kind=I4P)inGhost cells number.
nvinteger(kind=I4P)inNumber of conservative varibales.
greal(kind=R8P)inSpecific heats ratio.
q_aux_gpureal(kind=R8P)inAuxiliary variables.
elreal(kind=R8P)inoutLeft and right eigenvectors.
erreal(kind=R8P)inoutLeft and right eigenvectors.

Call graph

compute_q_aux_gmp

Compute auxiliary variables.

fortran
subroutine compute_q_aux_gmp(ni, nj, nk, ngc, blocks_number, R, cv, g, q_gpu, q_aux_gpu)

Arguments

NameTypeIntentAttributesDescription
niinteger(kind=I4P)inGrid cells number in I direction.
njinteger(kind=I4P)inGrid cells number in J direction.
nkinteger(kind=I4P)inGrid cells number in K direction.
ngcinteger(kind=I4P)inGhost cells number.
blocks_numberinteger(kind=I4P)inNumber of blocks.
Rreal(kind=R8P)inFluid constant, specific heats difference.
cvreal(kind=R8P)inSpecific heat at constant volume.
greal(kind=R8P)inSpecific heats ratio.
q_gpureal(kind=R8P)inConservative variables.
q_aux_gpureal(kind=R8P)outAuxiliary variables.

Call graph

compute_roe_average_device

Compute Roe averaged quantities.

fortran
subroutine compute_roe_average_device(ngc, b, i, j, k, ip, jp, kp, g, q_aux_gpu, uu, vv, ww, h, qq, c, ci, b1, b2)

Arguments

NameTypeIntentAttributesDescription
ngcinteger(kind=I4P)inNumber of ghost cells.
binteger(kind=I4P)inLeft/right cells indexes.
iinteger(kind=I4P)inLeft/right cells indexes.
jinteger(kind=I4P)inLeft/right cells indexes.
kinteger(kind=I4P)inLeft/right cells indexes.
ipinteger(kind=I4P)inLeft/right cells indexes.
jpinteger(kind=I4P)inLeft/right cells indexes.
kpinteger(kind=I4P)inLeft/right cells indexes.
greal(kind=R8P)inSpecific heats ratio.
q_aux_gpureal(kind=R8P)inAuxiliary variables.
uureal(kind=R8P)outRoe state average variables.
vvreal(kind=R8P)outRoe state average variables.
wwreal(kind=R8P)outRoe state average variables.
hreal(kind=R8P)outRoe state average variables.
qqreal(kind=R8P)outRoe state average variables.
creal(kind=R8P)outRoe state average variables.
cireal(kind=R8P)outRoe state average variables.
b1real(kind=R8P)outRoe state average variables.
b2real(kind=R8P)outRoe state average variables.

Call graph