Skip to content

Commit efb9e1b

Browse files
committed
Reset test solver coeffs
1 parent 0fbc3c9 commit efb9e1b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

funtofem/interface/test_interfaces/_test_aero_solver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def __init__(self, npts, dvs):
176176
)
177177

178178
# Aero heat flux = Jac2 * aero_temps + b2 * aero_X + c2 * aero_dvs + omega2 * dt
179-
self.Jac2 = 0.1 * (np.random.rand(self.npts, self.npts) - 0.5*0)
179+
self.Jac2 = 0.1 * (np.random.rand(self.npts, self.npts) - 0.5)
180180
self.b2 = 0.1 * (np.random.rand(self.npts, 3 * self.npts) - 0.5)
181181
self.c2 = 0.01 * (np.random.rand(self.npts, len(self.aero_dvs)) - 0.5)
182182

funtofem/interface/test_interfaces/_test_struct_solver.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,17 @@ def __init__(self, npts, struct_dvs):
8484

8585
# Struct temps = Jac2 * struct_flux + b2 * struct_X + c2 * struct_dvs + omega2 * time
8686
self.Jac2 = (
87-
0.05 * thermal_scale * (np.random.rand(self.npts, self.npts) + 0.5)
87+
0.05 * thermal_scale * (np.random.rand(self.npts, self.npts) - 0.5)
8888
)
8989
self.b2 = (
9090
0.1
9191
* thermal_scale
92-
* (np.random.rand(self.npts, 3 * self.npts) - 0.5*0)
92+
* (np.random.rand(self.npts, 3 * self.npts) - 0.5)
9393
)
9494
self.c2 = (
95-
0.5
95+
0.01
9696
* thermal_scale
97-
* (np.random.rand(self.npts, len(self.struct_dvs)) - 0.5*0)
97+
* (np.random.rand(self.npts, len(self.struct_dvs)) - 0.5)
9898
)
9999

100100
# Data for output functional values

0 commit comments

Comments
 (0)