First, make sure that the library "keyFE2.a" in "src" directory is already compiled.
Instructions for the compilation of the examples on Unix systems :
- Enter the source directory "examples".
- Edit the Makefiles in all sub-directories and change the value of variable "KEYFE2LIBDIR". This variable should point towards the directory in which "keyFE2.a" library and associated header files are stored.
Also the compilation commands have to be adpated to your system.
3. Type "make". This compiles the "cpp" files and builds the example
executables. The command "make" can be run either in the main
"examples" directory, or in each sub-directory separately.
Several parameters for "make" :
- "make" : produces the examples.
- "make clean" : cleans all the objects, executable, and output files.
Instructions for the compilation on other systems :
The "make" command may not work on other systems (like Windows, for example). To compile the library on those systems, you must run manually the commands used for the compilation. (Read the Makefiles for inspiration.)
On Windows, the keyFlow keyword "COORD" conflicts with a type of the C++ library. To avoid any problem related to this conflict, add the line
using keyFE2::COORD ;
at the beginning of each function in which the problem occurs.
Running the examples :
- Enter the execution directory :
cd EXEC
It is important to go in the appropriate directory, because the
Mesh file is located in this directory.
2. Call the executable. For example :
../step2D
