How to compile the source code of GEOtop 0.9375
GEOtop is written in C programming language. That means that you could compile it theorically on every platform you have a C compiler. There are several ways to compile GEOtop. here you can find some examples, please choose the one that fits your needs. Note that you have to follow this steps after you have downloaded the source code (see the DownLoad GEOtop page for this phase). This directory is named 0.9375 and contains the subdrectories APPLICATIONS , BINARIES , DOCUMENTATION , LIBRARIES , SCRIPTS and TEMPLATE. ThE GEOtop source code files are contained in the subdirectory APPLICATIONS/HYDROLOGY/geotop0.9375 . The GEOtop libraries source code files are organized in 4 different subdirectories: LIBRARIES/ASCII , LIBRARIES/FLUIDTURLES , LIBRARIES/GEOMORPHOLOGYLIB , LIBRARIES/MATH . All files contained in the cited directoris are necessary to complile GEOtop 0.9375. In BINARIES you can find tools to compile Geotop 0.9375 in differenet ways.
Compiling the source of GEOtop 0.9375 using makefiles
Open a console. First of all you have to go to the directory 0.9375/Makefile
cd $$/0.9375/BINARIES/Makefiles
then you launch the makefile for Mac Users by typing:
make -f geotop09375.2.make
or you type as follows for Linux:
make -f geotop09375.lin.make
The correct paths to source code and libraries were already set in the makefile. The executable file will be put in 0.9375/BINARIES/MacX or 0.9375/BINARIES/Linux respectively.
Compiling GEOtop 0.875 with Eclipse IDE
Eclipse (multiplatform, Java based), but you need the C/C++ plugin. For this IDE we put down some italian instructions, at the CompileWithEclipse page. There are also english instruction for a proper compilation: compile_geotop.pdf.
