Dear all,
I try to integrate (H o u(x))*v where H is Heaviside function in a 2D mesh by using:
Uh(Th, P1);
varf a(uu,vv) = int2d(Th)((uu == 0. ? 0.5 : (uu>0. ? 1. : 0.))*vv);
matrix Ah = a(Uh,Uh);
However, Freefem raise the following error. I also get the same error with a macro : Heaviside(u) ((u == 0.) ? 0.5 : ((u>0.) ? 1. : 0.)).
varf tesths(uu,vv) = int2d(Th)(((uu == 0.)
error operator == <10LinearCombI7MGauche4C_F0E>, List of choices ( : , ) ( : <10GlgElementIN5Fem2D5MeshLEE>, <10GlgElementIN5Fem2D5MeshLEE> ) ( : <10GlgElementIN5Fem2D5MeshSEE>, <10GlgElementIN5Fem2D5MeshSEE> ) ( : <10GlgElementIN5Fem2D5Mesh3EE>, <10GlgElementIN5Fem2D5Mesh3EE> ) ( : <N12_GLOBAL__N_19lgElementE>, <N12_GLOBAL__N_19lgElementE> ) ( : <NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE>, <NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE> ) ( : , ) ( : , )
Does anyone know what is wrong here? Thank you.