| Thread Previous • Date Previous • Date Next • Thread Next |
On 08/02/11 17:09, Anders Logg wrote: > On Tue, Feb 08, 2011 at 05:07:10PM +0000, Garth N. Wells wrote: >> >> >> On 08/02/11 16:49, Anders Logg wrote: >>> On Tue, Feb 08, 2011 at 03:45:27PM +0000, Garth N. Wells wrote: >>>> Do we have a short-cut for defining the entire boundary of a domain so >>>> that it can be used in applying a Dirichlet bc on the entire boundary? >>> >>> Yes, DomainBoundary: >>> >>> bc = DirichletBC(V, g, DomainBoundary()) >>> >> >> Thanks. >> >> What about from C++? > > It should work with > > DomainBoundary boundary; > DirichletBC bc(V, G, boundary); > > Possibly also with > > DirichletBC bc(V, G, DomainBoundary()); > > I think the above will compile but I'm not sure what it does. Some C++ > expert please enlighten me. > I expect that it will depend on whether the DirichletBC interface is pass-by-value or pass-be reference. Garth > -- > Anders
| Thread Previous • Date Previous • Date Next • Thread Next |