Skip to content

Commit 71ce492

Browse files
committed
fix: add type to P1 and P2
1 parent 1e465d3 commit 71ce492

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

LoopStructural/interpolators/_p1interpolator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
import numpy as np
88

9-
from ._discrete_interpolator import DiscreteInterpolator
109

10+
from ._discrete_interpolator import DiscreteInterpolator
11+
from . import InterpolatorType
1112
logger = logging.getLogger(__name__)
1213

1314

@@ -37,7 +38,7 @@ def __init__(self, mesh):
3738
"tpw": 1.0,
3839
"ipw": 1.0,
3940
}
40-
41+
self.type = InterpolatorType.PIECEWISE_LINEAR
4142
def add_gradient_constraints(self, w=1.0):
4243
pass
4344

LoopStructural/interpolators/_p2interpolator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import numpy as np
99

1010
from ..interpolators import DiscreteInterpolator
11+
from . import InterpolatorType
1112

1213
logger = logging.getLogger(__name__)
1314

@@ -41,7 +42,7 @@ def __init__(self, mesh):
4142
"tpw": 1.0,
4243
"ipw": 1.0,
4344
}
44-
45+
self.type = InterpolatorType.PIECEWISE_QUADRATIC
4546
def setup_interpolator(self, **kwargs):
4647
"""
4748
Searches through kwargs for any interpolation weights and updates

0 commit comments

Comments
 (0)