Skip to content

Commit

Permalink
This problem now converges faster and in fewer iterations which makes…
Browse files Browse the repository at this point in the history
… the per iteration exodus output diff. The test and input files were also cleaned up
  • Loading branch information
lynnmunday committed Oct 23, 2024
1 parent 9dbcd23 commit 6c6160a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
type = Optimize
tao_solver = taoblmvm
petsc_options_iname = '-tao_gatol'
petsc_options_value = '0.0001'
petsc_options_value = '1e-4'
verbose = true
[]

Expand All @@ -48,7 +48,7 @@
[]
[adjoint]
type = FullSolveMultiApp
input_files = adjoint.i
input_files = adjoint_iteration_output.i
execute_on = "ADJOINT"
clone_parent_mesh = true
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
[MultiApps]
[forward]
type = FullSolveMultiApp
input_files = forward_and_adjoint.i
input_files = forward_and_adjoint_iteration_output.i
execute_on = "FORWARD"
[]
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,20 @@
abs_zero = 1.0e-5
# steady solve
recover = false
issues = '#25009'
design = 'ExodusOptimizationSteady.md'
cli_args = "MultiApps/adjoint/input_files='adjoint_iteration_output.i'"
requirement = 'The system shall be able to perform gradient based material parameter inversion '
'for a single material property and output the iteration-wise output for the '
'for a single material property and output the iteration-wise exodus output for the '
'adjoint problem.'
[]
[auto_adjoint_iteration_output]
type = Exodiff
input = main_auto_adjoint.i
cli_args = 'MultiApps/forward/input_files=forward_and_adjoint_iteration_output.i'
exodiff = 'main_auto_adjoint_out_forward0_exodus.e'
# Optimize executioner does not support multiple threads
max_threads = 1
# steady solve
recover = false
requirement = 'The system shall be able to invert for point loads using gradient-based '
'optimization with an automatically computed adjoint and output the exodus output '
'per iteration.'
'per iteration for the combined forward and adjoint problem variables.'
[]
[]

0 comments on commit 6c6160a

Please sign in to comment.