GSSE set up
Download the GSSE package in the download area. Extract the gsse_students.tgz with the command "tar xfvz gsse_students.tgz". In this lesson the following files are required which can be found in the gsse/tutorials/lesson1 subdirectory:
![]() | The data file test file.gau2
|
![]() | A source code demo file lesson.cc |
Installation
The first lesson is split into two main parts: installation of the libraries and the dependences and a simple programming task. Make sure you have a compiler available (e.g., gcc > 3.1). Install the Boost libraries and adjust the Makefile, if the boost libraries are not in the system path.
Compile and Test
The programs can be compiled and tested in a sub-directory of the GSSE path tutorial/lesson1. For building, simple Makefiles are used. The executable requires one parameter, namely the file on which it operates. All required files are in this directory. The following commands are required to compile and execute the program:
make
./lesson test_file.gau2
Tasks
The programming task consists of the following subtasks. Similar problems are handeled in the source code demo file which is available for this lesson.
- Count all vertices and cells and print the number on the screen.
- Write incremental values on vertices and cells. Name them vertex_count and cell_count.
- Add the values stored on vertices (vertex_count) the value 5.
- Multiply the values stored on cells (cell_count) by the value 2.4.
