Skip to content

Commit a36e7ff

Browse files
author
Wenjie Yao
committed
fix global parameters
1 parent 819cba7 commit a36e7ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/TopOptEMFocus.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,10 @@ function gf_p_optimize(p_init; r, β, η, TOL = 1e-4, MAX_ITER = 500, phys_param
461461
return g_opt, p_opt
462462
end
463463

464-
p_opt = fill(0.4, fem_params.np) # Initial guess
464+
global p_opt = fill(0.4, fem_params.np) # Initial guess
465465
β_list = [8.0, 16.0, 32.0]
466466

467-
g_opt = 0
467+
global g_opt = 0
468468
TOL = 1e-8
469469
MAX_ITER = 100
470470
for bi = 1 : 3

0 commit comments

Comments
 (0)