| 141 | *******************************************************************************/ |
| 142 | |
| 143 | int |
| 144 | main(int argc, char* argv[]) |
| 145 | { |
| 146 | // Initialize IBAMR and libraries. Deinitialization is handled by this object as well. |
| 147 | IBTKInit ibtk_init(argc, argv, MPI_COMM_WORLD); |
| 148 | const LibMeshInit& init = ibtk_init.getLibMeshInit(); |
| 149 | |
| 150 | { // cleanup dynamically allocated objects prior to shutdown |
| 151 | |
| 152 | // Parse command line options, set some standard options from the input |
| 153 | // file, initialize the restart database (if this is a restarted run), |
| 154 | // and enable file logging. |
| 155 | Pointer<AppInitializer> app_initializer = new AppInitializer(argc, argv, "IB.log"); |
| 156 | Pointer<Database> input_db = app_initializer->getInputDatabase(); |
| 157 | |
| 158 | // Get various standard options set in the input file. |
| 159 | const bool dump_viz_data = app_initializer->dumpVizData(); |
| 160 | const int viz_dump_interval = app_initializer->getVizDumpInterval(); |
| 161 | const bool uses_visit = dump_viz_data && app_initializer->getVisItDataWriter(); |
| 162 | #ifdef LIBMESH_HAVE_EXODUS_API |
| 163 | const bool uses_exodus = dump_viz_data && !app_initializer->getExodusIIFilename().empty(); |
| 164 | #else |
| 165 | const bool uses_exodus = false; |
| 166 | if (!app_initializer->getExodusIIFilename().empty()) |
| 167 | { |
| 168 | plog << "WARNING: libMesh was compiled without Exodus support, so no " |
| 169 | << "Exodus output will be written in this program.\n"; |
| 170 | } |
| 171 | #endif |
| 172 | const string lower_exodus_filename = app_initializer->getExodusIIFilename("lower"); |
| 173 | const string upper_exodus_filename = app_initializer->getExodusIIFilename("upper"); |
| 174 | |
| 175 | const bool dump_restart_data = app_initializer->dumpRestartData(); |
| 176 | const int restart_dump_interval = app_initializer->getRestartDumpInterval(); |
| 177 | const string restart_dump_dirname = app_initializer->getRestartDumpDirectory(); |
| 178 | const string restart_read_dirname = app_initializer->getRestartReadDirectory(); |
| 179 | const int restart_restore_num = app_initializer->getRestartRestoreNumber(); |
| 180 | |
| 181 | const bool dump_postproc_data = app_initializer->dumpPostProcessingData(); |
| 182 | const int postproc_data_dump_interval = app_initializer->getPostProcessingDataDumpInterval(); |
| 183 | const string postproc_data_dump_dirname = app_initializer->getPostProcessingDataDumpDirectory(); |
| 184 | if (dump_postproc_data && (postproc_data_dump_interval > 0) && !postproc_data_dump_dirname.empty()) |
| 185 | { |
| 186 | Utilities::recursiveMkdir(postproc_data_dump_dirname); |
| 187 | } |
| 188 | |
| 189 | const bool dump_timer_data = app_initializer->dumpTimerData(); |
| 190 | const int timer_dump_interval = app_initializer->getTimerDumpInterval(); |
| 191 | |
| 192 | // Create a simple FE mesh. |
| 193 | const double dx = input_db->getDouble("DX"); |
| 194 | const double ds = input_db->getDouble("MFAC") * dx; |
| 195 | |
| 196 | const double D = 1.0; // channel height (cm) |
| 197 | const double L = 40.0 * D; // channel length (cm) |
| 198 | const double w = 0.01 * D; // wall thickness (cm) |
| 199 | |
| 200 | string elem_type = input_db->getString("ELEM_TYPE"); |
nothing calls this directly
no test coverage detected