Skip to content

kmokstad/IFEM-CoSTA

 
 

Repository files navigation

IFEM CoSTA

Introduction

This module contains the CoSTA simulators built using the IFEM library.

Getting all dependencies

  1. Install IFEM from https://github.com/OPM/IFEM

Getting the code

This is done by first navigating to a folder <App root> in which you want the applications and typing

git clone https://github.com/OPM/IFEM-AdvectionDiffusion
git clone https://github.com/OPM/IFEM-Darcy

The source code for this module should be placed alongside the others. The build system uses sibling directory logic to locate the modules.

Getting all dependencies

sudo apt install libpython3-dev
sudo apt install pybind11-dev

Compiling the code

To compile, first navigate to the root catalogue <App root>.

  1. cd IFEM-CoSTA
  2. mkdir Debug
  3. cd Debug
  4. cmake -DCMAKE_BUILD_TYPE=Debug -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
  5. make

This will compile the python modules. Change all instances of Debug with Release to drop debug-symbols, and get a faster running code.

Testing the code

IFEM uses the cmake test system. To compile and run all regression- and unit-tests, navigate to your build folder (i.e. <App root>/IFEM-CoSTA/Debug) and type

make check

About

CoSTA simulators for IFEM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 59.7%
  • C++ 24.3%
  • Python 10.1%
  • CMake 4.1%
  • Shell 1.8%