-
Notifications
You must be signed in to change notification settings - Fork 227
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
Commits on Feb 13, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for 27cd1c4 - Browse repository at this point
Copy the full SHA 27cd1c4View commit details -
+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.
Configuration menu - View commit details
-
Copy full SHA for ae9995c - Browse repository at this point
Copy the full SHA ae9995cView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 76b9ffa - Browse repository at this point
Copy the full SHA 76b9ffaView commit details -
+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.
Configuration menu - View commit details
-
Copy full SHA for 21c2696 - Browse repository at this point
Copy the full SHA 21c2696View commit details
Commits on Feb 15, 2021
-
+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.
Configuration menu - View commit details
-
Copy full SHA for 45ce019 - Browse repository at this point
Copy the full SHA 45ce019View commit details -
+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.
Configuration menu - View commit details
-
Copy full SHA for 14b1269 - Browse repository at this point
Copy the full SHA 14b1269View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f02e6c - Browse repository at this point
Copy the full SHA 1f02e6cView commit details
Commits on Feb 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 95f6711 - Browse repository at this point
Copy the full SHA 95f6711View commit details