Skip to content

Commit

Permalink
Remove is_block property from VectorFemSpace (#439)
Browse files Browse the repository at this point in the history
The obsolete property `is_block` was never used in Psydac nor in
Struphy, hence we remove it.

---------

Co-authored-by: Yaman Güçlü <yaman.guclu@gmail.com>
  • Loading branch information
maxlin-ipp and yguclu committed Oct 1, 2024
1 parent 188f2d2 commit c617b15
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions psydac/fem/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,21 +333,6 @@ def ncells(self):
def spaces( self ):
return self._spaces

@property
def is_block(self):
"""Returns True if all components are identical spaces."""
# TODO - improve this tests. for the moment, we only check the degree,
# - shall we check the bc too?

degree = [V.degree for V in self.spaces]
if self.pdim == 1:
return len(np.unique(degree)) == 1
else:
ns = np.asarray(degree[0])
for ms in degree[1:]:
if not( np.allclose(ns, np.asarray(ms)) ): return False
return True

# ...
def get_refined_space(self, ncells):
return self._refined_space[tuple(ncells)]
Expand Down

0 comments on commit c617b15

Please sign in to comment.