www.mooseframework.org
ExternalPetscSolverApp.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "MooseApp.h"
13 
15 
16 template <>
17 InputParameters validParams<ExternalPetscSolverApp>();
18 
25 class ExternalPetscSolverApp : public MooseApp
26 {
27 public:
28  ExternalPetscSolverApp(InputParameters parameters);
29  virtual ~ExternalPetscSolverApp();
30 
31  static void registerApps();
32  static void registerAll(Factory & f, ActionFactory & af, Syntax & s);
33 
34 #if LIBMESH_HAVE_PETSC
35 
38  TS & getExternalPETScTS() { return _ts; }
39 #endif
40 private:
41 #if LIBMESH_HAVE_PETSC
42  TS _ts;
44 #endif
45 };
46 
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
This is a demo used to demonstrate how to couple an external app through the MOOSE wrapper APP...
TS & getExternalPETScTS()
Return a time-stepping (TS) component that holds all the ingredients of applicaiton.
ExternalPetscSolverApp(InputParameters parameters)
TS _ts
Time-stepping (TS) object.
InputParameters validParams< ExternalPetscSolverApp >()