XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
Plasma Class Reference

#include <plasma.hpp>

Collaboration diagram for Plasma:
Collaboration graph
[legend]

Public Member Functions

 Plasma ()
 
 Plasma (NLReader::NamelistReader &nlr)
 
template<typename F >
void for_all_species (F func)
 
template<typename F >
void for_all_nonadiabatic_species (F func)
 
template<typename F >
void for_electrons (F func)
 
template<typename F >
void for_all_ions (F func)
 
int largest_n_ptl (bool check_backup)
 
void unassign_device_ptl ()
 
void deallocate_device_ptl ()
 
void transfer_particles_d_ownership (int isp)
 

Public Attributes

std::vector< Species
< DeviceType > > 
all_species
 Every particle species in the simulation. More...
 
TmpSpecies< DeviceTypetmp_species
 
int nspecies
 Number of species including electrons. More...
 
int n_nonadiabatic_species
 Number of nonadiabatic species. More...
 

Private Attributes

bool particles_d_has_owner
 Whether a species owns the device particles allocation. More...
 
int particles_d_owner
 Which species, if any, owns the device particles allocation. More...
 

Constructor & Destructor Documentation

Plasma::Plasma ( )
inline
Plasma::Plasma ( NLReader::NamelistReader nlr)
inline

Here is the call graph for this function:

Member Function Documentation

void Plasma::deallocate_device_ptl ( )
inline
template<typename F >
void Plasma::for_all_ions ( func)
inline

Here is the caller graph for this function:

template<typename F >
void Plasma::for_all_nonadiabatic_species ( func)
inline

Here is the caller graph for this function:

template<typename F >
void Plasma::for_all_species ( func)
inline
template<typename F >
void Plasma::for_electrons ( func)
inline

Here is the caller graph for this function:

int Plasma::largest_n_ptl ( bool  check_backup)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

void Plasma::transfer_particles_d_ownership ( int  isp)
inline
void Plasma::unassign_device_ptl ( )
inline

Here is the caller graph for this function:

Member Data Documentation

std::vector<Species<DeviceType> > Plasma::all_species

Every particle species in the simulation.

int Plasma::n_nonadiabatic_species

Number of nonadiabatic species.

int Plasma::nspecies

Number of species including electrons.

bool Plasma::particles_d_has_owner
private

Whether a species owns the device particles allocation.

int Plasma::particles_d_owner
private

Which species, if any, owns the device particles allocation.

TmpSpecies<DeviceType> Plasma::tmp_species

The documentation for this class was generated from the following file: