Accessing material properties at local matrices building stage


I’d like to make a fork of FreeFem and try to implement non-homogeneous materials support by changing material properties during local matrices computation process. I got a little confused about specific place where local matrices are build in the FreeFem source. Can anyone point me in the right direction?

Best Regards, Pavel Oganesyan.