Skip to content

Commit

Permalink
remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tophmatthews committed Jan 9, 2025
1 parent 1c1b30b commit e25f75a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 40 deletions.
4 changes: 2 additions & 2 deletions framework/src/base/MooseApp.C
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ MooseApp::validParams()
params.setGlobalCommandLineParam("recover");

params.addCommandLineParam<bool>(
"suppress_header", "--suppress-header", "Flag to print the App header");
"suppress_header", "--suppress-header", false, "Flag to print the App header");
params.setGlobalCommandLineParam("suppress_header");

params.addCommandLineParam<bool>(
Expand Down Expand Up @@ -734,7 +734,7 @@ MooseApp::setupOptions()
TIME_SECTION("setupOptions", 5, "Setting Up Options");

// Print the header, this is as early as possible
if (isParamValid("suppress_header") && !getParam<bool>("suppress_header"))
if (header().length() && !getParam<bool>("suppress_header"))
_console << header() << std::endl;

if (getParam<bool>("error_unused"))
Expand Down
2 changes: 0 additions & 2 deletions test/include/base/MooseTestApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ class MooseTestApp : public MooseApp

static void registerAll(Factory & f, ActionFactory & af, Syntax & s, bool use_test_objs = false);
static void registerApps();

virtual std::string header() const override;
};
6 changes: 0 additions & 6 deletions test/src/base/MooseTestApp.C
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,6 @@ MooseTestApp::registerApps()
registerApp(MooseTestApp);
}

std::string
MooseTestApp::header() const
{
return std::string("MOOSE Test App\n");
}

extern "C" void
MooseTestApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
{
Expand Down
27 changes: 12 additions & 15 deletions test/tests/multiapps/multilevel/dt_from_parent_parent.i
Original file line number Diff line number Diff line change
Expand Up @@ -6,57 +6,54 @@
[]

[Variables]
[u]
[]
[./u]
[../]
[]

[Kernels]
[diff]
[./diff]
type = Diffusion
variable = u
[]
[../]
[]

[BCs]
[left]
[./left]
type = DirichletBC
variable = u
boundary = left
value = 0
[]
[right]
[../]
[./right]
type = DirichletBC
variable = u
boundary = right
value = 1
[]
[../]
[]

[Executioner]
type = Transient
num_steps = 1
dt = 0.25

solve_type = 'PJFNK'

petsc_options_iname = '-pc_type -pc_hypre_type'
petsc_options_value = 'hypre boomeramg'
[]

[Outputs]
exodus = true
color = false
[out]
[./out]
type = Console
output_file = true
[]
[../]
[]

[MultiApps]
[sub]
[./sub]
type = TransientMultiApp
app_type = MooseTestApp
positions = '0 0 0 0.5 0.5 0'
input_files = dt_from_parent_sub.i
[]
[../]
[]
15 changes: 0 additions & 15 deletions test/tests/multiapps/multilevel/tests
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,6 @@

detail = "where the sub-application controls the time step for the parent application,"
[]
[header_check]
type = 'RunApp'
input = 'dt_from_parent_parent.i'
prereq = group/dt_from_parent
expect_out = 'MOOSE Test App\n\nsub0: MOOSE Test App\nsub0: \nsub0_sub0: MOOSE Test App'
detail = "and append the subapp number to the header"
[]
[suppress_subapp_header]
type = 'RunApp'
input = 'dt_from_parent_parent.i'
prereq = group/header_check
cli_args = 'MultiApps/sub/cli_args=--suppress-header'
absent_out = '\nsub0: MOOSE Test App'
detail = "and suppress the subapp header."
[]
[]

[console_to_file]
Expand Down

0 comments on commit e25f75a

Please sign in to comment.