Initial commit: add Euler mesh optimization code