Beispiel #1
0
void
MinimalApp::createMinimalAppTest()
{
  const char *argv[1] = { "\0" };
  MooseApp * app = AppFactory::createApp("MooseUnitApp", 1, (char**)argv);
  app->parameters().set<bool>("minimal") = true;
  app->run();
  CPPUNIT_ASSERT(app->executioner()->name() == "Executioner");
  CPPUNIT_ASSERT(app->executioner()->feProblem().name() == "MOOSE Problem");
  CPPUNIT_ASSERT(app->executioner()->feProblem().mesh().nElem() == 1);
  delete app;
}
Beispiel #2
0
// Begin the main program.
int main(int argc, char *argv[])
{
    // Initialize MPI, solvers and MOOSE
    MooseInit init(argc, argv);

    // Register this application's MooseApp and any it depends on
    HyraxApp::registerApps();

    // This creates dynamic memory that we're responsible for deleting
    MooseApp * app = AppFactory::createApp("HyraxApp", argc, argv);

    // Execute the application
    app->run();

    // Free up the memory we created earlier
    delete app;

    return 0;
}
Beispiel #3
0
// Begin the main program.
int main(int argc, char *argv[])
{
  // Initialize MPI, solvers and MOOSE
  MooseInit init(argc, argv);

  // Register this application's MooseApp and any it depends on
  SolidMechanicsApp::registerApps();

  // This creates dynamic memory that we're responsible for deleting
  MooseApp * app = AppFactory::createApp("SolidMechanicsApp", argc, argv);

  app->setCheckUnusedFlag(true);
  app->setErrorOverridden();

  // Execute the application
  app->run();

  // Free up the memory we created earlier
  delete app;

  return 0;
}
Beispiel #4
0
// Begin the main program.
int main(int argc, char *argv[])
{
  // Initialize MPI, solvers and MOOSE
  MooseInit init(argc, argv);

  // Register this application's MooseApp and any it depends on
  LinearElasticityApp::registerApps();

  // This creates dynamic memory that we're responsible for deleting
  MooseApp * app = AppFactory::createApp("LinearElasticityApp", argc, argv);

  app->setCheckUnusedFlag(true);
  app->setErrorOverridden();
  app->legacyUoInitializationDefault() = true;
  app->legacyUoAuxComputationDefault() = false;

  // Execute the application
  app->run();

  // Free up the memory we created earlier
  delete app;

  return 0;
}