#include <pseudo_inverse_diag.hpp>
|
| PseudoInvDiagnostics () |
|
void | init (NLReader::NamelistReader &nlr, int f_source_period, const std::string &name) |
|
void | write (const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const Species< DeviceType > &species, const DomainDecomposition< DeviceType > &pol_decomp, uint64_t plane, int n_species, int n_nodes_all, int n_nodes_pseudo_inv_converged_all, int n_nodes_pseudo_inv_diverged_all, int n_nodes_pseudo_inv_skipped_all, View< int *, CLayout, HostType > pseudo_inv_num_its, View< bool *, CLayout, HostType > pseudo_inv_converged_node) |
|
bool | is_triggered (int step) |
|
bool | has_been_triggered (int step) |
|
int | get_period () const |
|
| Diagnostic () |
|
void | init (const std::string &name, int period, int first_step=-1) |
|
void | open_stream (const std::string &filename, const XGC_IO_Mode &mode) |
|
void | close_stream () |
|
void | write (const XGC_IO &xgc_io) |
|
void | start_write_step () |
|
bool | is_first_step () |
|
void | end_write_step () |
|
PseudoInvDiagnostics::PseudoInvDiagnostics |
( |
| ) |
|
|
inline |
< switches pseudo-inverse diagnostics on and off, only used if f0_velocity_interp_use_pseudo_inv = .true.
void PseudoInvDiagnostics::write |
( |
const Simulation< DeviceType > & |
sml, |
|
|
const Grid< DeviceType > & |
grid, |
|
|
const MagneticField< DeviceType > & |
magnetic_field, |
|
|
const Species< DeviceType > & |
species, |
|
|
const DomainDecomposition< DeviceType > & |
pol_decomp, |
|
|
uint64_t |
plane, |
|
|
int |
n_species, |
|
|
int |
n_nodes_all, |
|
|
int |
n_nodes_pseudo_inv_converged_all, |
|
|
int |
n_nodes_pseudo_inv_diverged_all, |
|
|
int |
n_nodes_pseudo_inv_skipped_all, |
|
|
View< int *, CLayout, HostType > |
pseudo_inv_num_its, |
|
|
View< bool *, CLayout, HostType > |
pseudo_inv_converged_node |
|
) |
| |
Writes pseudo-inverse diagnostics.
- Parameters
-
[in] | sml | Contains simulation control parameters. |
[in] | grid | Spatial grid object. |
[in] | magnetic_field | Magnetic field object |
[in] | species | Contains species parameters. |
[in] | pol_decomp | Contains poloidal decomposition info. |
[in] | plane | Poloidal plane number. |
[in] | n_species | Total number of species. |
[in] | n_nodes_all | Total number of nodes all planes. |
[in] | n_nodes_pseudo_inv_converged_all | Total number of nodes all planes where pseudo-inverse converged. |
[in] | n_nodes_pseudo_inv_diverged_all | Total number of nodes all planes where pseudo-inverse diverged. |
[in] | n_nodes_pseudo_inv_skipped_all | Total number of nodes all planes where pseudo-inverse was skipped. |
[in] | pseudo_inv_num_its | Number of iterations for pseudo-inverse solver in PETSc for each node in the poloidal plane. |
[in] | pseudo_inv_converged_node | true if the pseudo-inverse calculation converged (otherwise false) for each node in the poloidal plane. |
- Returns
- void
The documentation for this class was generated from the following files: