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

Changes variables named unit to 'iunit' #1394

Merged
merged 44 commits into from
Nov 13, 2023

Conversation

abrooks1085
Copy link
Contributor

@abrooks1085 abrooks1085 commented Oct 17, 2023

Description
unit is a keyword that is used by Fortran to specify the logical unit associated with a file. In FMS, unit is often used as a variable name to store the value of this logical unit. This PR suggests changes to this variable name from unit to iunit, and does not include any directories/modules that are either no longer used and/or deprecated.

Fixes #1328

How Has This Been Tested?
autotools with gcc/13.1.0, netcdf/4.9.2, mpich/4.1.2, hdf5/1.14.1-2, libyaml/0.2.5

Checklist:

  • 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
  • New check tests, if applicable, are included
  • make distcheck passes

…_overlaps_fold_south, and set_single_overlap in mpp/include/mpp_domains_define.inc
…4D (2D to 4D for mpp_read_region) real arrays (KIND = 4 or 8), mpp_read_text, mpp_reat_meta, and mpp_get_tavg_info in mpp/include/mpp_io_read.inc
…as variable names in mpp/include/mpp_io_util.inc
@abrooks1085 abrooks1085 changed the title Keyword unit Changes variables named unit to 'iunit' Oct 17, 2023
bensonr
bensonr previously approved these changes Oct 19, 2023
@thomas-robinson
Copy link
Member

We discussed leaving the old IO alone because it is deprecated anyway, making these changes complicates things, and we said we weren't going to update it.

rem1776
rem1776 previously approved these changes Nov 2, 2023
time_manager/time_manager.F90 Outdated Show resolved Hide resolved
@abrooks1085
Copy link
Contributor Author

@thomas-robinson and @bensonr can you review this PR?

@bensonr
Copy link
Contributor

bensonr commented Nov 9, 2023

@abrooks1085 - I think we need to address the issues raised by @rem1776 and @thomas-robinson

mpp/mpp_memutils.F90 Outdated Show resolved Hide resolved
mpp/mpp_memutils.F90 Outdated Show resolved Hide resolved
time_manager/time_manager.F90 Outdated Show resolved Hide resolved
time_manager/time_manager.F90 Outdated Show resolved Hide resolved
@rem1776 rem1776 merged commit 0ede185 into NOAA-GFDL:main Nov 13, 2023
19 checks passed
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.

Change variables that have intrinsic function and keyword argument names to different descriptive names
4 participants