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

master update from dtc/develop 2019/12/17 #246

Merged

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Dec 17, 2019

This PR contains:

  • bugfix Develop #2 for travis test in schemes/check/ccpp_prebuild_config.py
  • optimization/cleanup: only compile the files that are needed when static build is selected
  • improved handling of builddir/basedir argument to ccpp_prebuild.py and metadata2html.py
  • improved error handling and diagnostic output for ccpp_prebuild.py

Associated PRs:
NOAA-EMC/GFDL_atmos_cubed_sphere#11
#246
NCAR/ccpp-physics#372
NOAA-EMC/fv3atm#30
ufs-community/ufs-weather-model#18

For regression testing, see ufs-community/ufs-weather-model#18.

climbfuji and others added 14 commits November 4, 2019 09:29
Bugfix #2 for travis test in schemes/check/ccpp_prebuild_config.py
…e_unit_conversion

Bugfix libxml2 library location macOS, logging message for unit conversions, bugfix for metadata2html.py
…nd basedir/builddir argument, use default value from CCPP prebuild config if not provided on the command line (ccpp_prebuild.py), always use default value from CCPP prebuild config (metadata2html.py)
dtc/develop: update logic around builddir (ccpp_prebuild.py) / basedir (metadata2html.py)
…_mode

dtc/develop: compile only required source files in static mode
Copy link
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

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

Just a question for my education.

@@ -183,7 +183,7 @@ class API(object):
{suite_switch}
else

write({ccpp_var_name}%errmsg,'(*(a))'), 'Invalid suite ' // trim(suite_name)
write({ccpp_var_name}%errmsg,'(*(a))') 'Invalid suite ' // trim(suite_name)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I do not understand the asterisk here. It appears to be something l like a 'general repeat count' but my reading of the standard says that repeat counts are always positive literal integers. On the other hand, Nag accepts this syntax, even for strict Fortran 2003 processing so I must be missing something. Do you have a format description of this syntax anywhere?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, I don't. I have seen the same as you, it works with all compilers I have tested and with N=1...MANY string variables.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Right. Nag is the gold standard when it comes to being really picky about Fortran standards so the fact that it accepts this syntax means I am missing something. I have to go find a Fortran uber-expert . . .

Copy link
Contributor

@llpcarson llpcarson left a comment

Choose a reason for hiding this comment

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

Approved

Copy link
Collaborator

@grantfirl grantfirl left a comment

Choose a reason for hiding this comment

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

Approved.

@climbfuji climbfuji merged commit 7ab419e into NCAR:master Jan 6, 2020
@climbfuji climbfuji deleted the ncar_master_update_from_dtc_develop_20191217 branch June 27, 2022 03:05
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.

4 participants