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

Fix for compiling with openmp #48

Merged
merged 1 commit into from
Sep 12, 2014
Merged

Fix for compiling with openmp #48

merged 1 commit into from
Sep 12, 2014

Conversation

Zhi-Liang
Copy link
Contributor

Fix for compiling with openmp

@nikizadehgfdl nikizadehgfdl merged commit f7abf68 into dev/master Sep 12, 2014
nikizadehgfdl pushed a commit to nikizadehgfdl/MOM6 that referenced this pull request Oct 9, 2017
- When I was developing KPP I was using it in global_ALE and thought
  to run it in the layer version passively. In doing so I also ran it
  in the z version passively, as pointed out in issue mom-ocean#48.
- I've turned on ePBL in the z version since it will probably make
  the z and layer models more consistent.
- Removed all the KPP related diagnostics also.
- Closes mom-ocean#48.
- Only changes answers in global_ALE/z.
gustavo-marques added a commit to gustavo-marques/MOM6 that referenced this pull request Apr 18, 2018
…tion

Fixes a bug and renames diag. fields in MOM_cvmix_conv
Hallberg-NOAA pushed a commit to Hallberg-NOAA/MOM6 that referenced this pull request Jan 8, 2022
…ean#48)

* Refresh attempt to get rid of NetCDF calls

* Fix comments

* Set netCDF attrs in MOM_horizontal_regridding

This patch sets the following netCDF attributes in the function
`horiz_interp_and_extrap_tracer_record` via `read_attribute`.

* `missing_value` (as `_FillValue`)
* `scale_factor`
* `add_offset`

This resolves some issues related to uninitialized values.

* read_variable_2d in horizontal remapping

This patch extends the `read_variable` interface to include 2d array
support, in order to facilitate domainless I/O via netCDF calls.

This is far from the best implementation (e.g. read_variable_2d
introduces another `broadcast` alongside the original one in the
horizontal regridding) but it addresses the immediate issues with
`MOM_read_data()`.

* set default scale factor to 1

* add missing start/count arguments

* Update MOM_io.F90

* Manage optional args in read_variable_2d

This patch modifies read_variable_2d so that the size() tests of the
optional arguments are applied before the call to nf90_get_var.

The tests are also wrapped inside present() flags to avoid checking
unassigned variables.

Thanks to Robert Hallberg for the suggestions.

Co-authored-by: Matthew Harrison <Matthew.Harrison@noaa.gov>
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.

2 participants