예제 #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;
}
예제 #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;
}
예제 #3
0
파일: main.C 프로젝트: AhmedAly83/moose
// 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;
}
예제 #4
0
파일: main.C 프로젝트: GaZ3ll3/moose
// 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;
}