@@ -880,26 +880,26 @@ def _linesearch_iterative(m: types.Model, d: types.Data):
880
880
d .efc .uv , d .efc .vv
881
881
],
882
882
outputs = [d .efc .lo_next , d .efc .hi_next , d .efc .mid ]) # fmt: skip
883
- else :
883
+ else :
884
+ wp .launch (
885
+ linesearch_iterative_next_quad_pyramidal ,
886
+ dim = (d .njmax ,),
887
+ inputs = [
888
+ d .ne , d .nf , d .nefc , d .efc .worldid , d .efc .Jaref , d .efc .jv , d .efc .quad , d .efc .done , d .efc .ls_done ,
889
+ d .efc .lo_next_alpha , d .efc .hi_next_alpha , d .efc .mid_alpha
890
+ ],
891
+ outputs = [d .efc .lo_next , d .efc .hi_next , d .efc .mid ]) # fmt: skip
892
+
884
893
wp .launch (
885
- linesearch_iterative_next_quad_pyramidal ,
886
- dim = (d .njmax ,),
894
+ linesearch_iterative_swap ,
895
+ dim = (d .nworld ,),
887
896
inputs = [
888
- d .ne , d . nf , d .nefc , d .efc .worldid , d .efc .Jaref , d .efc .jv , d .efc .quad , d .efc .done , d .efc .ls_done ,
889
- d .efc .lo_next_alpha , d .efc .hi_next_alpha , d .efc .mid_alpha
897
+ d .efc . gtol , d .efc . done , d .efc .ls_done , d .efc .p0 , d .efc .lo , d .efc .lo_alpha , d .efc .hi , d .efc .hi_alpha ,
898
+ d .efc .lo_next , d . efc . lo_next_alpha , d .efc .hi_next , d . efc . hi_next_alpha , d . efc . mid , d .efc .mid_alpha
890
899
],
891
- outputs = [d .efc .lo_next , d .efc .hi_next , d .efc .mid ]) # fmt: skip
892
-
893
- wp .launch (
894
- linesearch_iterative_swap ,
895
- dim = (d .nworld ,),
896
- inputs = [
897
- d .efc .gtol , d .efc .done , d .efc .ls_done , d .efc .p0 , d .efc .lo , d .efc .lo_alpha , d .efc .hi , d .efc .hi_alpha ,
898
- d .efc .lo_next , d .efc .lo_next_alpha , d .efc .hi_next , d .efc .hi_next_alpha , d .efc .mid , d .efc .mid_alpha
899
- ],
900
- outputs = [
901
- d .efc .alpha , d .efc .ls_done , d .efc .lo , d .efc .lo_alpha , d .efc .hi , d .efc .hi_alpha
902
- ]) # fmt: skip
900
+ outputs = [
901
+ d .efc .alpha , d .efc .ls_done , d .efc .lo , d .efc .lo_alpha , d .efc .hi , d .efc .hi_alpha
902
+ ]) # fmt: skip
903
903
904
904
905
905
@wp .kernel
0 commit comments