Revision 2972528b8e9179b151fb88eed7552bf834095368 authored by Thomas Poulet on 25 May 2017, 01:28:33 UTC, committed by Thomas Poulet on 25 May 2017, 01:28:33 UTC
1 parent 270a4d0
Raw File
main.C
#include "AppFactory.h"
#include "Moose.h"
#include "MooseApp.h"
#include "MooseInit.h"
#include "RedbackApp.h"

// Create a performance log
PerfLog Moose::perf_log("Redback");

// 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
  RedbackApp::registerApps();

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

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

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

  return 0;
}
back to top