Theoretical study of the magnetic ordering in rare-earth compounds with face-centered-cubic structure