Numerical simulations of failure by finite element codes can capture the energetic (or deterministic) size effect only if the material law relating the stress to deformation possesses a characteristic length. This was not the case for the classical finite element codes with a material characterized solely by stress-strain relations.