1#ifndef AMREX_FLUXREG_1D_C_H_
2#define AMREX_FLUXREG_1D_C_H_
3#include <AMReX_Config.H>
5#if (AMREX_SPACEDIM == 1)
29 Array4<Real const>
const& flx,
const int fcomp,
const int ncomp,
30 const int , Dim3
const& ratio,
const Real mult)
noexcept
34 const int i = ic*ratio.x;
35 for (
int n = 0; n < ncomp; ++n) {
36 reg(ic,0,0,n+rcomp) += mult * flx(i,0,0,n+fcomp);
59 Array4<Real const>
const& area,
60 Array4<Real const>
const& flx,
const int fcomp,
const int ncomp,
61 const int , Dim3
const& ratio,
const Real mult)
noexcept
65 const int i = ic*ratio.x;
66 for (
int n = 0; n < ncomp; ++n) {
67 reg(ic,0,0,n+rcomp) += mult * area(i,0,0) * flx(i,0,0,n+fcomp);
73 Array4<Real const>
const& f, Array4<Real const>
const& v,
74 const int ncomp,
const Real mult,
const Orientation face)
noexcept
79 for (
int n = 0; n < ncomp; ++n) {
80 for (
int i = lo.x; i <= hi.x; ++i) {
81 s(i,0,0,n+scomp) += -mult*f(i+1,0,0,n)/v(i,0,0);
85 for (
int n = 0; n < ncomp; ++n) {
86 for (
int i = lo.x; i <= hi.x; ++i) {
87 s(i,0,0,n+scomp) += mult*f(i,0,0,n)/v(i,0,0);
#define AMREX_GPU_HOST_DEVICE
Definition AMReX_GpuQualifiers.H:20
Definition AMReX_Amr.cpp:49
__host__ __device__ Dim3 ubound(Array4< T > const &a) noexcept
Definition AMReX_Array4.H:319
__host__ __device__ void fluxreg_reflux(Box const &bx, Array4< Real > const &s, const int scomp, Array4< Real const > const &f, Array4< Real const > const &v, const int ncomp, const Real mult, const Orientation face) noexcept
Definition AMReX_FluxReg_3D_C.H:185
BoxND< 3 > Box
Definition AMReX_BaseFwd.H:27
__host__ __device__ void fluxreg_fineadd(Box const &bx, Array4< Real > const ®, const int rcomp, Array4< Real const > const &flx, const int fcomp, const int ncomp, const int dir, Dim3 const &ratio, const Real mult) noexcept
Add fine grid flux to flux register. Flux array is a fine grid edge based object, Register is a coars...
Definition AMReX_FluxReg_3D_C.H:27
__host__ __device__ void fluxreg_fineareaadd(Box const &bx, Array4< Real > const ®, const int rcomp, Array4< Real const > const &area, Array4< Real const > const &flx, const int fcomp, const int ncomp, const int dir, Dim3 const &ratio, const Real mult) noexcept
Add fine grid flux times area to flux register. Flux array is a fine grid edge based object,...
Definition AMReX_FluxReg_3D_C.H:113
__host__ __device__ Dim3 lbound(Array4< T > const &a) noexcept
Definition AMReX_Array4.H:312