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

bug-fix: developer test quickbuilds #466

Merged
merged 3 commits into from
Apr 11, 2023
Merged

bug-fix: developer test quickbuilds #466

merged 3 commits into from
Apr 11, 2023

Conversation

hkershaw-brown
Copy link
Member

Description:

Fixes the developer_tests quickbuild.shs. Explicit model_mod.f90 given for each test, since we now have a template for 1d and 3d models.

Fixes bug described in #408

Fixes issue

fixes #408

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Documentation changes needed?

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

Tests

Please describe any tests you ran to verify your changes:

  • compiled and ran the developer_tests.
    Note you'll need to link to rttov for the forward_operator tests.

Checklist for merging

  • Updated changelog entry
  • Documentation updated
  • Update conf.py

Checklist for release

  • Merge into main
  • Create release from the main branch with appropriate tag
  • Delete feature-branch

Testing Datasets

  • Dataset needed for testing available upon request
  • Dataset download instructions included
  • No dataset needed

There are several template model_mod.f90 in models/template
This fix picks a particular model_mod.f90 for each developer test.
Fixes #408

developer test quickbuilds

Added LOCATION back into developer test quickbuilds
Copy link
Contributor

@achauphan achauphan left a comment

Choose a reason for hiding this comment

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

Everything looks good!

From what I am understanding here, some of these developer_tests do not need a specific model_mod.f90 interface, so we are simply telling their quickbuild.sh to use the minimal template model_mod, which is now being set to the sourced build functions' EXTRA variable, except for the obs_sequence tests which needs the 1D template. However, this was broken after the introduction of multiple template types such as 1D and 3D.

MODEL="template"
LOCATION="threed_sphere"
MODEL="none"
EXTRA=$DART/models/template/model_mod.f90
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we use EXTRA=$DART/models/template/model_mod.f90 as opposed to template/threed_model_mod.f90?

Copy link
Contributor

Choose a reason for hiding this comment

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

Note: template/model_mod.f90 and template/threed_model_mod.f90 are identical files. template/model_mod.f90 was added as a quick fix to issue #409 in which the observation converter quickbuilds required a models/template/model_mod.f90 file. There is no difference in execution between using either filename in the quickbuild.sh "EXTRA" field; both have been tested to work and produce identical results in the developer tests. For this PR, I'm going to change it to template/threed_model_mod.f90 for readability and consistency with the use of template/oned_model_mod.f90

@mjs2369 mjs2369 merged commit 2f6ed97 into main Apr 11, 2023
@mjs2369 mjs2369 deleted the devel-tests-quickbuild branch April 11, 2023 17:40
@mjs2369
Copy link
Contributor

mjs2369 commented Apr 11, 2023

Merged and released with PR #464

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.

Developer tests directory
3 participants