@@ -614,7 +614,7 @@ def boundary_value_or_flux(self, symbol, discretised_child, bcs=None):
614
614
# https://github.com/Scottmar93/extrapolation-coefficents/tree/master
615
615
if isinstance (symbol , pybamm .BoundaryValue ):
616
616
617
- if use_bcs and pybamm .has_bc_condition_of_form (
617
+ if use_bcs and pybamm .has_bc_of_form (
618
618
child , symbol .side , bcs , "Dirichlet"
619
619
):
620
620
# just use the value from the bc: f(x*)
@@ -627,7 +627,7 @@ def boundary_value_or_flux(self, symbol, discretised_child, bcs=None):
627
627
# to find value at x* use formula:
628
628
# f(x*) = f_1 - (dx0 / dx1) (f_2 - f_1)
629
629
630
- if use_bcs and pybamm .has_bc_condition_of_form (
630
+ if use_bcs and pybamm .has_bc_of_form (
631
631
child , symbol .side , bcs , "Neumann"
632
632
):
633
633
sub_matrix = csr_matrix (([1 ], ([0 ], [0 ])), shape = (1 , prim_pts ),)
@@ -643,7 +643,7 @@ def boundary_value_or_flux(self, symbol, discretised_child, bcs=None):
643
643
644
644
elif extrap_order == "quadratic" :
645
645
646
- if use_bcs and pybamm .has_bc_condition_of_form (
646
+ if use_bcs and pybamm .has_bc_of_form (
647
647
child , symbol .side , bcs , "Neumann"
648
648
):
649
649
a = (dx0 + dx1 ) ** 2 / (dx1 * (2 * dx0 + dx1 ))
@@ -672,7 +672,7 @@ def boundary_value_or_flux(self, symbol, discretised_child, bcs=None):
672
672
673
673
if extrap_order == "linear" :
674
674
675
- if use_bcs and pybamm .has_bc_condition_of_form (
675
+ if use_bcs and pybamm .has_bc_of_form (
676
676
child , symbol .side , bcs , "Neumann"
677
677
):
678
678
# use formula:
@@ -695,7 +695,7 @@ def boundary_value_or_flux(self, symbol, discretised_child, bcs=None):
695
695
additive = pybamm .Scalar (0 )
696
696
elif extrap_order == "quadratic" :
697
697
698
- if use_bcs and pybamm .has_bc_condition_of_form (
698
+ if use_bcs and pybamm .has_bc_of_form (
699
699
child , symbol .side , bcs , "Neumann"
700
700
):
701
701
a = (dxN + dxNm1 ) ** 2 / (dxNm1 * (2 * dxN + dxNm1 ))
@@ -730,7 +730,7 @@ def boundary_value_or_flux(self, symbol, discretised_child, bcs=None):
730
730
731
731
elif isinstance (symbol , pybamm .BoundaryGradient ):
732
732
733
- if use_bcs and pybamm .has_bc_condition_of_form (
733
+ if use_bcs and pybamm .has_bc_of_form (
734
734
child , symbol .side , bcs , "Neumann"
735
735
):
736
736
# just use the value from the bc: f'(x*)
0 commit comments