![]() |
AlmaBTE
1.3
A solver of the space- and time-dependent Boltzmann transport equation for phonons
|
Builder for Supercell_index objects sharing the same na, nb, nc. More...
#include <structures.hpp>
Public Member Functions | |
Supercell_index_builder (const int _na, const int _nb, const int _nc, const int _natoms) | |
Basic constructor. | |
Supercell_index | create_index (const int index) const |
Create a Supercell_index from a single integer. | |
Supercell_index | create_index (const int ia, const int ib, const int ic, const int iatom) const |
Create a Supercell_index from four integers. | |
Supercell_index | create_index_safely (const int index) const |
Perform a bounds check and create a Supercell_index from a single integer. More... | |
Supercell_index | create_index_safely (const int ia, const int ib, const int ic, const int iatom) const |
Perform a bounds check and create a Supercell_index from four integers. More... | |
Public Attributes | |
const int | na |
Supercell dimension along the first axis. | |
const int | nb |
Supercell dimension along the second axis. | |
const int | nc |
Supercell dimension along the third axis. | |
const int | natoms |
Number of atoms in the unit cell. | |
Builder for Supercell_index objects sharing the same na, nb, nc.
Supercell_index alma::Supercell_index_builder::create_index_safely | ( | const int | index | ) | const |
Perform a bounds check and create a Supercell_index from a single integer.
Supercell_index alma::Supercell_index_builder::create_index_safely | ( | const int | ia, |
const int | ib, | ||
const int | ic, | ||
const int | iatom | ||
) | const |
Perform a bounds check and create a Supercell_index from four integers.