zhixuanc / Titan_GSPH

Titan code with GSPH method for debris flow simulation
GNU General Public License v3.0
1 stars 2 forks source link

how to compile the project and is there a document for this project? #1

Open sumitpo opened 4 years ago

sumitpo commented 4 years ago

After downloading the project, I was confused when I didn't see any configure or makefile. I tried to compile it with some online help, althrough I get the binary program, but I doesn't know what input I should feed it and what output I should expect. Is there a verbose document about compiling and running of this project. Please forgive my poor English.

zhixuanc commented 4 years ago

Sorry, there is no documentation. This project is not updated/used for a long while. To compile, you need to have Hdf5 and MPI library installed first (and set the correct environmental variable), and then: make clean make distclean ./configure make && make install You can also add more options while configure, for example, --enable-parallel --enable-parallel-IO --with-hdf5=$HDF5

To run: First distribute particles ./preprocess Then Run the simulation mpirun -np #OfRanks ./particler.exe

Hope this helps.

zhixuanc commented 4 years ago

@sumitpo Please let me know if you are able to compile it or not.