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

Address compiler warnings for FV3 raised in an issue #324

Merged
merged 8 commits into from
Apr 17, 2024

Conversation

bensonr
Copy link
Contributor

@bensonr bensonr commented Feb 28, 2024

Fixes the compiler warnings in fv_regional_bc.F90, test_cases.F90, and module_diag_hailcast.F90 as identified by NCO. Unfortunately the logic in fv_nudge.F90 is too complex to easily address the goto identified herein.

Fixes #307

How Has This Been Tested?

No tests have yet been run. I will ask the relevant EPIC team members to test when ready.

Checklist:

Please check all whether they apply or not

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@DusanJovic-NOAA
Copy link
Contributor

Please remove -nowarn compiler flag from cmake/compiler_flags_Intel_Fortran.cmake

@bensonr
Copy link
Contributor Author

bensonr commented Feb 28, 2024

@DusanJovic-NOAA - compiler flag update completed and typo fixed in test_cases.F90

@XiaqiongZhou-NOAA
Copy link
Contributor

I see the commit to solve the same issue in AQM production branch: NOAA-EMC@d334488

@bensonr bensonr requested a review from DusanJovic-NOAA March 29, 2024 14:06
@DusanJovic-NOAA
Copy link
Contributor

ufs-weather-model regression test passed, see ufs-community/ufs-weather-model#2218

@bensonr
Copy link
Contributor Author

bensonr commented Apr 4, 2024

@DusanJovic-NOAA - I just merged the top of the dev/emc trunk to ensure any testing contains the updates from PR #320

@DusanJovic-NOAA
Copy link
Contributor

@bensonr Please sync this branch with dev/emc.

@bensonr
Copy link
Contributor Author

bensonr commented Apr 15, 2024

@DusanJovic-NOAA - should be done, but please check to ensure.

@DusanJovic-NOAA
Copy link
Contributor

@DusanJovic-NOAA - should be done, but please check to ensure.

Thanks, looks good.

zhanglikate added a commit to zhanglikate/GFDL_atmos_cubed_sphere that referenced this pull request Apr 30, 2024
commit 9711488
Author: Rusty Benson <[email protected]>
Date:   Wed Apr 17 08:41:41 2024 -0400

    Address compiler warnings for FV3 raised in an issue (NOAA-GFDL#324)

    * give istatus a value on exit from hailcast_init

    * fix issues with declared out variables in test_cases.F90

    * fix out of range default integers, eol spaces, and remove delz argument from set_regional_BCs in fv_regional_bc.F90

    * removed -nowarn from Intel compiler flags

    * added suggested ifdef to remove goto warning as per operations

commit 0301022
Author: Samuel Trahan (NOAA contractor) <[email protected]>
Date:   Fri Apr 12 20:02:26 2024 -0400

    nesting bug fixes for uninitialized variable in fv3 and incorrect tile number in fv3atm (NOAA-GFDL#331)

    * pass global tile up to model

    * bug fix: initialize hailwat variable

commit f060e85
Author: Jaymes Kenyon <[email protected]>
Date:   Fri Mar 1 22:23:31 2024 -0500

    Correct a bug in the HAILCAST diagnostic code (units issue) (NOAA-GFDL#320)
laurenchilutti pushed a commit to laurenchilutti/GFDL_atmos_cubed_sphere that referenced this pull request Jul 18, 2024
* give istatus a value on exit from hailcast_init

* fix issues with declared out variables in test_cases.F90

* fix out of range default integers, eol spaces, and remove delz argument from set_regional_BCs in fv_regional_bc.F90

* removed -nowarn from Intel compiler flags

* added suggested ifdef to remove goto warning as per operations
@laurenchilutti laurenchilutti mentioned this pull request Jul 18, 2024
6 tasks
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