Skip to content

Commit

Permalink
remove maybe useless stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
vcarlier committed Dec 14, 2023
1 parent 5ff9792 commit 6abb9a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions psydac/api/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2185,11 +2185,7 @@ def _get_local_info(self, interior_name, mapping, space_dict):
# Shortcut
ldim = self._domain_h.ldim
# Option 1 : mapping is a Spline Mapping -> Use its FemSpace
if isinstance(mapping, SplineMapping):
local_domain = mapping.space.local_domain
global_ends = tuple(nc_i - 1 for nc_i in list(mapping.space.ncells))
breaks = mapping.space.breaks
elif hasattr(mapping, 'callable_mapping') and isinstance(mapping.get_callable_mapping(), SplineMapping):
if hasattr(mapping, 'callable_mapping') and isinstance(mapping.get_callable_mapping(), SplineMapping):
c_m = mapping.get_callable_mapping()
local_domain = c_m.space.local_domain
global_ends = tuple(nc_i - 1 for nc_i in list(c_m.space.ncells))
Expand Down
4 changes: 0 additions & 4 deletions psydac/feec/pushforward.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@ def __init__(
self.local_domain = local_domain
self.global_ends = global_ends

elif isinstance(mapping, SplineMapping):
self.mapping = mapping
self.local_domain = mapping.space.local_domain
self.global_ends = tuple(nc_i - 1 for nc_i in mapping.space.ncells)
else:
assert self.is_identity
self.local_domain = local_domain
Expand Down

0 comments on commit 6abb9a6

Please sign in to comment.