parameters: (self, mesh, pos, **kwargs)
docstring: Init with mesh and some positions that are converted into ids.
docstring_summary: Init with mesh and some positions that are converted into ids.
docstring_tokens: Init with mesh and some positions that are converted into ids .
function: def __init__(self, mesh, pos, **kwargs):
          """Init with mesh and some positions that are converted into ids."""
          super().__init__(**kwargs)
          self.setMesh(mesh)
          self.ind = [mesh.findCell(po).id() for po in pos]
          self.J = pg.SparseMapMatrix()
          self.J.resize(len(self.ind), mesh.cellCount())
          for i, ii in enumerate(self.ind):
              self.J.setVal(i, ii, 1.0)
  
          self.setJacobian(self.J)
function_tokens: def __init__ ( self , mesh , pos , * * kwargs ) : super ( ) . __init__ ( * * kwargs ) self . setMesh ( mesh ) self . ind = [ mesh . findCell ( po ) . id ( ) for po in pos ] self . J = pg . SparseMapMatrix ( ) self . J . resize ( len ( self . ind ) , mesh . cellCount ( ) ) for i , ii in enumerate ( self . ind ) : self . J . setVal ( i , ii , 1.0 ) self . setJacobian ( self . J )