1 #ifndef DISTRIBUTION_HPP
2 #define DISTRIBUTION_HPP
4 #include <Kokkos_Core.hpp>
10 template<
class Device>
15 View<double***,CLayout, Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
f0g_h;
16 View<double***,CLayout,Device>
f0g;
18 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
fg_temp_ev_h;
21 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
fg_flow_h;
24 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
fg_vth_inv_h;
28 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
grid_vol_h;
31 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
grid_vol_vonly_h;
34 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
inv_grid_vol_h;
38 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
temp_ev_h;
41 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
flow_h;
42 View<double*,CLayout,Device>
flow;
44 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
den_h;
45 View<double*,CLayout,Device>
den;
48 View<double*,CLayout,HostType, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
delta_n_h;
51 View<double*,CLayout,HostType, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
delta_u_h;
54 View<double*,CLayout,HostType, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
delta_T_h;
73 f0g = View<double***,CLayout,Device>(
NoInit(
"f0g"),
f0g_h.layout());
159 f0g = View<double***,CLayout,Device>();
162 fg_flow = View<double*,CLayout,Device>();
165 grid_vol = View<double*,CLayout,Device>();
170 temp_ev = View<double*,CLayout,Device>();
171 flow = View<double*,CLayout,Device>();
172 den = View<double*,CLayout,Device>();
174 delta_n = View<double*,CLayout,Device>();
175 delta_u = View<double*,CLayout,Device>();
176 delta_T = View<double*,CLayout,Device>();
View< double *, CLayout, Device > fg_flow
Definition: distribution.hpp:22
View< double *, CLayout, Device > den
Definition: distribution.hpp:45
bool fg_temp_global_assigned
Definition: distribution.hpp:66
void grid_vol_vonly_send_to_device()
Definition: distribution.hpp:112
void temp_ev_send_to_device()
Definition: distribution.hpp:92
void fg_vth_inv_send_to_device()
Definition: distribution.hpp:87
View< double *, CLayout, Device > den_global
Definition: distribution.hpp:58
View< double *, CLayout, Device > temp_global
Definition: distribution.hpp:61
View< double *, CLayout, Device > grid_vol_vonly
Definition: distribution.hpp:32
void den_send_to_device()
Definition: distribution.hpp:97
View< double *, CLayout, Device > temp_ev
Definition: distribution.hpp:39
void grid_vol_send_to_device()
Definition: distribution.hpp:107
void flow_send_to_device()
Definition: distribution.hpp:102
Distribution()
Definition: distribution.hpp:70
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > fg_temp_ev_h
Definition: distribution.hpp:18
View< double ***, CLayout, Device > f0g
Definition: distribution.hpp:16
View< double ***, CLayout, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > f0g_h
Definition: distribution.hpp:15
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > inv_grid_vol_h
Definition: distribution.hpp:34
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > den_h
Definition: distribution.hpp:44
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > fg_vth_inv_h
Definition: distribution.hpp:24
void flow_global_send_to_device()
Definition: distribution.hpp:147
View< double *, CLayout, Device > flow
Definition: distribution.hpp:42
View< double *, CLayout, Device > grid_vol
Definition: distribution.hpp:29
void fg_flow_send_to_device()
Definition: distribution.hpp:82
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > temp_ev_h
Definition: distribution.hpp:38
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > flow_h
Definition: distribution.hpp:41
View< double *, CLayout, Device > fg_temp_global
Definition: distribution.hpp:68
View< double *, CLayout, HostType, Kokkos::MemoryTraits< Kokkos::Unmanaged > > delta_n_h
Definition: distribution.hpp:48
void fg_temp_global_send_to_device()
Definition: distribution.hpp:152
void fg_temp_ev_send_to_device()
Definition: distribution.hpp:77
View< double *, CLayout, HostType, Kokkos::MemoryTraits< Kokkos::Unmanaged > > delta_u_h
Definition: distribution.hpp:51
View< double *, CLayout, HostType > fg_temp_global_h
Definition: distribution.hpp:67
View< double *, CLayout, HostType, Kokkos::MemoryTraits< Kokkos::Unmanaged > > delta_T_h
Definition: distribution.hpp:54
void inv_grid_vol_send_to_device()
Definition: distribution.hpp:117
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > grid_vol_vonly_h
Definition: distribution.hpp:31
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > grid_vol_h
Definition: distribution.hpp:28
View< double *, CLayout, Device > delta_n
Definition: distribution.hpp:49
void den_global_send_to_device()
Definition: distribution.hpp:137
View< double *, CLayout, HostType > den_global_h
Definition: distribution.hpp:57
View< double *, CLayout, Device > delta_T
Definition: distribution.hpp:55
View< double *, CLayout, Device > fg_vth_inv
Definition: distribution.hpp:25
void temp_global_send_to_device()
Definition: distribution.hpp:142
void deallocate_device_views()
Definition: distribution.hpp:158
View< double *, CLayout, Device > inv_grid_vol
Definition: distribution.hpp:35
View< double *, CLayout, Device > delta_u
Definition: distribution.hpp:52
void delta_u_send_to_device()
Definition: distribution.hpp:127
View< double *, CLayout, Device > flow_global
Definition: distribution.hpp:64
View< double *, CLayout, Device > fg_temp_ev
Definition: distribution.hpp:19
void delta_n_send_to_device()
Definition: distribution.hpp:122
void delta_T_send_to_device()
Definition: distribution.hpp:132
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > fg_flow_h
Definition: distribution.hpp:21
View< double *, CLayout, HostType > temp_global_h
Definition: distribution.hpp:60
Kokkos::ViewAllocateWithoutInitializing NoInit
Definition: space_settings.hpp:68
Definition: distribution.hpp:11
void f0g_send_to_device()
Definition: distribution.hpp:72
View< double *, CLayout, HostType > flow_global_h
Definition: distribution.hpp:63