glotzcc
This Glotzilla command compiles a C++ code that uses Glotzilla classes.
//my_file.cpp #include <glotzilla++.h> int main(int argc, char **argc) { MdSimulation my_simulation //more code here return 0; }
$ glotzcc my_file.cpp #compiles the simulation $ ./a.out #runs the simulation
The command is a simple bash script that links with the glotzila libraries generated in SimulationBuilder and Lammps. The command is exactly equivalent to specifying the -L and -I parameters using gcc or mpic++, where -I is followed by the include path and -L is followed by the library path.
INCLUDEPATH="/users/me/Desktop/include/" LIBRARYPATH="/users/me/Desktop/lib/" mpic++ my_file.cpp -I$INCLUDEPATH -L$LIBRARYLPATH -lGlotzilla++
If you build the project in XCode or Eclipse, you have to specify these paths manually.