update README.md

This commit is contained in:
Arne Morten Kvarving 2016-01-29 12:13:52 +01:00 committed by Knut Morten Okstad
parent ea242fda48
commit a07036c906

View File

@ -68,7 +68,7 @@ First, we will add inhouse dependencies by a secondary repository.
This is done by first navigating to the folder in which you want IFEM installed and typing This is done by first navigating to the folder in which you want IFEM installed and typing
git clone https://github.com/sintefmath/IFEM git clone https://github.com/OPM/IFEM
### Compiling the code ### Compiling the code
@ -76,21 +76,20 @@ This is done by first navigating to the folder in which you want IFEM installed
To compile, first navigate to the root catalogue of IFEM, here denoted by `<IFEM root>`. To compile, first navigate to the root catalogue of IFEM, here denoted by `<IFEM root>`.
1. `cd <IFEM root>` 1. `cd <IFEM root>`
2. `cd Apps` 2. `mkdir Debug`
3. `mkdir Debug` 3. `cd Debug`
4. `cd Debug` 4. **[optional]** specify which submodules you have available in `<IFEM root>/cmake/Modules/IFEMoptions.cmake`
5. **[optional]** specify which submodules you have available in `<IFEM root>/cmake/Modules/IFEMoptions.cmake` 5. `cmake -DCMAKE_BUILD_TYPE=Debug ..`
6. `cmake -DCMAKE_BUILD_TYPE=Debug -DIFEM_AS_SUBMODULE=1 ..` 6. `make `
7. `make `
this will compile the library and all applications. The binaries can be found in the 'bin' subfolder. this will compile the library.
Change all instances of `Debug` with `Release` to drop debug-symbols, but get faster running code. Change all instances of `Debug` with `Release` to drop debug-symbols, but get faster running code.
### Testing the code ### Testing the code
IFEM is using cmake test system. To compile run all regression- and unit-tests, navigate to your build IFEM is using cmake test system. To compile run all regression- and unit-tests, navigate to your build
folder (i.e. `<IFEM root>/Apps/Debug`) and type folder (i.e. `<IFEM root>/Debug`) and type
make check make check