Closed yichengt900 closed 2 months ago
This sounds like a great approach. Thank you both. I think we should use the field table option sparingly knowing that it isn't the long-term solution we are looking for. It could, however, be useful for parameter sensitivity tests in the nearterm.
Considering our timeline of code cleanup is tight, I propose a simple solution to partially addresses issue #30. This PR adds a simple
do_not_log
option to theg_tracer_add_param
subroutine. The default behavior will output COBALT runtime parameters tostdout
, as shown in the example below:This simple option allows users can check of the COBALT runtime parameters in
stdout
to ensure they are sensible. Additionally, if users would like to overwrite runtime parameters, they can add their desired value for a specific parameter in thefield_table
(see belowfield_table
example) without recompiling the code.This PR does not change baseline answers.
Update:
After discussing with @theresa-morrison, our plan will be to make this simple stdout function live for users to start using it for parameter sanity checks. Meanwhile, @theresa-morrison will begin bringing blank MOM6-type parameter inputs/outputs. In the short to medium term, both methods will co-exist. This approach will give us time to transition gradually towards MOM6-type parameter input and output. @charliestock does this sound ok to you?