hello guys,
I have made some modifications on the input.cpp and input.h files, aftewhich I tried recompiling LIGGGHTS by simply going into the src directory (I am using linux ubuntu) and typing gcc input.cpp
I am getting the following error:
input.cpp:52:10: fatal error: mpi.h: No such file or directory
#include
^~~~~~~
compilation terminated.
I hope someone might help me as I am in hurry in seeing the results of my changes.
best wishes,
mschramm | Thu, 10/18/2018 - 16:09
use make
to recompile after making changes to the source, always use make.
How did you compile liggghts the first time?
Did you use "make auto"?
If so, simply type
make auto
again and the makefile will automatically detect what you have changed and recompile just that code,
then it will link everything together for you.
After doing this and you still get an error, it may be because you changed the .h file. To fix this, clean the build
make clean-auto
and compile
make auto
NSalloum | Fri, 10/19/2018 - 09:37
Actually I tried this, but I
Actually I tried this, but I am getting the following note :
Creating list of contact models completed.
make[1]: Entering directory '/home/salloum/LIGGGHTS-PUBLIC-master/src/Obj_auto'
Makefile:815: *** 'Could not obtain VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON" we cannot continue'. Stop.
make[1]: Leaving directory '/home/salloum/LIGGGHTS-PUBLIC-master/src/Obj_auto'
Makefile:106: recipe for target 'auto' failed
make: *** [auto] Error 2.
I tried setting it manually to "ON", but it didn't work.
So any suggestions in this regards?
best wishes
NSalloum | Fri, 10/19/2018 - 11:02
hello mschramm,
hello mschramm,
I managed overcoming this by simply disabling the use of vtk in Makefile.user.
thanks for your concern
NSalloum | Fri, 10/19/2018 - 12:26
hello,
hello,
I hope I am not bothering, but actually after recompiling LIGGGHTS in way mentioned above, it seems that non of my changes in the input.cpp and input.h is taken into account.
what would be the issue?
mschramm | Fri, 10/19/2018 - 18:19
Changes made
Glad you got it working.
As to your input.cpp and input.h files.
What exactly did you change?
Can you add "debug" info to confirm?
Things like
fprintf(screen,"I am now entering such and such\n");