Skip to content

Commit 76d9ab0

Browse files
set theta explicitly for real mode
1 parent f710a58 commit 76d9ab0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/constitutive_tests/test_gp_blade_shell_constitutive.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from tacs import TACS, constitutive, elements
66

77
DEG2RAD = np.pi / 180.0
8-
np.random.seed(1342342)
8+
np.random.seed(1234567)
99

1010

1111
class GPConstitutiveMLTest(unittest.TestCase):
@@ -162,13 +162,16 @@ def setUp(self):
162162
# construct the optional ML models
163163
n_train = 4
164164

165+
# theta = np.random.rand(6).astype(self.dtype)
166+
theta = np.array([0.1, 0.234, 0.031, 8.374, 0.001, 0.1]).astype(self.dtype)
167+
165168
n_param = constitutive.BucklingGP.n_param
166169
self.axialGP = constitutive.BucklingGP(
167170
n_train,
168171
True,
169172
Xtrain=np.random.rand(n_param * n_train).astype(self.dtype),
170173
alpha=np.random.rand(n_train).astype(self.dtype),
171-
theta=np.random.rand(6).astype(self.dtype),
174+
theta=theta,
172175
)
173176
# self.axialGP.setKS(0.1)
174177

@@ -178,7 +181,7 @@ def setUp(self):
178181
False,
179182
Xtrain=np.random.rand(n_param * n_train).astype(self.dtype),
180183
alpha=np.random.rand(n_train).astype(self.dtype),
181-
theta=np.random.rand(6).astype(self.dtype),
184+
theta=theta,
182185
)
183186
# self.shearGP.setKS(0.1)
184187

0 commit comments

Comments
 (0)