App

class App : public godzilla::CoreApp

Public Functions

App(mpi::Communicator comm, String name)

Build an application object.

Parameters:
  • comm – MPI communicator

  • name – Name of the application

  • argc – Number of command line arguments

  • argv – Command line arguments

App(mpi::Communicator comm, Registry &registry, String name)

Build an application object.

Parameters:
  • comm – MPI communicator

  • registry – Registry with classes that will be used by the application

  • name – Name of the application

  • argc – Number of command line arguments

  • argv – Command line arguments

Ref<Problem> get_problem() const

Get pointer to the Problem class in this application.

Returns:

Get problem this application is representing

template<typename T>
inline Ref<T> get_problem() const

Get pointer to the Problem-derived class in this application.

Returns:

The problem this application is solving

virtual int run()

Run the application.

Returns:

Exit code

template<typename T>
inline Ref<T> make_problem(Parameters &pars, std::source_location loc = std::source_location::current())

Create parameters for type T.

Template Parameters:

C++ – object that provides parameters()

Returns:

Parameters for class T