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

MOM6: +I/O interface changes, including a new file_type #1327

Merged
merged 8 commits into from
Feb 18, 2021

Commits on Feb 13, 2021

  1. +Added open_ASCII_file

      Added the new subroutine open_ASCII_file to open text files that can be read
    or written to using simple Fortran read or write statements.  This was
    previously handled via a common open_file call, but FMS2 is changing the
    interface for this routine, and creating this new file de-conflicts most the
    MOM6 calls to open_file from these altered interfaces.  The existing routine
    open_file is unaltered and works exactly as before.  A number of existing calls
    to open_file were also modified to use this new interface, in some cases where
    only the root_PE was writing, this includes altering the code so that only the
    root_PE actually opens the file.  All answers and output are bitwise identical.
    Hallberg-NOAA committed Feb 13, 2021
    Configuration menu
    Copy the full SHA
    27cd1c4 View commit details
    Browse the repository at this point in the history
  2. +Add rescale_comp_data & scale to MOM_write_field

      Added the overloaded interface rescale_comp_data to MOM_domains_infra to
    rescale the values in the computational domain of a 2-d, 3-d, or 4-d array by
    some factor without having to know the index convention that those arrays used.
    Also simplified some of the code in MOM_io_infra by making use of
    rescale_comp_data, and added a new optional scale argument to the various
    MOM_write_field routines.  All answers are bitwise identical, but there are new
    interfaces and optional arguments for existing routines.
    Hallberg-NOAA committed Feb 13, 2021
    Configuration menu
    Copy the full SHA
    ae9995c View commit details
    Browse the repository at this point in the history
  3. Simplify write_ocean_geometry_file

      Use the new scale argument to MOM_write_field to simplify write_vertgrid_file
    and write_ocean_geometry_file.  All output and answers are bitwise identical.
    Hallberg-NOAA committed Feb 13, 2021
    Configuration menu
    Copy the full SHA
    76b9ffa View commit details
    Browse the repository at this point in the history
  4. +Use file_type as the handle for I/O

      Added and used the file_type as the handle for input and output, changing from
    using an integer.  This changes the type of one of the required arguments to
    write_field, write_MOM_field, create_file, reopen_file, get_file_info,
    get_file_times, get_file_fields, write_metadata_axis and write_metadata_field,
    and added new variants of open_file, close_file and flush_file using this new
    type.  Also added the new routine file_is_open.  All answers are bitwise
    identical, but there are changes to multiple I/O interfaces.
    Hallberg-NOAA committed Feb 13, 2021
    Configuration menu
    Copy the full SHA
    21c2696 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2021

  1. +Add optional scale argument to read_variable

      Added the new optional scale argument to the real versions of the
    read_variable routines.  All answers are bitwise identical, but there are
    new optional arguments to public routines.
    Hallberg-NOAA committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    45ce019 View commit details
    Browse the repository at this point in the history
  2. +Revised the depth list type for standard I/O

      Revised the depth list type used in MOM_sum_output to accommodate I/O using
    ordinary routines, and to make the code creating, reading and writing it
    potentially separable from the MOM_sum_output module by avoiding the use of the
    MOM_sum_output control structure in most of the routines.  Also changed the
    index 'l' to 'li' in some places to avoid having it misread as '1'.  All answers
    are bitwise identical but there are changes in some subroutine arguments.
    Hallberg-NOAA committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    14b1269 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1f02e6c View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2021

  1. Configuration menu
    Copy the full SHA
    95f6711 View commit details
    Browse the repository at this point in the history