@@ -23,7 +23,6 @@ def __init__(self, **kwargs):
2323 self .callback_builder = kwargs .get ('callback_builder' )
2424 self .field_data = self .inject_solve .expr .rhs .field_data
2525 self .formatted_prefix = self .inject_solve .expr .rhs .formatted_prefix
26- # self.calls = self._setup()
2726
2827 @cached_property
2928 def calls (self ):
@@ -40,7 +39,6 @@ def snes_ctx(self):
4039 def _setup (self ):
4140 sobjs = self .solver_objs
4241 dmda = sobjs ['dmda' ]
43- # mainctx = sobjs['userctx']
4442
4543 snes_create = petsc_call ('SNESCreate' , [sobjs ['comm' ], Byref (sobjs ['snes' ])])
4644
@@ -110,8 +108,6 @@ def _setup(self):
110108 mat_set_dm = petsc_call ('MatSetDM' , [sobjs ['Jac' ], dmda ])
111109
112110 base_setup = dmda_calls + (
113- # call_struct_callback,
114- # calls_set_app_ctx,
115111 snes_create ,
116112 snes_options_prefix ,
117113 set_options ,
@@ -337,7 +333,6 @@ def _setup(self):
337333 snes_set_options ,
338334 call_struct_callback ,
339335 mat_set_dm ,
340- # calls_set_app_ctx,
341336 create_field_decomp ,
342337 matop_create_submats_op ,
343338 call_coupled_struct_callback ,
@@ -378,9 +373,6 @@ def _create_dmda_calls(self, dmda):
378373 'DMGetLocalSection' , [dmda , Byref (sobjs ['lsection' ])]
379374 )
380375
381- import cgen as c
382- tmp = c .Line ("PetscCall(PetscSectionView(lsection0, NULL));" )
383-
384376 get_point_sf = petsc_call ('DMGetPointSF' , [dmda , Byref (sobjs ['sf' ])])
385377
386378 create_global_section = petsc_call (
@@ -414,7 +406,6 @@ def _create_dmda_calls(self, dmda):
414406 count_bcs ,
415407 set_point_bcs ,
416408 get_local_section ,
417- tmp ,
418409 get_point_sf ,
419410 create_global_section ,
420411 dm_set_global_section ,
@@ -426,7 +417,7 @@ class ConstrainedBCBuilder(ConstrainedBCMixin, BuilderBase):
426417 pass
427418
428419
429- # TODO: Implement this properly
420+ # TODO: Implement this class properly
430421class CoupledConstrainedBCBuilder (ConstrainedBCMixin , CoupledBuilder ):
431422 pass
432423
0 commit comments