Large eddy simulation with energy-conserving schemes and the smagorinsky model