25 View<double**,CLayout,HostType>
jpar_h;
38 View<double****,CLayout,Device>
jpar;
48 #ifdef USE_ARRAY_REPLICATION
53 int nphi = (sml.
is_XGCa ? 1 : 2);
60 #ifdef USE_ARRAY_REPLICATION
65 int nphi = (sml.
is_XGCa ? 1 : 2);
bool is_electrons
Definition: charge.hpp:17
Charges(const Grid< DeviceType > &grid, const Simulation< DeviceType > &sml)
Definition: charge.hpp:47
void reset_to_zero()
Definition: charge.tpp:46
Definition: charge.hpp:43
const bool explicit_electromagnetic
Equivalent to the preprocessor flag for now.
Definition: sml.hpp:29
View< double ***, CLayout, HostType > jpar_rho_ff_h
Definition: charge.hpp:32
View< double **, CLayout, HostType > jpar_h
Definition: charge.hpp:25
Charge< DeviceType > ion
Definition: charge.hpp:45
bool use_current
Whether the class will handle current in addition to charge density.
Definition: charge.hpp:18
View< double ***, CLayout, HostType > den_rho_ff_h
Definition: charge.hpp:31
int nrho
Definition: grid.hpp:129
Charge< DeviceType > electron
Definition: charge.hpp:44
View< double ****, CLayout, Device > jpar
Electron current distribution.
Definition: charge.hpp:38
int npsi00
Definition: grid.hpp:114
int nthreads
Number of OMP threads on the host.
Definition: sml.hpp:52
View< double *, CLayout, HostType > den00_1d_h
Definition: charge.hpp:23
Charges(const Simulation< DeviceType > &sml, int nnode, int npsi00, int nrho)
Definition: charge.hpp:59
View< double **, CLayout, HostType > density_h
Definition: charge.hpp:21
View< double *, CLayout, HostType > jpar0_h
Definition: charge.hpp:26
View< double ****, CLayout, Device > density
Electron density distribution.
Definition: charge.hpp:35
const bool is_XGCa
Equivalent to the preprocessor flag for now.
Definition: sml.hpp:15
int nnode
Number of grid nodes.
Definition: grid.hpp:83
View< double **, CLayout, HostType > den_f0_h
Definition: charge.hpp:28
View< double *, CLayout, HostType > density0_h
Definition: charge.hpp:22
Charge()
Definition: charge.hpp:15