289 size_t sensorMaskTypeNumericValue = 0;
293 switch (sensorMaskTypeNumericValue)
494 size_t SensorMaskTypeNumericValue = 0;
498 case INDEX: SensorMaskTypeNumericValue = 0;
500 case CORNERS: SensorMaskTypeNumericValue = 1;
515 #if (defined (__KWAVE_GIT_HASH__))
516 return string(__KWAVE_GIT_HASH__);
538 dx(0.0f),
dy(0.0f),
dz(0.0f),
TMatrixName c_ref_NAME
c_ref variable name
TMatrixName alpha_power_NAME
alpha_power variable name
size_t nx
number of elements in the x direction
TErrorMessage ERR_FMT_ILLEGAL_START_TIME_VALUE
Command line parameters error message.
size_t transducer_source_flag
transducer_source_flag value.
TCUDAParameters cudaParameters
Class with CUDA Parameters (runtime setup)
TOutputMessage OUT_FMT_DEVICE_NAME
Output message.
static bool parametersInstanceFlag
singleton flag
size_t transducer_source_input_size
transducer_source_input_size value.
bool BonA_scalar_flag
BonA_scalar_flag value.
TOutputMessage OUT_FMT_SENSOR_MASK_INDEX
Output message.
size_t p_source_flag
p_source_flag value.
size_t GetNumberOfThreads() const
Get number of threads.
TMatrixName p_source_index_NAME
p_source_index variable name
TMatrixName p_source_flag_NAME
p_source_flag variable name
void ReadScalarsFromInputFile(THDF5_File &inputFile)
Read scalar values from the input HDF5 file.
void Open(const std::string &fileName, unsigned int flags=H5F_ACC_RDONLY)
Open a file.
TMatrixName dt_NAME
dt variable name
size_t u_source_mode
u_source_mode value.
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.
float pml_x_alpha
pml_x_alpha value.
TMatrixName sensor_mask_index_NAME
sensor_mask_index variable name
TOutputMessage OUT_FMT_SIMULATION_DETAIL_TITLE
Output message.
TMatrixName transducer_source_input_NAME
transducer_source_input variable name
TMatrixName u_source_mode_NAME
u_source_mode variable name
TOutputMessage OUT_FMT_SIMULATION_LENGTH
Output message.
TMatrixName rho0_sgz_NAME
rho0_sgz variable name
TMatrixName BonA_NAME
BonA variable name.
TDimensionSizes reducedDimensionSizes
Reduced 3D dimension sizes.
void PrintComandlineParamers()
Print setup.
TMatrixName pml_z_size_NAME
pml_z_size variable name
TMatrixName dy_NAME
dy variable name
TMatrixName transducer_source_flag_NAME
transducer_source_flag variable name
static TParameters & GetInstance()
Get instance of the singleton class.
float absorb_eta_scalar
absorb_eta_scalar value.
bool c0_scalar_flag
c0_scalar_flag value.
size_t nonlinear_flag
nonlinear_flag value.
size_t p_source_mode
p_source_mode value.
TOutputMessage OUT_FMT_DOMAIN_SIZE
Output message.
TErrorMessage ERR_FMT_U_NON_STAGGERED_NOT_SUPPORTED_FILE_VERSION
Command line parameters error message.
std::string GetInputFileName() const
Get input file name.
TMatrixName nonlinear_flag_NAME
nonlinear_flag variable name
size_t u_source_index_size
u_source_index_size value.
TMatrixName pml_y_alpha_NAME
pml_y_alpha variable name
TMatrixName Ny_NAME
Ny variable name.
void WriteScalarValue(const hid_t parentGroup, TMatrixName &datasetName, const float value)
Write the scalar value under a specified group, float value.
float pml_z_alpha
pml_z_alpha value.
TMatrixName u_source_index_NAME
u_source_index variable name
TMatrixName absorbing_flag_NAME
absorbing_flag variable name
TMatrixName p_source_mode_NAME
p_source_mode variable name
float BonA_scalar
BonA_scalar value.
float alpha_power
alpha_power value.
static TParameters * parametersSingleInstance
singleton instance
TOutputMessage OUT_FMT_GIT_HASH_LEFT
Output message.
The header file containing the parameters of the simulation.
bool IsOpen() const
Is the file opened?
TMatrixName pml_y_size_NAME
pml_y_size variable name
size_t nonuniform_grid_flag
nonuniform_grid_flag value.
TMatrixName ux_source_flag_NAME
ux_source_flag variable name
TDimensionSizes GetDatasetDimensionSizes(const hid_t parentGroup, TMatrixName &datasetName)
Get dimension sizes of the dataset under a specified group.
size_t uz_source_flag
uz_source_flag value.
TMatrixName sensor_mask_corners_NAME
sensor_mask_corners variable name
THDF5_File inputFile
Handle to the input HDF5 file.
TMatrixName p0_source_flag_NAME
p0_source_flag variable name
float pml_y_alpha
pml_y_alpha value.
std::string GetDeviceName() const
Get the name of the device used.
TErrorMessage ERR_FMT_ILLEGAL_ALPHA_POWER_VALUE
Command line parameters error message.
void SelectDevice(const int DeviceIdx=DEFAULT_DEVICE_IDX)
Select cuda device for execution.
size_t absorbing_flag
absorbing_flag value.
int GetCUDADeviceIdx() const
Get GPU device ID specified by the user (not necessary the one the code runs on). ...
virtual ~TParameters()
Destructor.
TMatrixName dx_NAME
dx variable name
TDimensionSizes GetFullDimensionSizes() const
Full dimension sizes of the simulation (real classes).
THDF5_File outputFile
Handle to the output HDF5 file.
TParameters()
Constructor.
The header file containing a class responsible for printing out info and error messages (stdout...
bool IsBenchmarkFlag() const
Is –benchmark flag set?
TMatrixName pml_z_alpha_NAME
pml_z_alpha variable name
static void Flush(const TLogLevel queryLevel)
Flush output messages.
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 ReadScalarValue(const hid_t parentGroup, TMatrixName &datasetName, float &value)
Read the scalar value under a specified group, float value.
void SelectDevice()
Select cuda device for execution.
bool IsStore_u_non_staggered_raw() const
Is –u_non_staggered_raw set?
TMatrixName c0_NAME
c0 variable name
TMatrixName rho0_sgx_NAME
rho0_sgx variable name
Class storing all parameters of the simulation.
void PrintSimulatoinSetup()
Print the simulation setup (all parameters)
float rho0_sgz_scalar
rho0_sgz_scalar value.
TErrorMessage ERR_FMT_BAD_INPUT_FILE_FORMAT
Command line parameters error message.
size_t uy_source_flag
uy_source_flag value.
hid_t GetRootGroup() const
Get handle to the root group.
The header file storing names of all variables/matrices/output streams used in the simulation...
size_t GetBenchmarkTimeStepsCount() const
Get benchmark time step count.
TOutputMessage OUT_FMT_SELECTED_DEVICE
Output message.
TMatrixName dz_NAME
dz variable name
size_t ny
number of elements in the y direction
TMatrixName uy_source_flag_NAME
uy_source_flag variable name
TMatrixName uz_source_flag_NAME
uz_source_flag variable name
TMatrixName Nz_NAME
Nz variable name.
size_t t_index
actual time index (time step of the simulation).
int GetDeviceIdx() const
Get Idx of the device being used.
TOutputMessage OUT_FMT_NUMBER_OF_THREADS
Output message.
Basic (default) level of verbosity.
TMatrixName u_source_many_NAME
u_source_many variable name
size_t pml_x_size
pml_x_size value.
TMatrixName pml_x_alpha_NAME
pml_x_alpha variable name
TMatrixName Nx_NAME
Nx variable name.
TMatrixName pml_x_size_NAME
pml_x_size variable name
TMatrixName alpha_coeff_NAME
alpha_coeff variable name
void SaveScalarsToFile(THDF5_File &outputFile)
Save scalar values into the output HDF5 file.
THDF5_FileHeader fileHeader
Handle to file header.
TOutputMessage OUT_FMT_DEVICE_ID
Output message.
TErrorMessage ERR_FMT_BAD_MINOR_FILE_VERSION
Command line parameters error message.
TOutputMessage OUT_FMT_READING_CONFIGURATION
Output message.
size_t p0_source_flag
p0_source_flag value.
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.
float rho0_scalar
rho0_scalar value.
float rho0_sgx_scalar
rho0_sgx_scalar value.
TSensorMaskType sensor_mask_type
sensor mask type (0 = index, 1 = corners).
static std::string FormatMessage(const std::string &format, Args...args)
C++-11 replacement for sprintf that works with std::string instead of char *.
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.
float absorb_tau_scalar
absorb_tau_scalar value.
TErrorMessage ERR_FMT_BAD_MAJOR_File_Version
Command line parameters error message.
TMatrixName nonuniform_grid_flag_NAME
nonuniform_grid_flag variable name
TMatrixName p_source_many_NAME
p_source_many variable name
Advanced level of verbosity.
TCommandLineParameters commandLineParameters
Class with command line parameters.
TDimensionSizes fullDimensionSizes
Full 3D dimension sizes.
size_t p_source_many
p_source_many value.
size_t nz
number of elements in the z direction
static void Log(const TLogLevel queryLevel, const std::string &format, Args...args)
Log desired activity for a given log level, version with string format.
TOutputMessage OUT_FMT_SEPARATOR
Output message - separator.
TOutputMessage OUT_FMT_DOMAIN_SIZE_FORMAT
Output message.
TErrorMessage ERR_FMT_BAD_SENSOR_MASK_TYPE
Command line parameters error message.
size_t GetDatasetElementCount(const hid_t parentGroup, TMatrixName &datasetName)
Get dataset element count under a specified group.
size_t u_source_many
u_source_many value.
TOutputMessage OUT_FMT_SENSOR_MASK_CUBOID
Output message.
bool IsVersion() const
Is –version flag set?
float rho0_sgy_scalar
rho0_sgy_scalar value.
size_t pml_y_size
pml_y_size value.
TMatrixName rho0_sgy_NAME
rho0_sgy variable name
size_t GetStartTimeIndex() const
Get start time index when sensor data collection begins.
size_t Get_nt() const
Get Nt value.
std::string GetGitHash() const
Get Git hash of the code.
float alpha_coeff_scalar
alpha_coeff_scalar value.
TSensorMaskType Get_sensor_mask_type() const
Get sensor mask type (linear or corners).
bool IsCopySensorMask() const
is –copy_mask set
TMatrixName rho0_NAME
rho0 variable name
void ParseCommandLine(int argc, char **argv)
Parse command line.
Class wrapping the HDF5 routines.
TMatrixName Nt_NAME
Nt variable name.
Structure with 4D dimension sizes (3 in space and 1 in time).
TOutputMessage OUT_FMT_DONE
Output message - Done with two spaces.
TMatrixName sensor_mask_type_NAME
sensor_mask_type variable name