1 #ifndef CHECKPOINT_FILES_HPP
2 #define CHECKPOINT_FILES_HPP
RestartOption
Definition: checkpoint_files.hpp:16
Definition: checkpoint_files.hpp:22
CheckpointFiles(NLReader::NamelistReader &nlr)
Definition: checkpoint_files.hpp:35
XGC_IO_Stream stream
Definition: checkpoint_files.hpp:23
bool adios_stage_restart
Enable/disable Adios stage mode for xgc.restart.
Definition: checkpoint_files.hpp:25
bool restart_write_after_last_timestep
Whether to write checkpoint after the final time step.
Definition: checkpoint_files.hpp:33
int run_count
How many times the simulation has been restarted.
Definition: checkpoint_files.hpp:32
void write(const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, ElectricField< DeviceType > &electric_field, Plasma &plasma, const Sheath< DeviceType > &sheath, const Charges &charges, const PerturbedBField< DeviceType > &perturbed_B_field, const VelocityGrid &vgrid, const Sources &sources, DomainDecomposition< DeviceType > &pol_decomp, DMWrapper &pseudo_inv_dm, Diagnostics &diagnostics, RestartOption restart_option=RestartOption::NotFinal)
Definition: checkpoint_files.cpp:50
void read(Simulation< DeviceType > &sml, Plasma &plasma, ElectricField< DeviceType > &electric_field, Sheath< DeviceType > &sheath, Charges &charges, PerturbedBField< DeviceType > &perturbed_B_field, DomainDecomposition< DeviceType > &pol_decomp, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const VelocityGrid &vgrid, const Sources &sources)
Definition: checkpoint_files.cpp:142
int restart_write_period
How many steps between restart writes.
Definition: checkpoint_files.hpp:31
bool write_restart_now(int gstep)
Definition: checkpoint_files.cpp:269
bool adios_stage_restart_f0
Enable/disable Adios stage mode for xgc.restartf0.
Definition: checkpoint_files.hpp:26
bool do_restart(NLReader::NamelistReader &nlr)
Definition: checkpoint_files.cpp:251
Definition: magnetic_field.hpp:12
Definition: NamelistReader.hpp:199
T get(const string ¶m, const T default_val, int val_ind=0)
Definition: NamelistReader.hpp:392
void use_namelist(const string &namelist, Options required=Required)
Definition: NamelistReader.hpp:366
Definition: perturbed_B_field.hpp:12
Definition: plasma.hpp:13
Definition: sheath.hpp:49
Definition: xgc_io.hpp:24
void Init(const std::string &IOName)
Definition: xgc_io.hpp:29
Definition: magnetic_field.F90:1
subroutine plasma(grid, itr, p, dene_out, deni_out, Te_out, Ti_out, Vparai_out, ignore_vacuum)
Calculate the plasma density, temperature, and parallel velocity for a point in triangle itr using pl...
Definition: neutral_totalf.F90:1541
Definition: charge.hpp:66
Definition: DM_wrapper.hpp:34
Definition: diagnostics.hpp:21
Definition: electric_field.hpp:76
Definition: sources.hpp:22
Definition: velocity_grid.hpp:8