20 #ifndef GEOS_PHYSICSSOLVERS_FLUIDFLOW_COMPOSITIONAL_FLUIDUPDATEKERNEL_IMPL_HPP
21 #define GEOS_PHYSICSSOLVERS_FLUIDFLOW_COMPOSITIONAL_FLUIDUPDATEKERNEL_IMPL_HPP
28 namespace thermalCompositionalMultiphaseBaseKernels
31 template<
typename POLICY,
typename FLUID >
33 FluidUpdateKernel< POLICY, FLUID >::launch(
localIndex const size,
34 typename FLUID::KernelWrapper
const & fluidWrapper,
35 arrayView1d< real64 const >
const & pres,
36 arrayView1d< real64 const >
const & temp,
37 arrayView2d< real64 const, compflow::USD_COMP >
const & compFrac )
41 for(
localIndex q = 0; q < fluidWrapper.numGauss(); ++q )
43 fluidWrapper.update( k, q, pres[k], temp[k], compFrac[k] );
48 template<
typename POLICY,
typename FLUID >
50 FluidUpdateKernel< POLICY, FLUID >::launch( SortedArrayView< localIndex const >
const & targetSet,
51 typename FLUID::KernelWrapper
const & fluidWrapper,
52 arrayView1d< real64 const >
const & pres,
53 arrayView1d< real64 const >
const & temp,
54 arrayView2d< real64 const, compflow::USD_COMP >
const & compFrac )
59 for(
localIndex q = 0; q < fluidWrapper.numGauss(); ++q )
61 fluidWrapper.update( k, q, pres[k], temp[k], compFrac[k] );
#define GEOS_HOST_DEVICE
Marks a host-device function.
GEOS_LOCALINDEX_TYPE localIndex
Local index type (for indexing objects within an MPI partition).