update README.md
This commit is contained in:
parent
ea242fda48
commit
a07036c906
21
README.md
21
README.md
@ -41,7 +41,7 @@ export of simulations results to GLview VTF-files.
|
|||||||
### Getting all dependencies
|
### Getting all dependencies
|
||||||
|
|
||||||
A number of things need to be set up properly to compile the IFEM library.
|
A number of things need to be set up properly to compile the IFEM library.
|
||||||
First, we will add inhouse dependencies by a secondary repository.
|
First, we will add inhouse dependencies by a secondary repository.
|
||||||
|
|
||||||
1. Add the IFEM repository at https://launchpad.net/~ifem/ (follow the instructions on site)
|
1. Add the IFEM repository at https://launchpad.net/~ifem/ (follow the instructions on site)
|
||||||
2. Install development tools and compilers by typing
|
2. Install development tools and compilers by typing
|
||||||
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user