parameters: (self, group_value_dict, *args, **kwargs)
return_statement: return ff
docstring: Reads facet function and returns it.
docstring_summary: Reads facet function and returns it.
docstring_tokens: Reads facet function and returns it .
function: def readFacetFunction(self, group_value_dict, *args, **kwargs):
          """
          Reads facet function and returns it.
          """
          self.readMesh()
          xdmffile = fenics.XDMFFile(self.xdmffilename)
          ff = FacetFunctionFromXDMF(group_value_dict, *args, **kwargs)
          ff.init()
          for (key, value) in ff.group_value_dict.items():
              ff.markers[key] = fenics.MeshFunction(
                  "size_t",
                  self.mesh,
                  self.mesh.topology().dim() - 1
              )
              xdmffile.read(ff.markers[key], key)
              ff.marked[key] = value.get("marked", 1)
              ff.ds[key] = fenics.Measure(
                  "ds",
                  domain=self.mesh,
                  subdomain_data=ff.markers[key]
              )
              ff.bcs[key] = value
          xdmffile.close()
          return ff
function_tokens: def readFacetFunction ( self , group_value_dict , * args , * * kwargs ) : self . readMesh ( ) xdmffile = fenics . XDMFFile ( self . xdmffilename ) ff = FacetFunctionFromXDMF ( group_value_dict , * args , * * kwargs ) ff . init ( ) for ( key , value ) in ff . group_value_dict . items ( ) : ff . markers [ key ] = fenics . MeshFunction ( "size_t" , self . mesh , self . mesh . topology ( ) . dim ( ) - 1 ) xdmffile . read ( ff . markers [ key ] , key ) ff . marked [ key ] = value . get ( "marked" , 1 ) ff . ds [ key ] = fenics . Measure ( "ds" , domain = self . mesh , subdomain_data = ff . markers [ key ] ) ff . bcs [ key ] = value xdmffile . close ( ) return ff