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

Specify the optional arguments passed to mpp_write_meta #25

Merged
merged 1 commit into from
Jun 13, 2014

Conversation

nikizadehgfdl
Copy link
Contributor

-The optional arguments to mpp_write_meta are not explicitly named (e.g.,foo(myunit) rather than foo(units=myunits)).
The problem with that is if someone adds a new argument of the same type to the mpp_write_meta (foo(newunits,units))
then the compiler gets confused and the result may be not what you want.
This senario has actually happened during testing for a FMS patch and caused crash.
-The solution is to always name the optional arguments being passed.

-The optional arguments to  mpp_write_meta are not explicitly  named (e.g.,foo(myunit) rather than foo(units=myunits)).
 The problem with that is if someone adds a new argument of the same type to the mpp_write_meta (foo(newunits,units))
 then the compiler gets confused and the result may be not what you want.
 This senario has actually happened during testing for a FMS patch and caused crash.
-The solution is to always name the optional arguments being passed.
@adcroft adcroft merged commit 05a25e0 into dev/master Jun 13, 2014
@nikizadehgfdl nikizadehgfdl deleted the user/nnz/specify_optional_arguments branch July 27, 2016 17:51
gustavo-marques added a commit to gustavo-marques/MOM6 that referenced this pull request Sep 1, 2017
raphaeldussin pushed a commit to raphaeldussin/MOM6 that referenced this pull request Dec 8, 2021
* +Rescale forcing arguments and revise ctrl_forcing

  This commit revisits the units of the input arguments to the various ocean-
only surfaces forcing routines, including:
- Rescaled the units of the time intervals passed to the various forcing
  routines to [T ~> s]
- Applied dimensional scaling to MOM_controlled_forcing.F90.  This code is
  not yet in active use, so these changes can not change answers, but it is
  now much closer to compliance with modern MOM6 standards, including improved
  documentation, and could be ready to try without too much more effort.
- Documented the remaining real variables in benchmark_initialization.F90,
  along with their units.

All answers are bitwise identical, but there are changes to the units of some
arguments in public interfaces.
MJHarrison-GFDL pushed a commit to MJHarrison-GFDL/MOM6 that referenced this pull request Aug 16, 2022
MJHarrison-GFDL pushed a commit to MJHarrison-GFDL/MOM6 that referenced this pull request Aug 16, 2022
This update allows a user to use a CPP macro to increase the max number of files larger than 1024.  Also, diag_manager will warn if the user sets the diag_manager_nml::max_files larger than allowed in mpp

Fixes mom-ocean#25
MJHarrison-GFDL pushed a commit to MJHarrison-GFDL/MOM6 that referenced this pull request Aug 16, 2022
A few fixes to allow update to have diag_manager use the max number of files from mpp to compile

Fixes mom-ocean#25
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