← Back to team overview

dolfin team mailing list archive

Re: FEM: [...]

 

Quoting Anders Logg <logg@xxxxxxxxx>:

> I think at least FEM::size() needs to be public. It's used in
> DiscreteFunction.cpp (which does not compile now since size()
> disappeared).

OK, let's make it public then. It's common enough to need the system size to
make it public.

> 
> We could make DiscreteFunction a friend of FEM, but I know of a least
> one user (Andy Terrel) that needs to call FEM::size() to get the
> number of dofs.

I will need this too when solving some nonlinear problems with p > 1 elements in
order to allocate the vectors associated with functions. 

Garth

> 
> /Anders
> 
> 
> On Mon, Dec 05, 2005 at 05:01:26PM +0100, dolfin@xxxxxxxxxx wrote:
> > Commit from garth (2005-12-05 17:01 CET)
> > -----------------
> > 
> > FEM:
> > 
> > Make FEM::size() and FEM::nzsize() private again (they were made public for
> NonlinearFunction, but are no longer requied by NonlinearFunction).
> > 
> > Change sign in FEM::applyBCresidual() to be consistent with new structure
> of nonlinear solver.
> > 
> >   dolfin  src/kernel/fem/FEM.cpp       1.47
> >   dolfin  src/kernel/fem/dolfin/FEM.h  1.26
> > 
> > _______________________________________________
> > DOLFIN-dev mailing list
> > DOLFIN-dev@xxxxxxxxxx
> > http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
> > 
> 
> -- 
> Anders Logg
> Research Assistant Professor
> Toyota Technological Institute at Chicago
> http://www.tti-c.org/logg/
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
> 



References