also, i would suggest a simpler approach, that requires less
modifications to the LAMMPS sources.
1) run a normal simulation with the unmodified lj/cut/coul/long
2) modify lj/cut/coul/long to only store the repulsive energy in evdwl
and use the rerun to collect that info
3) modify lj/cut/coul/long to only store the attractive energy in
evdwl and use the rerun to collect that info
if you need to do it multiple times, you can either have multiple
executables, or rename the classes and style string so that you can
select the different variants from within the same executable.