← Back to team overview

ffc team mailing list archive

Re: [Branch ~ffc-core/ffc/dev] Rev 1348: Simple functionality now in place in compute_dof_ir. Missing tabulate_* and

 

Anders Logg wrote:
On Thu, Dec 17, 2009 at 02:32:19PM -0000, noreply@xxxxxxxxxxxxx wrote:
------------------------------------------------------------
revno: 1348
committer: meg@xxxxxxxxx
branch nick: ffc-dev
timestamp: Thu 2009-12-17 15:29:05 +0100
message:
  Simple functionality now in place in compute_dof_ir. Missing tabulate_* and
  create_sub_dof_map.

  What is init_cell and init_cell_finalize used for?

It was added to UFC to allow a form compiler to precompute the dofmap
by iterating over the mesh. If you look at DofMap.cpp in DOLFIN you
will see this:

 // Initialize UFC dof map
 const bool init_cells = dofmap.init_mesh(ufc_mesh);
 if (init_cells)
 {
   UFCCell ufc_cell(dolfin_mesh);
   for (CellIterator cell(dolfin_mesh); !cell.end(); ++cell)
   {
     ufc_cell.update(*cell);
     dofmap.init_cell(ufc_mesh, ufc_cell);
   }
   dofmap.init_cell_finalize();
 }

init_cell and init_cell_finalize are not used by FFC only SyFi so
init_mesh should return false and the other two should be empty.


I copied the previous, so init_mesh initializes the global_dimension (and returns false)

We probably need something like

  format["do_nothing"] --> "// Do nothing"

in the format dictionary.


Check (from previous)    .

--
Marie
------------------------------------------------------------------------

_______________________________________________
Mailing list: https://launchpad.net/~ffc
Post to     : ffc@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~ffc
More help   : https://help.launchpad.net/ListHelp




Follow ups

References