Skip to content

Conversation

@anton-seaice
Copy link
Collaborator

@anton-seaice anton-seaice commented Mar 20, 2025

This changes the CMake build in WW3 to support ACCESS-OM3. It includes the patches from https://github.com/COSIMA/access-om3/tree/main/WW3/patches.

There is a library build and a standalone build which adds the ww3_shel executable

All the WW3 forks are a mess, so i just overwrote the CMakeLists.txt file. We could change it in the future to have a seperate CMakeLists.txt file for access if needed.

general FYI @chrisb13 @ezhilsabareesh8 @dougiesquire

Closes #1

Copy link
Member

@micaeljtoliveira micaeljtoliveira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you are completely replacing the existing WW3 CMake build system. Are you planning to contribute this back upstream?

Copy link

@dougiesquire dougiesquire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @anton-seaice! Nothing much to add on @micaeljtoliveira's comments.

I do think the commit history should refer back to COSIMA/access-om3/WW3 somewhere to maintain provenance and credit back to @micaeljtoliveira's original work.

@anton-seaice
Copy link
Collaborator Author

Looks like you are completely replacing the existing WW3 CMake build system. Are you planning to contribute this back upstream?

No plans at this point - the upstream CMake was hard to understand and stylistically quite different from how we write them. I couldn't see how we would reconcile build flags or switches with the upstream version.

We could make a totally seperate CMakeLists file to make this clearer?

@micaeljtoliveira
Copy link
Member

No plans at this point - the upstream CMake was hard to understand and stylistically quite different from how we write them. I couldn't see how we would reconcile build flags or switches with the upstream version.

We could make a totally seperate CMakeLists file to make this clearer?

No, it's okay to leave it like this. Just wanted to understand the reasoning.

@anton-seaice
Copy link
Collaborator Author

I think I addressed all the comments, - this can be rereviewed.

new builds

ACCESS-NRI/ACCESS-OM3#35 (comment)
ACCESS-NRI/ACCESS-OM3#66 (comment)

Copy link

@dougiesquire dougiesquire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good with me. I still think this is a good idea, but I'll leave it up to you.

Co-authored-by: Micael Oliveira <micael.Oliveira@anu.edu.au>
@anton-seaice anton-seaice merged commit d980dec into dev/access Mar 27, 2025
@anton-seaice anton-seaice deleted the 1-cmake_build branch March 27, 2025 22:39
anton-seaice added a commit that referenced this pull request Aug 6, 2025
This adds a CMake build for ACCESS3 models.

By default, it builds some WW3 utilities and the shell test program. If WW3_ACCESS3 is ON, it builds a library for access3 models (and using the https://github.com/ACCESS-NRI/access3-share dependencies)

* This was based on the https://github.com/cOSIMA/access-om3 CMake

Co-authored-by: Micael Oliveira <micael.Oliveira@anu.edu.au>
ezhilsabareesh8 pushed a commit that referenced this pull request Oct 9, 2025
This adds a CMake build for ACCESS3 models.

By default, it builds some WW3 utilities and the shell test program. If WW3_ACCESS3 is ON, it builds a library for access3 models (and using the https://github.com/ACCESS-NRI/access3-share dependencies)

* This was based on the https://github.com/cOSIMA/access-om3 CMake

Co-authored-by: Micael Oliveira <micael.Oliveira@anu.edu.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a CMAKE Build

3 participants