-
Notifications
You must be signed in to change notification settings - Fork 131
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
C-grid Code Cleanup #660
Comments
since |
I don't think trim has any impact except in write statements. The length of a string is defined in it's declaration. The other thing is when Fortran is doing string compare, I believe it pads the two strings to the same length with spaces and compares those. So (trim(grid_system) == 'CD') would behave exactly the same as (grid_system == 'CD') regardless of the length of grid_system. It could be that one or the other performs better, but I suspect that will have little impact on the overall code performance. Doing something like grid_system = trim(grid_system) has no impact because while trim(grid_system) returns a string with the last character non-space and appropriate length, as soon as you do grid_system=trim(grid_system), grid_system is padded with blanks again. From the fortran handbook, 7.3.1.2
So, we may want to unify our string compares in the model, it's unlikely to have any impact on performance or result. |
I was wondering about the grid_type versus kmt_type for setmask. The option setmask is for prescribed ice or single column mode. It kind of replaces the old latlon option. So, maybe we need a different flag? |
@apcraig Most of this list has been done -- are there items here that probably won't be done before the next release, and could be moved into a new issue to be addressed later? The important one in my opinion is the last one -- providing sample output. |
I agree, I think we've done the most important tasks on this list and the most important thing prior to release is validation at this point. I think we could release now-ish once we're happy with the results. I will have a look at the deltamin and dynamics driver refactor although we've had some refactoring on the dynamics driver already. But I think we envision a more general refactor at some point. We may need to create a couple new issues when we close #660. We should probably do that during the release period. |
- Rename cicedynB directory to cicedyn (See CICE-Consortium#660) - Add softlink for cicedynB - Update path in cice.build - Update documentation - Fix sig1, sig2, sigP grid on history file (See CICE-Consortium#789) - Fix Fortran warning messages for long lines - Fix test suite order in cice.setup - Update test suites to reduce bfbcomp failures due to time outs - Add tests to first_suite to help - Add dyneap and dynpicard decomp tests, add set_nml.dyneap - Add TAB check in github actions in all .F90 and .c files github actions will fail if source files have TABs
For deltamin cleanup, we currently have
I assume we want a single deltamin variable? It would be set to 1e-11 by default in the code and in namelist and it would change to 2e-9 in namelist when kdyn=3 is set in the options? And nothing inside the code would modify deltamin depending on kdyn. Also, are we happy with the current values or does that also need to change? |
Re deltamin, see #712:
|
- Rename cicedynB directory to cicedyn (See CICE-Consortium#660) - Add softlink for cicedynB - Update path in cice.build - Update documentation - Fix sig1, sig2, sigP grid on history file (See CICE-Consortium#789) - Fix Fortran warning messages for long lines - Fix test suite order in cice.setup - Update test suites to reduce bfbcomp failures due to time outs - Add tests to first_suite to help - Add dyneap and dynpicard decomp tests, add set_nml.dyneap - Add TAB check in github actions in all .F90 and .c files github actions will fail if source files have TABs
* Rename cicedynB to cicedyn, update test suites - Rename cicedynB directory to cicedyn (See #660) - Add softlink for cicedynB - Update path in cice.build - Update documentation - Fix sig1, sig2, sigP grid on history file (See #789) - Fix Fortran warning messages for long lines - Fix test suite order in cice.setup - Update test suites to reduce bfbcomp failures due to time outs - Add tests to first_suite to help - Add dyneap and dynpicard decomp tests, add set_nml.dyneap - Add TAB check in github actions in all .F90 and .c files github actions will fail if source files have TABs * Remove tabs * Update documentation * Update documentation
With release of CICE6.1.4, most tasks are complete. Outstanding tasks have been given their own issue. Closing now. |
key:
needs to be done in cice-consortium/main before cgrid fork
likely changes answers on B grid
style and consistency
- caps for TUNE (i.e. Tbu)
- do we want to add U or T to existing variables?
- do we want to change tmask to maskT? tarea to areaT? etc
if (grid_ice == ‘CD’) then
andselect case (trim(grid_ice))
. Do this consistently.bugs
atm_data_dir = '/glade/u/home/tcraig/cice_data/'
in ice_in, needs to be 'unknown'better approaches
testing
documentation
The text was updated successfully, but these errors were encountered: