-
Notifications
You must be signed in to change notification settings - Fork 375
MPAS MUSICA namelist option for MICM configuration #1376
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,9 +61,10 @@ subroutine musica_init(filename_of_micm_configuration, & | |
|
|
||
| type(error_t) :: error | ||
| type(string_t) :: micm_version | ||
|
|
||
| type(string_t) :: description | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't look like the |
||
| ! TEMPORARY: Hard-coded options for the MICM solver | ||
| integer :: solver_type = RosenbrockStandardOrder | ||
| integer :: i_species | ||
|
|
||
| micm_version = get_micm_version() | ||
|
|
||
|
|
@@ -77,6 +78,12 @@ subroutine musica_init(filename_of_micm_configuration, & | |
| state => micm%get_state(number_of_grid_cells, error) | ||
| if (has_error_occurred(error, error_message, error_code)) return | ||
|
|
||
| associate(map => state%species_ordering) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Although it's completely standard Fortran, it might be worth avoiding an
So it might prevent compilation issues and lead to clearer code if we provide an explicit declaration of |
||
| do i_species = 1, map%size( ) | ||
| call mpas_log_write('MICM species: ' // map%name(i_species)) | ||
| end do | ||
| end associate | ||
|
|
||
| end subroutine musica_init | ||
|
|
||
| !------------------------------------------------------------------------ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a specific reason for eliminating the
onlyclause for thisusestatement?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see now that this was probably to get access to
MPAS_LOG_CRIT. In that case, perhaps it would be better to addMPAS_LOG_CRITto theuse, onlystatement?