Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The great cmake refactoring #515

Closed
wants to merge 8 commits into from

Conversation

wdeconinck
Copy link
Contributor

@wdeconinck wdeconinck commented Oct 11, 2023

@sebastianbeyer @suvarchal @dsidoren

Here is the promised branch with CMake refactoring.
A few things this now enables

  • Use MPI as library without using compiler wrappers
  • Improved NetCDF detection from various netcdf modules on various HPC (LUMI, ECMWF-ATOS)
  • Installation of fesom as a cmake package that other projects like e.g. IFS could do find_package(fesom)
  • Building fesom with shared libraries (default now)
  • Only recompile the version-info file when the sha1 has changed, avoiding a relinking cascade.

Rename BUILD_FESOM_AS_LIBRARY to ENABLE_IFS_INTERFACE. Fesom can always build as library and have a driver executable for the library. Remaining TODO is however a run-time configuration switch to use the IFS-interface or internally provided forcings from file, for this to be working as a single binary.

After this is merged in, it will be easy to merge the multio-climate-dt branch which I have refactored with similar changes before. The changes on this branch make multio completely optional, so it can be merged in the main refactoring branch.

@wdeconinck wdeconinck changed the title Feature/cmake improvements The great cmake refactoring Oct 11, 2023
@suvarchal
Copy link
Collaborator

Wonderful and timely, will test it and merge it ASAP.

@wdeconinck wdeconinck force-pushed the feature/cmake-improvements branch 2 times, most recently from c2d6261 to 4dca53f Compare November 2, 2023 10:18
@wdeconinck
Copy link
Contributor Author

I have rebased this branch on latest refactoring as of November 2, 2023.

@JanStreffing JanStreffing added this to the FESOM 2.6 milestone Feb 28, 2024
@patrickscholz patrickscholz added the help wanted Extra attention is needed label Mar 12, 2024
@JanStreffing JanStreffing added leave it for the end and removed help wanted Extra attention is needed labels Mar 13, 2024
@JanStreffing
Copy link
Collaborator

We decided to first merge #526 and then seen what remains of this MR, as many of the changes made here will already come into refactoring from production_DE.

@JanStreffing JanStreffing changed the base branch from refactoring to main June 21, 2024 08:05
@JanStreffing
Copy link
Collaborator

I will make a new merge request from a branch that lies in a repo that we can commit to.

@JanStreffing
Copy link
Collaborator

JanStreffing commented Aug 23, 2024

Superseded by: #621

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants