fem2d code