The weighted average flux method applied to the euler equations