Skip to content

Commit 96c8ddb

Browse files
committed
fix: ✨ flagging interpolator not up to date when data changes
1 parent 990e0f4 commit 96c8ddb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

LoopStructural/interpolators/_geological_interpolator.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def set_value_constraints(self, points):
8686

8787
self.data["value"] = points
8888
self.n_i = points.shape[0]
89+
self.up_to_date = False
8990

9091
def set_gradient_constraints(self, points):
9192
"""
@@ -100,6 +101,8 @@ def set_gradient_constraints(self, points):
100101
"""
101102
self.n_g = points.shape[0]
102103
self.data["gradient"] = points
104+
self.up_to_date = False
105+
103106

104107
def set_normal_constraints(self, points):
105108
"""
@@ -114,6 +117,8 @@ def set_normal_constraints(self, points):
114117
"""
115118
self.n_n = points.shape[0]
116119
self.data["normal"] = points
120+
self.up_to_date = False
121+
117122

118123
def set_tangent_constraints(self, points):
119124
"""
@@ -127,12 +132,17 @@ def set_tangent_constraints(self, points):
127132
128133
"""
129134
self.data["tangent"] = points
135+
self.up_to_date = False
136+
130137

131138
def set_interface_constraints(self, points):
132139
self.data["interface"] = points
140+
self.up_to_date = False
141+
133142

134143
def set_inequality_constraints(self, points):
135144
self.data["inequality"] = points
145+
self.up_to_date = False
136146

137147
def get_value_constraints(self):
138148
"""

0 commit comments

Comments
 (0)