67 void Init(
int argc,
char** argv);
TDimensionSizes GetReducedDimensionSizes() const
Reduced dimension sizes of the simulation (complex classes).
std::string GetCheckpointFileName() const
Get checkpoint filename.
float & Get_c0_scalar()
Get c0_scalar value.
size_t GetNumberOfThreads() const
Get number of threads.
float Get_dz() const
Get dz value.
size_t transducer_source_flag
transducer_source_flag value.
size_t Get_sensor_mask_index_size() const
Get sensor_mask_index_size value.
TCUDAParameters cudaParameters
Class with CUDA Parameters (runtime setup)
bool IsStore_u_rms() const
Is –u_rms set?
static bool parametersInstanceFlag
singleton flag
size_t Get_u_source_index_size() const
Get u_source_index_size value.
size_t GetProgressPrintInterval() const
Get progress print interval.
size_t transducer_source_input_size
transducer_source_input_size value.
TSensorMaskType
Sensor mask type (linear indices or cuboid corners).
size_t GetStartTimeIndex() const
Get start time index for sensor recording.
const std::string & GetCheckpointFileName() const
Get Checkpoint file name.
bool IsStore_p_max() const
Is –p_max set?
size_t Get_pml_z_size() const
Get pml_z_size value.
bool BonA_scalar_flag
BonA_scalar_flag value.
float Get_c_ref() const
Get c_ref value.
size_t p_source_flag
p_source_flag value.
size_t GetNumberOfThreads() const
Get number of threads.
bool IsStore_p_min_all() const
Is –p_min_all set?
bool IsStore_p_rms() const
Is –p_rms set?
float & Get_BonA_scalar()
Get BonA_scalar value.
void ReadScalarsFromInputFile(THDF5_File &inputFile)
Read scalar values from the input HDF5 file.
const std::string & GetOutputFileName() const
Get output file name.
size_t u_source_mode
u_source_mode value.
bool IsStore_p_final() const
Is –p_final set?
size_t ux_source_flag
ux_source_flag value.
const std::string & GetInputFileName() const
Get input file name.
bool alpha_coeff_scalar_flag
alpha_coeff_scalar_flag value.
The header file for the class for setting CUDA kernel parameters.
size_t GetCheckpointInterval() const
Get checkpoint interval.
float pml_x_alpha
pml_x_alpha value.
size_t Get_ux_source_flag() const
Get ux_source_flag value.
bool IsStore_u_min() const
Is –u_min specified at the command line?
TDimensionSizes reducedDimensionSizes
Reduced 3D dimension sizes.
static TParameters & GetInstance()
Get instance of the singleton class.
bool IsVersion() const
Is –version specified at the command line?
bool IsStore_u_raw() const
Is -u or –u_raw specified at the command line?
float absorb_eta_scalar
absorb_eta_scalar value.
void Set_t_index(const size_t new_t_index)
Set simulation time step - should be used only when recovering from checkpoint.
bool c0_scalar_flag
c0_scalar_flag value.
size_t Get_sensor_mask_corners_size() const
Get number of cubes in the mask.
size_t nonlinear_flag
nonlinear_flag value.
size_t p_source_mode
p_source_mode value.
TCUDAParameters & GetCudaParameters()
Get class with CUDA Parameters (runtime setup)
std::string GetInputFileName() const
Get input file name.
size_t u_source_index_size
u_source_index_size value.
float pml_z_alpha
pml_z_alpha value.
bool Get_c0_scalar_flag() const
Get c0_scalar_flag value.
bool IsStore_u_non_staggered_raw() const
Is –u_non_staggered_raw set?
float BonA_scalar
BonA_scalar value.
The header file containing the HDF5 related classes.
bool IsStore_p_min() const
Is –p_min set?
float alpha_power
alpha_power value.
static TParameters * parametersSingleInstance
singleton instance
size_t Get_u_source_many() const
Get u_source_many value.
bool Get_BonA_scalar_flag() const
Get BonA_scalar_flag value.
size_t nonuniform_grid_flag
nonuniform_grid_flag value.
size_t uz_source_flag
uz_source_flag value.
bool IsStore_u_max() const
Is –u_max set?
THDF5_File inputFile
Handle to the input HDF5 file.
bool IsCheckpointEnabled() const
Is checkpoint enabled?
bool Get_alpha_coeff_scalar_flag() const
Get alpha_coeff_scalar_flag value.
Class responsible for CUDA runtime setup.
float pml_y_alpha
pml_y_alpha value.
size_t absorbing_flag
absorbing_flag value.
bool IsStore_u_rms() const
Is –u_raw specified at the command line?
size_t Get_t_index() const
Get simulation time step.
size_t GetProgressPrintInterval() const
Get progress print interval.
virtual ~TParameters()
Destructor.
TDimensionSizes GetFullDimensionSizes() const
Full dimension sizes of the simulation (real classes).
bool IsStore_p_raw() const
Is -p or –p_raw specified at the command line?
THDF5_File outputFile
Handle to the output HDF5 file.
bool IsStore_p_rms() const
Is –p_rms specified at the command line?
TParameters()
Constructor.
bool IsStore_p_min_all() const
Is –p_min_all specified at the command line?
bool IsStore_p_min() const
Is –p_min specified at the command line?
size_t sensor_mask_ind_size
sensor_mask_ind_size value.
float c0_scalar
c0_scalar value.
size_t sensor_mask_corners_size
sensor_mask_corners_size - how many cuboids are in the mask.
void SelectDevice()
Select cuda device for execution.
bool IsStore_u_non_staggered_raw() const
Is –u_non_staggered_raw set?
bool IsStore_u_min_all() const
Is –u_min_all specified at the command line?
size_t Get_pml_x_size() const
Get pml_x_size value.
float Get_pml_z_alpha_size() const
Get pml_z_alpha_size value.
Class storing all parameters of the simulation.
size_t Get_uy_source_flag() const
Get uy_source_flag value.
const TCUDAParameters & GetCudaParameters() const
Get class with CUDA Parameters (runtime setup), cosnt version.
size_t Get_p_source_mode() const
Get p_source_mode value.
void PrintSimulatoinSetup()
Print the simulation setup (all parameters)
THDF5_FileHeader & GetFileHeader()
Get File header handle.
float rho0_sgz_scalar
rho0_sgz_scalar value.
size_t uy_source_flag
uy_source_flag value.
THDF5_File & GetCheckpointFile()
Gest checkpoint file handle.
bool IsStore_p_final() const
Is –p_final specified at the command line?
size_t Get_p_source_many() const
Get p_source_many value.
size_t Get_p0_source_flag() const
Get p0_source_flag value.
float Get_dt() const
Get dt value.
float Get_dx() const
Get dx value.
The header file containing the structure with 3D dimension sizes.
bool IsStore_u_final() const
Is –u_final set?
float Get_dy() const
Get dy value.
size_t t_index
actual time index (time step of the simulation).
size_t Get_nonlinear_flag() const
Get nonlinear_flag value.
float & Get_absorb_eta_scalar()
Get absorb_eta_scalar value.
size_t pml_x_size
pml_x_size value.
float & Get_rho0_sgy_scalar()
Get rho0_sgy_scalar value.
float & Get_rho0_scalar()
Get rho0_scalar value.
bool IsStore_u_min_all() const
Is –u_min set?
size_t Get_uz_source_flag() const
Get uz_source_flag value.
bool IsStore_p_max_all() const
Is –p_max_all specified at the command line?
void SaveScalarsToFile(THDF5_File &outputFile)
Save scalar values into the output HDF5 file.
THDF5_FileHeader fileHeader
Handle to file header.
size_t Get_pml_y_size() const
Get pml_y_size value.
float Get_pml_x_alpha_size() const
Get pml_x_alpha_size value.
size_t Get_transducer_source_input_size() const
Get transducer_source_input_size value.
size_t p0_source_flag
p0_source_flag value.
float Get_pml_y_alpha_size() const
Get pml_y_alpha_size value.
size_t GetCompressionLevel() const
Get compression level.
void Init(int argc, char **argv)
Parse command line and read scalar values to init the class.
size_t pml_z_size
pml_z_size value.
The class to parse and store command line parameters.
float rho0_scalar
rho0_scalar value.
size_t Get_p_source_flag() const
Get p_source_flag value.
float rho0_sgx_scalar
rho0_sgx_scalar value.
TSensorMaskType sensor_mask_type
sensor mask type (0 = index, 1 = corners).
size_t Get_transducer_source_flag() const
Get transducer_source_flag value.
bool IsStore_u_min() const
Is –u_min set?
bool IsCopySensorMask() const
Is –copy_mask set set?
size_t GetCompressionLevel() const
Get compression level.
size_t p_source_index_size
p_source_index_size value.
bool rho0_scalar_flag
rho0_scalar_flag value.
THDF5_File checkpointFile
Handle to the checkpoint HDF5 file.
bool IsStore_u_max() const
Is –u_max specified at the command line?
bool IsStore_u_final() const
Is –u_final specified at the command line.
bool IsStore_u_max_all() const
Is –u_max_all specified at the command line?
float absorb_tau_scalar
absorb_tau_scalar value.
size_t Get_u_source_mode() const
Get ux_source_mode value.
bool IsStore_p_max() const
Is –p_max specified at the command line?
bool IsStore_u_raw() const
Is –u_raw set?
size_t Get_p_source_index_size() const
Get p_source_index_size value.
float & Get_absorb_tau_scalar()
Get absorb_tau_scalar value.
The header file containing the command line parameters.
bool Get_rho0_scalar_flag() const
Get rho0_scalar_flag value.
bool IsStore_p_max_all() const
Is –p_max_all set?
THDF5_File & GetInputFile()
Get input file handle.
float & Get_alpha_coeff_scalar()
Get alpha_coeff_scalar value. Note: cannot be const because of other optimizations.
float Get_alpha_power() const
Get alpha_power value.
size_t Get_absorbing_flag() const
Get absorbing_flag value.
TCommandLineParameters commandLineParameters
Class with command line parameters.
TDimensionSizes fullDimensionSizes
Full 3D dimension sizes.
size_t p_source_many
p_source_many value.
size_t Get_nonuniform_grid_flag() const
Get nonuniform_grid_flag value.
size_t u_source_many
u_source_many value.
void Increment_t_index()
Increment simulation time step.
bool IsVersion() const
Is –version flag set?
float rho0_sgy_scalar
rho0_sgy_scalar value.
size_t pml_y_size
pml_y_size value.
size_t GetStartTimeIndex() const
Get start time index when sensor data collection begins.
size_t Get_nt() const
Get Nt value.
std::string GetOutputFileName() const
Get output file name.
std::string GetGitHash() const
Get Git hash of the code.
float alpha_coeff_scalar
alpha_coeff_scalar value.
float & Get_rho0_sgx_scalar()
Get rho0_sgx_scalar value.
TSensorMaskType Get_sensor_mask_type() const
Get sensor mask type (linear or corners).
bool IsCopySensorMask() const
is –copy_mask set
bool IsCheckpointEnabled() const
Is checkpoint enabled?
Class wrapping the HDF5 routines.
bool IsStore_u_max_all() const
Is –u_max_all set?
Structure with 4D dimension sizes (3 in space and 1 in time).
size_t GetCheckpointInterval() const
Get checkpoint interval.
bool IsStore_p_raw() const
Is –p_raw set?
THDF5_File & GetOutputFile()
Get output file handle.
float & Get_rho0_sgz_scalar()
Get rho0_sgz_scalar value.