K weightings, dGdm, gm, matrices made
moved calc_TEN etc. to myinv
thinking about gm for differential tt