File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ def _update_cache(self):
139139 self ._mapdl .nsle ("S" , mute = True )
140140
141141 # not thread safe
142- self ._update_cache_elem ()
142+ self ._update_cache_elem (). join ()
143143
144144 threads = [
145145 self ._update_cache_element_desc (),
@@ -540,6 +540,7 @@ def _load_nodes(self, chunk_size=DEFAULT_CHUNKSIZE):
540540 nodes = parse_chunks (chunks , np .double ).reshape (- 1 , 3 )
541541 return nodes
542542
543+ @threaded
543544 def _update_cache_elem (self ):
544545 """Update the element and element offset cache"""
545546 if self ._cache_elem is None :
@@ -553,7 +554,7 @@ def _elem(self):
553554 in offset. Each element contains 10 items plus the nodes
554555 belonging to the element.
555556 """
556- self ._update_cache_elem ()
557+ self ._update_cache_elem (). join ()
557558 return self ._cache_elem
558559
559560 @_elem .setter
@@ -563,7 +564,7 @@ def _elem(self, value):
563564 @property
564565 def _elem_off (self ):
565566 """Element offset array"""
566- self ._update_cache_elem ()
567+ self ._update_cache_elem (). join ()
567568 return self ._cache_elem_off
568569
569570 @_elem_off .setter
You can’t perform that action at this time.
0 commit comments