Docker
Install Docker
Install Docker in your machine.
Create the Docker image and container (only needs to be set up once)
Start Docker
Go to the
containers/folder inside the OpenWQ repository (containsdocker-compose.ymlandDockerfile)If needed, clear all images and containers with
docker system prune -aCheck if
docker-compose.ymlfile is good withdocker-compose configCreate the Docker image (set up for
ubuntu:24.04) that contains all the necessary packages withdocker compose up -dIf you need to stop the container:
docker compose down
Compile your coupled OpenWQ model
Go to the main OpenWQ folder that contains the
CMakeLists.txtfileInside the
CMakeLists.txtfile, set up the compilation target:SET(COMPILE_TARGET XXXX)Inside the
CMakeLists.txtfile, set up the compilation mode:SET(COMPILE_MODE XXXX)Open terminal and go to the OpenWQ folder that contains the
CMakeLists.txtCheck the containers that are running with
docker ps(exports container IDs)Get the appropriate container ID and use it in the command below
Run a shell inside the container with
docker exec -it <container id> /bin/bashArmadillo now disables default
hdf5support for save/load, so runnano "/usr/include/armadillo_bits/config.hpp"You are now inside the
config.hppfile, so locate and uncomment#define ARMA_USE_HDF5Go to the main OpenWQ folder that contains the
CMakeLists.txtfileCompile with:
rm CMakeCache.txt; rm -r CMakeFiles; cmake . ; make -B; rm *.mod
That’s all !! :)