A ready-made container brings the ocean model FVCOM to Olivia

24.11.2026

FVCOM is a community ocean model used worldwide to simulate currents, temperature, salinity and ecosystems in coastal waters and fjords. A research group at Akvaplan-NIVA wanted to run it on Olivia, but the model relies on older software libraries that do not fit a modern system.

FVCOM simulation of peak surface currents on an unstructured grid, from slow (dark purple) to fast (light yellow)
Peak surface currents in the reference simulation, from slow (dark purple) to fast (light yellow), up to about 0.4 m/s.

Our Extended User Support (EUS) team updated the code and packaged the model in a container. A container bundles the model and all the software it needs into one portable file, so it behaves the same on a laptop, a server and a supercomputer.

Older libraries on a new system

FVCOM calculates water movement on an unstructured grid, where cells of varying size and shape follow the real coastline. The model uses the older METIS 4.0 to divide the grid between processors, and other parts of the code depend on older library interfaces. This made it hard to build and run on Olivia.

Our EUS team ported the code to METIS 5 and a modern version of PETSc, and built the container. The group received the container image, ready-to-submit job scripts and a step-by-step procedure.

Bilde
FVCOM simulation with virtual drifters on a triangular unstructured grid, coloured by drifter speed from 0 to about 0.6 m/s.
Virtual drifters in the FVCOM simulation on 23 July 2025 at 00:00. The triangular cells of the unstructured grid are visible, and colour shows drifter speed in m/s.

Validated on Olivia

The reference case was a high-resolution coastal model supplied by the group, with 50,523 grid elements. The run covered two simulated hours, driven by real atmospheric forcing for 23 July 2025. On one node it took about 1 h 12 min to 1 h 25 min, and on two nodes it took 48 to 58 minutes. The whole exercise, including image, job scripts and procedure, took days.

The approach behind the container is summed up by our container specialist, Jean Iaquinta.

"The hard part of research software is never the first successful run, it is the hundredth, on a different machine, in two years. A properly designed and built container is how we made that hundredth run boring."

Jean Iaquinta, Extended User Support, Sigma2/NRIS, with Thierry Toutain.

With the container, the group can now run and keep developing its model with the same software on Olivia and on its own machines. The container is versioned and citable.

The container is open to everyone. The build recipes, job scripts and procedure are on GitHub under an MIT licence, archived with the DOI 10.5281/zenodo.24304444. The image is published for both x86-64 and Arm.

Need help with your own software?

Our Extended User Support (EUS) team can help you get your software running on our systems.

Caption

Peak surface currents in the reference simulation, from slow (dark purple) to fast (light yellow), up to about 0.4 m/s.