Class AppInitializer provides functionality to simplify the initialization code in an application code.
#include <ibtk/AppInitializer.h>
◆ AppInitializer() [1/2]
| IBTK::AppInitializer::AppInitializer |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
const std::string & |
default_log_file_name = "IBAMR.log" |
|
) |
| |
Constructor for class AppInitializer parses command line arguments, sets up input and restart databases, and enables SAMRAI logging.
◆ ~AppInitializer()
| virtual IBTK::AppInitializer::~AppInitializer |
( |
| ) |
|
|
virtual |
Destructor for class AppInitializer frees the SAMRAI manager objects used to set up input and restart databases.
◆ AppInitializer() [2/2]
- Note
- This constructor is not implemented and should not be used.
- Parameters
-
| from | The value to copy to this object. |
◆ getInputDatabase()
Return a pointer to the input database.
◆ isFromRestart()
| bool IBTK::AppInitializer::isFromRestart |
( |
| ) |
const |
Return a boolean value indicating whether this is a restarted run. This is defined as true when the program recognizes command line arguments for restart_restore_num and restart_dump_dirname.
◆ getRestartReadDirectory()
| const std::string& IBTK::AppInitializer::getRestartReadDirectory |
( |
| ) |
const |
Return the restart directory. If we are not starting from restart, this method returns an empty string. This value is set by the second command line argument to the executable.
◆ getRestartRestoreNumber()
| int IBTK::AppInitializer::getRestartRestoreNumber |
( |
| ) |
const |
Return the restart restore number. If we are not starting from restart, this method returns 0. This value is set by the third command line argument to the executable.
◆ getRestartDatabase()
Return a pointer to the restart database. If there is no restart database for the application, this method emits a warning message and returns a NullDatabse.
◆ getComponentDatabase()
Return initialization database for the requested solver component. This is equivalent to: getInputDatabase()->getDatabase(component_name).
If the requested component is not found in the input database, this method emits a warning message and returns a NullDatabse.
◆ dumpVizData()
| bool IBTK::AppInitializer::dumpVizData |
( |
| ) |
const |
Return a boolean value indicating whether to write visualization data.
◆ getVizDumpInterval()
| int IBTK::AppInitializer::getVizDumpInterval |
( |
| ) |
const |
Return the visualization dump interval.
◆ getVizDumpDirectory()
| std::string IBTK::AppInitializer::getVizDumpDirectory |
( |
| ) |
const |
Return the visualization dump directory name.
◆ getVizWriters()
| std::vector<std::string> IBTK::AppInitializer::getVizWriters |
( |
| ) |
const |
Return the visualization writers to be used in the simulation.
◆ getVisItDataWriter()
Return a VisIt data writer object to be used to output Cartesian grid data.
If the application is not configured to use VisIt, a nullptr pointer will be returned.
◆ getLSiloDataWriter()
Return a VisIt data writer object to be used to output Lagrangian data.
If the application is not configured to use VisIt, a nullptr pointer will be returned.
◆ getExodusIIFilename()
| std::string IBTK::AppInitializer::getExodusIIFilename |
( |
const std::string & |
prefix = "" | ) |
const |
Return the ExodusII visualization file name.
If the application is not configured to use ExodusII, an empty string will be returned.
◆ getGMVFilename()
| std::string IBTK::AppInitializer::getGMVFilename |
( |
const std::string & |
prefix = "" | ) |
const |
Return the GMV visualization file name.
If the application is not configured to use GMV, an empty string will be returned.
◆ dumpRestartData()
| bool IBTK::AppInitializer::dumpRestartData |
( |
| ) |
const |
Return a boolean value indicating whether to write restart data.
◆ getRestartDumpInterval()
| int IBTK::AppInitializer::getRestartDumpInterval |
( |
| ) |
const |
Return the restart dump interval. This is set in the Main database of the input file. This can be defined in the input file as restart_interval, restart_dump_interval, or restart_write_interval.
◆ getRestartDumpDirectory()
| std::string IBTK::AppInitializer::getRestartDumpDirectory |
( |
| ) |
const |
Return the restart dump directory name. This is set in the Main database of the input file. This can be defined in the input file as restart_dump_dirname, restart_dirname, or restart_write_dirname.
◆ dumpPostProcessingData()
| bool IBTK::AppInitializer::dumpPostProcessingData |
( |
| ) |
const |
Return a boolean value indicating whether to write post processing data.
◆ getPostProcessingDataDumpInterval()
| int IBTK::AppInitializer::getPostProcessingDataDumpInterval |
( |
| ) |
const |
Return the post processing data dump interval.
◆ getPostProcessingDataDumpDirectory()
| std::string IBTK::AppInitializer::getPostProcessingDataDumpDirectory |
( |
| ) |
const |
Return the post processing data dump directory name.
◆ dumpTimerData()
| bool IBTK::AppInitializer::dumpTimerData |
( |
| ) |
const |
Return a boolean value indicating whether to write timer data.
◆ getTimerDumpInterval()
| int IBTK::AppInitializer::getTimerDumpInterval |
( |
| ) |
const |
Return the timer dump interval.
◆ operator=()
- Note
- This operator is not implemented and should not be used.
- Parameters
-
| that | The value to assign to this object. |
- Returns
- A reference to this object.
◆ d_input_db
◆ d_restart_read_dirname
| std::string IBTK::AppInitializer::d_restart_read_dirname |
|
private |
◆ d_restart_restore_num
| int IBTK::AppInitializer::d_restart_restore_num = 0 |
|
private |
◆ d_is_from_restart
| bool IBTK::AppInitializer::d_is_from_restart = false |
|
private |
◆ d_viz_dump_interval
| int IBTK::AppInitializer::d_viz_dump_interval = 0 |
|
private |
◆ d_viz_dump_dirname
| std::string IBTK::AppInitializer::d_viz_dump_dirname |
|
private |
◆ d_viz_writers
| std::vector<std::string> IBTK::AppInitializer::d_viz_writers |
|
private |
◆ d_visit_data_writer
◆ d_silo_data_writer
◆ d_exodus_filename
| std::string IBTK::AppInitializer::d_exodus_filename = "output.ex2" |
|
private |
◆ d_gmv_filename
| std::string IBTK::AppInitializer::d_gmv_filename = "output.gmv" |
|
private |
◆ d_restart_dump_interval
| int IBTK::AppInitializer::d_restart_dump_interval = 0 |
|
private |
◆ d_restart_dump_dirname
| std::string IBTK::AppInitializer::d_restart_dump_dirname |
|
private |
◆ d_data_dump_interval
| int IBTK::AppInitializer::d_data_dump_interval = 0 |
|
private |
◆ d_data_dump_dirname
| std::string IBTK::AppInitializer::d_data_dump_dirname |
|
private |
◆ d_timer_dump_interval
| int IBTK::AppInitializer::d_timer_dump_interval = 0 |
|
private |
The documentation for this class was generated from the following file: