Exemple #1
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;
}
Exemple #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
  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;
}