Step by step of Compiling GEOtop KMackanzie

* First you have to open eclipse from the executable file in your application folder,

* Create a new Fortran executable project by click on the Main Menu File/New/Other

  • then set the name of the (0.9375KMackezie_GEOtop suggested) and the compilers as illustrated (here it is used GnuFortran for MacOS and GCC Tool Chain):

    Upload new attachment "new_fortran_project_2.jpg" You can set a Debug and/or Release configuration attachment: new_fortran_project_4.jpg

    • and, clicking the suitable bottom, advanced settings (e.g. optimization, daclarations, etc) which you can set later. Then click on "Finish" bottom and he project was created.

* Import the directories containing source files and contained in the directory trunk/0.9375KMackenzie. So the project becomes:

* Add the directories containing the C header files by clicking on the Manu in Project/Properties and then Setting/GCC_Directory as shown:

  • attachment: new_fortan_project_6.jgg The references to be added are the following:

../LIBRARIES/ASCII
../LIBRARIES/FLUIDTURTLES
../LIBRARIES/GEOMORPHOLOGYLIB
../LIBRARIES/KeyPalette
../LIBRARIES/MATH2
../EXTERN
../KMackenzie

* Then click on the menu "Project/Build Project" or "Project/Clean" and GEOtop is successfully Build. The executable file is created in the subdirectory Debug (in case of Debug configuration). attachement:project_profile6 * The makefile of the project was created in the Debug subdirectories and contains references to other *.mk files in the project. You can also re-compile GEOTop accessing by a Unix-like Shell Terminal to the directory Debug in the project and then launching the makefile with GNU make command:

cd ${eclipse_workspace}/${Name_of_0.9375KMackenzie_GEOtop}/Debug

and the type

make clean

to clean the project and then

make all

to compile GEOtop. For adveced users, you can export the whole project directory to anath