Skip to content

Commit 119f232

Browse files
committed
adding crucial step for zero sound speed in tidal
1 parent b2fe824 commit 119f232

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/slmemulator/TOV_class.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ def __init__(
120120
self.nB_array = eos_data["density"]
121121
self.cs2_array = eos_data["cs2"]
122122

123+
# tidal considerations
124+
if tidal is True:
125+
dpdeps = np.gradient(self.pres_array, self.eps_array, edge_order=2)
126+
self.cs2_array = dpdeps
127+
123128
# print congrats
124129
print("Woo it worked!")
125130

0 commit comments

Comments
 (0)