-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add initialisation routine for offline drivers #440
Conversation
e410bcc
to
529e83c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SeanBryan51 Overall looks good!
Most of my comments are quite general and, at this point, they are all optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the issue with the CMake mentioned above needs to be fixed before merging this.
337142c
to
0af4a0f
Compare
Copyright statement generated via: ``` head -n 3 License.md | fold -s -w 88 | awk NF | sed '/^#[ ]*/s/^#[ ]*//g;s/^/! /' ``` See [here][copyright-header] for more details [copyright-header]: https://cable.readthedocs.io/en/latest/developer_guide/other_resources/coding_standards/#8-copyright-header
0af4a0f
to
f02dc3b
Compare
Testing with PBS log file:
Benchcab version:
|
This change further consolidates the initialisation logic within the offline drivers to remove code duplication and improve code clarity across each of the drivers (see #425, #440 and #469). As part of the refactoring changes, new optional namelist options (`filename%new_sumbal` and `filename%trunk_sumbal`) are introduced to replace hard coded filenames and optional namelist option `CASAonly` is restored for consistency with the documentation. ## Type of change - [x] Code refactor - [x] New feature - [x] New or updated documentation ## Checklist - [x] The new content is accessible and located in the appropriate section. - [x] I have checked that links are valid and point to the intended content. - [x] I have checked my code/text and corrected any misspellings <!-- readthedocs-preview cable start --> ---- 📚 Documentation preview 📚: https://cable--472.org.readthedocs.build/en/472/ <!-- readthedocs-preview cable end -->
…#498) This change further consolidates the initialisation logic within the offline drivers (in particular logic related to `cable_user%MetType`) to remove code duplication and improve code clarity across each of the drivers (see #425, #440, #469 and #472). As part of the refactoring changes, the `cable_user%MetType = 'gpgs'` namelist parameter is deprecated as it is equivalent to setting `cable_user%MetType = 'gswp'` and `leaps = .TRUE.`. ## Type of change - [x] Code refactor - [x] New or updated documentation ## Checklist - [x] The new content is accessible and located in the appropriate section. - [x] I have checked that links are valid and point to the intended content. - [x] I have checked my code/text and corrected any misspellings <!-- readthedocs-preview cable start --> ---- 📚 Documentation preview 📚: https://cable--498.org.readthedocs.build/en/498/ <!-- readthedocs-preview cable end -->
Whilst looking into merging the MPI master and worker drivers (#358), @micaeljtoliveira and I have identified that the model initialisation logic is duplicated across all drivers (serial and MPI master/worker). This change adds a preliminary initialisation routine to remove code duplication and improve code clarity across each of the drivers. The remaining initialisation code in the offline drivers will be moved to this routine in later pull requests to clean up the drivers further.
Checklist
📚 Documentation preview 📚: https://cable--440.org.readthedocs.build/en/440/