diff --git a/framework/src/utils/PetscSupport.C b/framework/src/utils/PetscSupport.C index 5a87dd11e6ce..c1f709153e01 100644 --- a/framework/src/utils/PetscSupport.C +++ b/framework/src/utils/PetscSupport.C @@ -616,8 +616,7 @@ storePetscOptions(FEProblemBase & fe_problem, const InputParameters & params) if (params.isParamValid("mffd_type")) { MooseEnum mffd_type = params.get("mffd_type"); - if (fe_problem.solverParams()._mffd_type == Moose::MFFD_INVALID) - fe_problem.solverParams()._mffd_type = Moose::stringToEnum(mffd_type); + fe_problem.solverParams()._mffd_type = Moose::stringToEnum(mffd_type); } // The parameters contained in the Action diff --git a/test/tests/time_integrators/crank-nicolson/gold/cranic_ds_out.e b/test/tests/time_integrators/crank-nicolson/gold/cranic_ds_out.e new file mode 100644 index 000000000000..d6b6f429cfc9 Binary files /dev/null and b/test/tests/time_integrators/crank-nicolson/gold/cranic_ds_out.e differ diff --git a/test/tests/utils/mffd/mffd_test.i b/test/tests/utils/mffd/mffd_test.i new file mode 100644 index 000000000000..f12cf7ae257d --- /dev/null +++ b/test/tests/utils/mffd/mffd_test.i @@ -0,0 +1,38 @@ +[Mesh] + type = GeneratedMesh + dim = 1 + nx = 1 +[] + +[Variables] + [./u] + [../] +[] + +[Kernels] + [./diff] + type = Diffusion + variable = u + [../] +[] + +[BCs] + [./left] + type = DirichletBC + variable = u + boundary = 'left' + value = 0 + [../] + [./right] + type = DirichletBC + variable = u + boundary = 'right' + value = 1 + [../] +[] + +[Executioner] + type = Steady + solve_type = 'PJFNK' + mffd_type = 'ds' +[] diff --git a/test/tests/utils/mffd/tests b/test/tests/utils/mffd/tests new file mode 100644 index 000000000000..3d9d88b76e54 --- /dev/null +++ b/test/tests/utils/mffd/tests @@ -0,0 +1,8 @@ +[Tests] + [./mffd_test] + type = 'RunApp' + input = 'mffd_test.i' + expect_out = 'Using ds compute h routine' + cli_args = '-snes_view' + [../] +[]