Conditional is actually import with dolfin, so if you have used from dolfin import *
, simply use conditional(gt(x, 0), 1, 0)
.
Conditional is actually import with dolfin, so if you have used from dolfin import *
, simply use conditional(gt(x, 0), 1, 0)
.