enforce energy conservation wavelet 3d