File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 1414
1515import json
1616import mpisppy .cylinders .spoke
17- import mpisppy .utils .find_rho as find_rho
18- import mpisppy .utils .gradient as grad
1917import mpisppy .utils .sputils as sputils
2018from mpisppy .utils .wtracker import WTracker
2119
@@ -39,19 +37,6 @@ def ph_ob_prep(self):
3937
4038 # use gradient rho
4139 self .use_gradient_rho = False
42- if "ph_ob_gradient_rho" in self .opt .options :
43- assert self .opt .options ["ph_ob_gradient_rho" ]["cfg" ] is not None , "You need to give a cfg to use gradient rho."
44- self .use_gradient_rho = True
45- print ("PH Outer Bounder uses an iterative gradient-based rho setter" )
46- self .cfg = self .opt .options ["ph_ob_gradient_rho" ]["cfg" ]
47- if "rho_denom" in self .opt .options ["ph_ob_gradient_rho" ]:
48- self .cfg .grad_rho_denom = self .opt .options ["ph_ob_gradient_rho" ]["rho_denom" ]
49- self .cfg .grad_cost_file_out = '_temp_grad_cost_file_ph_ob.csv'
50- self .cfg .grad_rho_file_out = '_temp_grad_rho_file_ph_ob.csv' # out??? xxxx tbd
51- # the xhat used here is the same as in the hub
52- self .grad_object = grad .Find_Grad (self .opt , self .cfg )
53- self .rho_setter = find_rho .Set_Rho (self .cfg ).rho_setter
54- self .grad_object .write_grad_cost ()
5540
5641
5742 def _phsolve (self , iternum ):
You can’t perform that action at this time.
0 commit comments