[lammps-users] lmp2traj tool

Hi
i compiled the lmp2traj tool in LAMMPS according to the instructions given in the readme.txt file ie, using the command
./f77 lmp2traj.f
and got the following warnings
MAIN densprof:
Warning on line 449: local variable q never used
Warning on line 449: local variable file never used
Warning on line 449: local variable text never used
Warning on line 449: local variable mapat never used
Warning on line 449: local variable iconn never used
Warning on line 449: local variable iwath never used
Warning on line 449: local variable outhb never used
Warning on line 449: local variable iwato never used
Warning on line 449: local variable dummy never used
Warning on line 449: local variable rtype never used
Warning on line 449: local variable dummy2 never used
Warning on line 449: local variable outacf never used
Warning on line 449: local variable exists never used
Warning on line 449: local variable outeang never used
and when i use the command
lmp2traj 1.txt out.txt
i am getting the following error
lmp2traj: command not found
what may be the reason for this?

The warnings don't matter. The error is probably b/c your current
directory isn't in your path.

Try ./lmptraj ...

Steve

hi
thank you for spending your valuable time for me.
but i had tried that also…it didnt work…when i checked the directory there was no executable in the name lmp2traj…only an a.out file was there…is there anything wrong in the compilation procedure i had done?

The issue is that if you don’t specify an executable name, it assumes that “a.out” should be the filename of the executable.

All you have to do is change the name to lmp2traj using

mv a.out lmp2traj

or specify the executable file name using your local compiler’s options.

–AEI