@@ -68,7 +68,8 @@ def _setup(self):
6868 )
6969
7070 local_size = math .prod (
71- v for v , dim in zip (target .shape_allocated , target .dimensions ) if dim .is_Space
71+ v for v , dim in zip (target .shape_allocated , target .dimensions , strict = True )
72+ if dim .is_Space
7273 )
7374 # TODO: Check - VecCreateSeqWithArray vs VecCreateMPIWithArray
7475 local_x = petsc_call ('VecCreateSeqWithArray' ,
@@ -104,7 +105,7 @@ def _setup(self):
104105
105106 dmda_calls = self ._create_dmda_calls (dmda )
106107
107- # TODO: maybe don't need to explictly set this
108+ # TODO: maybe don't need to explicitly set this
108109 mat_set_dm = petsc_call ('MatSetDM' , [sobjs ['Jac' ], dmda ])
109110
110111 base_setup = dmda_calls + (
@@ -252,7 +253,7 @@ def _setup(self):
252253
253254 dmda_calls = self ._create_dmda_calls (dmda )
254255
255- # TODO: maybe don't need to explictly set this
256+ # TODO: maybe don't need to explicitly set this
256257 mat_set_dm = petsc_call ('MatSetDM' , [sobjs ['Jac' ], dmda ])
257258
258259 create_field_decomp = petsc_call (
@@ -299,7 +300,8 @@ def _setup(self):
299300 for t in targets :
300301 target_xloc = sobjs [f'xlocal{ t .name } ' ]
301302 local_size = math .prod (
302- v for v , dim in zip (t .shape_allocated , t .dimensions ) if dim .is_Space
303+ v for v , dim in zip (t .shape_allocated , t .dimensions , strict = True )
304+ if dim .is_Space
303305 )
304306 field_from_ptr = FieldFromPointer (
305307 t .function ._C_field_data , t .function ._C_symbol
0 commit comments