1 #ifndef DISTRIBUTION_HPP
2 #define DISTRIBUTION_HPP
4 #include <Kokkos_Core.hpp>
14 View<double***,CLayout, Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
f0g_h;
15 View<double***,CLayout,Device>
f0g;
17 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
fg_temp_ev_h;
20 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
fg_flow_h;
23 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
fg_vth_inv_h;
27 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
grid_vol_h;
30 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
grid_vol_vonly_h;
33 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
inv_grid_vol_h;
37 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
temp_ev_h;
40 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
flow_h;
41 View<double*,CLayout,Device>
flow;
43 View<double*,Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
den_h;
44 View<double*,CLayout,Device>
den;
47 View<double*,CLayout,HostType, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
delta_n_h;
50 View<double*,CLayout,HostType, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
delta_u_h;
53 View<double*,CLayout,HostType, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
delta_T_h;
56 View<double*,CLayout, HostType, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
den_global_h;
59 View<double*,CLayout, HostType, Kokkos::MemoryTraits<Kokkos::Unmanaged>>
temp_global_h;
66 f0g = View<double***,CLayout,Device>(
NoInit(
"f0g"),
f0g_h.layout());
142 f0g = View<double***,CLayout,Device>();
145 fg_flow = View<double*,CLayout,Device>();
148 grid_vol = View<double*,CLayout,Device>();
153 temp_ev = View<double*,CLayout,Device>();
154 flow = View<double*,CLayout,Device>();
155 den = View<double*,CLayout,Device>();
157 delta_n = View<double*,CLayout,Device>();
158 delta_u = View<double*,CLayout,Device>();
159 delta_T = View<double*,CLayout,Device>();
View< double *, CLayout, Device > fg_flow
Definition: distribution.hpp:21
View< double *, CLayout, Device > den
Definition: distribution.hpp:44
void grid_vol_vonly_send_to_device()
Definition: distribution.hpp:105
void temp_ev_send_to_device()
Definition: distribution.hpp:85
void fg_vth_inv_send_to_device()
Definition: distribution.hpp:80
View< double *, CLayout, Device > den_global
Definition: distribution.hpp:57
View< double *, CLayout, Device > temp_global
Definition: distribution.hpp:60
View< double *, CLayout, Device > grid_vol_vonly
Definition: distribution.hpp:31
void den_send_to_device()
Definition: distribution.hpp:90
View< double *, CLayout, Device > temp_ev
Definition: distribution.hpp:38
void grid_vol_send_to_device()
Definition: distribution.hpp:100
void flow_send_to_device()
Definition: distribution.hpp:95
Distribution()
Definition: distribution.hpp:63
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > fg_temp_ev_h
Definition: distribution.hpp:17
View< double ***, CLayout, Device > f0g
Definition: distribution.hpp:15
View< double ***, CLayout, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > f0g_h
Definition: distribution.hpp:14
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > inv_grid_vol_h
Definition: distribution.hpp:33
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > den_h
Definition: distribution.hpp:43
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > fg_vth_inv_h
Definition: distribution.hpp:23
View< double *, CLayout, Device > flow
Definition: distribution.hpp:41
View< double *, CLayout, Device > grid_vol
Definition: distribution.hpp:28
void fg_flow_send_to_device()
Definition: distribution.hpp:75
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > temp_ev_h
Definition: distribution.hpp:37
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > flow_h
Definition: distribution.hpp:40
View< double *, CLayout, HostType, Kokkos::MemoryTraits< Kokkos::Unmanaged > > temp_global_h
Definition: distribution.hpp:59
View< double *, CLayout, HostType, Kokkos::MemoryTraits< Kokkos::Unmanaged > > delta_n_h
Definition: distribution.hpp:47
View< double *, CLayout, HostType, Kokkos::MemoryTraits< Kokkos::Unmanaged > > den_global_h
Definition: distribution.hpp:56
void fg_temp_ev_send_to_device()
Definition: distribution.hpp:70
View< double *, CLayout, HostType, Kokkos::MemoryTraits< Kokkos::Unmanaged > > delta_u_h
Definition: distribution.hpp:50
View< double *, CLayout, HostType, Kokkos::MemoryTraits< Kokkos::Unmanaged > > delta_T_h
Definition: distribution.hpp:53
void inv_grid_vol_send_to_device()
Definition: distribution.hpp:110
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > grid_vol_vonly_h
Definition: distribution.hpp:30
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > grid_vol_h
Definition: distribution.hpp:27
View< double *, CLayout, Device > delta_n
Definition: distribution.hpp:48
void den_global_send_to_device()
Definition: distribution.hpp:130
View< double *, CLayout, Device > delta_T
Definition: distribution.hpp:54
View< double *, CLayout, Device > fg_vth_inv
Definition: distribution.hpp:24
void temp_global_send_to_device()
Definition: distribution.hpp:135
void deallocate_device_views()
Definition: distribution.hpp:141
View< double *, CLayout, Device > inv_grid_vol
Definition: distribution.hpp:34
View< double *, CLayout, Device > delta_u
Definition: distribution.hpp:51
void delta_u_send_to_device()
Definition: distribution.hpp:120
View< double *, CLayout, Device > fg_temp_ev
Definition: distribution.hpp:18
void delta_n_send_to_device()
Definition: distribution.hpp:115
void delta_T_send_to_device()
Definition: distribution.hpp:125
View< double *, Kokkos::HostSpace, Kokkos::MemoryTraits< Kokkos::Unmanaged > > fg_flow_h
Definition: distribution.hpp:20
Kokkos::ViewAllocateWithoutInitializing NoInit
Definition: space_settings.hpp:68
Definition: distribution.hpp:10
void f0g_send_to_device()
Definition: distribution.hpp:65