-
Notifications
You must be signed in to change notification settings - Fork 167
Print version of DART when running 'filter' #983
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
Conversation
|
I'm struggling to get the CI build checks to pass, which is strange because it builds on my machine fine. It looks like it's unable to find the file containing the function that prints the version? |
|
Thanks @tyiop794! It might be a week or two before we look at this because there are several pull requests in the queue. |
|
Backed up this branch here: https://github.com/hkershaw-brown/DART/tree/747-dart-version |
b6fc7d0 to
a74da6e
Compare
|
Hi Kamil, this is nice. There are a couple of things: Currently this is collecting all .F90 files in the repo. There is a single .F90 in the GSI converter that gets preprocessed with its own cpp flags. DART/observations/obs_converters/GSI2DART/work/quickbuild.sh Lines 30 to 32 in e08756e
I actually think we should collect all .F90 files (see #696) but I am thinking for this pull request, we should be conservative add the single file version_mod.F90 to the list of source files. That way if people are making use of there own .F90 to .f90 we do not break their builds. Cheers, |
|
Also mkmf has the svn Line 46 in e08756e
so the Makefile created has this on the first line; I wonder if we can use opt_c to set the version in the Makefile. |
|
@hkershaw-brown todo run build everything on this pull request. |
hkershaw-brown
left a comment
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.
Super helpful Kamil, thanks for working on this!
Finally got to reviewing it, Approved!
This allows you to set CPPDEFS in the mkmf.template https://github.com/NCAR/DART/pull/983/changes#r2651647412
quickbuild.sh scripts all call buildpreprocess -> dartversion But added call to dartversion in buildXfunctions in case for some reason people comment out the buildpreprocess call.
rather than collecting all .F90 files. see https://github.com/NCAR/DART/pull/983/changes#r2653506219 and NCAR#696. Probably should collect all .F90 files, but currently there are .F90 clm source mods (not compiled into dart) and GSI files (with there own preprocessing options).
More descriptive that it is the version that is unknown rather than "Program Filter unknown"
b35d978 to
ae7dac2
Compare
Description:
DART prints the version (retrieved using 'git describe --dirty --tags') when it is run.
Fixes issue
fixes #747
Types of changes
Documentation changes needed?
Tests
Please describe any tests you ran to verify your changes.
I have run the filter program multiple times. However, the tags do not seem to have transferred over to my fork, so in my case DART only prints 'unknown'. I'm still not sure how I would transfer those tags over.
Checklist for merging
Checklist for release
Testing Datasets