Beispiel #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
  DgospreyApp::registerApps();

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

  app->legacyUoInitializationDefault() = false;
  app->legacyUoAuxComputationDefault() = false;

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

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

  return 0;
}
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
    FluidMassEnergyBalanceApp::registerApps();

    // This creates dynamic memory that we're responsible for deleting
    MooseApp * app = AppFactory::createApp("FluidMassEnergyBalanceApp", 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;
}