← Back to team overview

dolfin team mailing list archive

Re: [Question #153567]: Warning: Found no facets matching domain for boundary condition

 

Question #153567 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/153567

Anders Logg proposed the following answer:
On Wed, Apr 20, 2011 at 10:38:36AM -0000, B. Emek Abali wrote:
> Question #153567 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/153567
>
>     Status: Open => Answered
>
> B. Emek Abali proposed the following answer:
> instead of
>
> x[0] > (20.0 - DOLFIN_EPS)
>
> try to use
>
> fabs(x[0] - 20.0) < DOLFIN_EPS
>
> or an easier one
> right = compile_subdomains('x[0] == 20.0')
> ...
> bc2 = DirichletBC(system.sub(1), zero, right)

You can also use

  near(x[0], 20.0)

--
Anders

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.