Skip to content
Permalink
Browse files

Merge pull request #13032 from lindsayad/petsc-jacobian-tester-out

Add turn_off_exodus_output option to the PetscJacobianTester
  • Loading branch information...
permcody committed Mar 12, 2019
2 parents 355ddee + 152051c commit eef9d048177fb9faab6d1c7d6fa64a905045f337
@@ -61,7 +61,7 @@
run_sim = True
petsc_version = '>=3.9'
method = 'OPT'
cli_args = 'Executioner/num_steps=2 Outputs/exodus=false'
cli_args = 'Executioner/num_steps=2'
skip = 'AD Thermal Contact not yet implemented'
requirement = 'AD heat conduction and the Jacobian shall be beautiful'
design = "jacobian_definition.md"
@@ -25,7 +25,7 @@
run_sim = True
petsc_version = '>=3.9'
method = 'OPT'
cli_args = 'Executioner/num_steps=5 Outputs/exodus=false'
cli_args = 'Executioner/num_steps=5'
requirement = 'AD heat conduction and the Jacobian shall be beautiful'
design = "jacobian_definition.md"
issues = "#5658 #12633"
@@ -57,7 +57,6 @@
run_sim = True
petsc_version = '>=3.9'
method = 'OPT'
cli_args = 'Outputs/exodus=false'
requirement = 'AD heat conduction and the Jacobian shall be beautiful'
design = "jacobian_definition.md"
issues = "#5658 #12633"
@@ -23,7 +23,7 @@
run_sim = True
petsc_version = '>=3.9'
method = 'OPT'
cli_args = 'Executioner/num_steps=5 Outputs/exodus=false'
cli_args = 'Executioner/num_steps=5'
requirement = 'AD heat conduction and the Jacobian shall be beautiful'
design = "jacobian_definition.md"
issues = "#5658 #12633"
@@ -53,7 +53,6 @@
run_sim = True
petsc_version = '>=3.9'
method = 'OPT'
cli_args = 'Outputs/exodus=false'
requirement = 'AD heat conduction and the Jacobian shall be beautiful'
design = "jacobian_definition.md"
issues = "#5658 #12633"
@@ -25,6 +25,7 @@ def validParams():
params.addParam('run_sim', False, "Whether to actually run the simulation, testing the Jacobian "
"at every non-linear iteration of every time step. This is only "
"relevant for petsc versions >= 3.9.")
params.addParam('turn_off_exodus_output', True, "Whether to set exodus=false in Outputs")
return params

def checkRunnable(self, options):
@@ -46,6 +47,9 @@ def __init__(self, name, params):
else:
self.libmesh_dir = os.path.join(self.moose_dir, 'libmesh', 'installed')

if self.specs['turn_off_exodus_output']:
self.specs['cli_args'][:0] = ['Outputs/exodus=false']

if map(int, util.getPetscVersion(self.libmesh_dir).split(".")) < [3, 9]:
self.old_petsc = True
self.specs['cli_args'].append('-snes_type test')
@@ -40,7 +40,7 @@
type = PetscJacobianTester
input = 'simple_diffusion.i'
run_sim = True
cli_args = 'Outputs/exodus=false -snes_test_jacobian_view'
cli_args = '-snes_test_jacobian_view'
requirement = 'The SMP Jacobian shall be perfect for the hanging-node problem'
[../]
[]
@@ -52,6 +52,7 @@
difference_tol = 1e-5
run_sim = True
petsc_version = '>=3.9'
turn_off_exodus_output = False
requirement = 'AD shall work with stateful material properties and the Jacobian shall be beautiful'
design = "jacobian_definition.md"
issues = "#5658"

0 comments on commit eef9d04

Please sign in to comment.
You can’t perform that action at this time.