Skip to content

Commit

Permalink
removing execute on initial to enable parallel exectuion. I guess the…
Browse files Browse the repository at this point in the history
…se pp are initially empty which seems to only be a problem in paralell but not serial.
  • Loading branch information
lynnmunday authored and dschwen committed Sep 13, 2022
1 parent 988ae03 commit 431279a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/optimization/examples/bimaterial/model.i
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@
index = 0
vectorpostprocessor = vector_pp
vector_name = diffusivity_values
execute_on = 'initial linear'
execute_on = 'linear'
[]
[d_top]
type = VectorPostprocessorComponent
index = 1
vectorpostprocessor = vector_pp
vector_name = diffusivity_values
execute_on = 'initial linear'
execute_on = 'linear'
[]
[T_top]
type = PointValue
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
adjoint,diffusivity_values,measurement_time,measurement_values,measurement_xcoord,measurement_ycoord,measurement_zcoord,misfit_values,simulation_values
0.00033670047822245,5.0000000319983,0,1.5499999950466,0,-3.99,0,-4.9661141865442e-09,1.5499999900805
-6.6497549923379e-06,9.9999994700548,0,122.15999960961,0,-3.192,0,-3.9139322893789e-07,122.15999921822
0,0,0,230.74999926258,0,-2.394,0,-7.3930323196691e-07,230.74999852328
0,0,0,326.45999895672,0,-1.596,0,-1.0459554573572e-06,326.45999791076
0,0,0,409.18999869233,0,-0.798,0,-1.3110098393554e-06,409.18999738132
0,0,0,479.99999846604,0,0,0,-1.5378798252641e-06,479.99999692816
0,0,0,508.43499922095,0,0.798,0,-7.8589152963104e-07,508.43499843506
0,0,0,530.90999981763,0,1.596,0,-1.9151991637045e-07,530.90999962611
0,0,0,546.895000242,0,2.394,0,2.3122754555516e-07,546.89500047323
0,0,0,556.44000049541,0,3.192,0,4.8365029670094e-07,556.44000097906
0,0,0,559.97500058926,0,3.99,0,5.7713600654097e-07,559.9750011664
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,12 @@
variable = gradient
execute_on = 'final'
block=bottom
outputs=grad_bottom
[]
[grad_top] #compute the integral of the gradient variable on the bottom block (second parameter)
type = ElementIntegralVariablePostprocessor
variable = gradient
execute_on = 'final'
block=top
outputs=grad_top
[]
############
[]
Expand All @@ -232,7 +230,7 @@
solve_type = NEWTON
petsc_options_iname = '-pc_type'
petsc_options_value = 'lu'
nl_forced_iters = 1
nl_forced_its = 1
line_search=none
nl_abs_tol=1e-8
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
# petsc_options_iname='-tao_max_it -tao_fd_test -tao_test_gradient -tao_fd_gradient -tao_fd_delta -tao_gatol'
# petsc_options_value='1 true true false 1e-8 0.1'
# petsc_options = '-tao_test_gradient_view'
# verbose = true
verbose = true
[]
[AuxVariables]
[temperature_forward]
Expand Down Expand Up @@ -135,5 +135,6 @@
[]

[Outputs]
console=false
csv=true
[]
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
solve_type = NEWTON
petsc_options_iname = '-pc_type'
petsc_options_value = 'lu'
nl_forced_iters = 1
nl_forced_its = 1
line_search=none
nl_abs_tol=1e-8
[]
Expand Down

0 comments on commit 431279a

Please sign in to comment.