Skip to content

Commit

Permalink
fix: region funct type incorrect causing
Browse files Browse the repository at this point in the history
interpolator to not use lsqr solution
  • Loading branch information
Lachlan Grose committed Feb 14, 2022
1 parent ad8e9e7 commit a5d27f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LoopStructural/interpolators/_discrete_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def nx(self):

@property
def region(self):
return self.region_function(self.support.nodes)
return self.region_function(self.support.nodes).astype(bool)

@property
def region_map(self):
Expand Down Expand Up @@ -598,7 +598,9 @@ def _solve(self, solver="cg", **kwargs):
self.c[self.region] = self._solve_chol(A, B)
if solver == "lu":
logger.info("Solving using scipy LU")
print(self.region)
self.c[self.region] = self._solve_lu(A, B)
print(self.c)
if solver == "pyamg":
try:
logger.info("Solving with pyamg solve")
Expand Down

0 comments on commit a5d27f1

Please sign in to comment.