parameters: (uB, mesh, uBBC)
docstring: TODO Documentme.
docstring_summary: TODO Documentme.
docstring_tokens: TODO Documentme .
function: def applyBoundaryValues(uB, mesh, uBBC):
      """TODO Documentme."""
      if isinstance(uBBC, dict):
          boundsDirichlet = pg.solver.parseArgToBoundaries(uBBC['Dirichlet'], mesh)
          for b, v in boundsDirichlet:
              uB[b.id()] = v
      else:
          for marker, val in uBBC:
              for b in mesh.findBoundaryByMarker(marker):
                  uB[b.id()] = val
function_tokens: def applyBoundaryValues ( uB , mesh , uBBC ) : if isinstance ( uBBC , dict ) : boundsDirichlet = pg . solver . parseArgToBoundaries ( uBBC [ 'Dirichlet' ] , mesh ) for b , v in boundsDirichlet : uB [ b . id ( ) ] = v else : for marker , val in uBBC : for b in mesh . findBoundaryByMarker ( marker ) : uB [ b . id ( ) ] = val