-
Notifications
You must be signed in to change notification settings - Fork 133
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
Add pio_finalize calls for CICE history and restart files #995
Changes from 1 commit
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 |
---|---|---|
|
@@ -27,6 +27,7 @@ module ice_pio | |
|
||
public ice_pio_init | ||
public ice_pio_initdecomp | ||
public ice_pio_finalize | ||
public ice_pio_check | ||
|
||
#ifdef CESMCOUPLED | ||
|
@@ -529,6 +530,19 @@ subroutine ice_pio_initdecomp_4d (ndim3, ndim4, iodesc, precision) | |
end subroutine ice_pio_initdecomp_4d | ||
|
||
|
||
!================================================================================ | ||
|
||
! PIO Finalize | ||
|
||
subroutine ice_pio_finalize() | ||
|
||
integer(kind=int_kind) :: ierr | ||
character(len=*), parameter :: subname = '(ice_pio_finalize)' | ||
|
||
call pio_finalize(ice_pio_subsystem,ierr) | ||
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. Mostly when there is an ierr code returned from a pio function, elsewhere there is a
before the call, then the ierr is checked with 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. Good catch, I've updated the implementation. |
||
|
||
end subroutine ice_pio_finalize | ||
|
||
!================================================================================ | ||
|
||
! PIO Error handling | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
histfreq = 'm','h','x','x','x' | ||
histfreq_n = 1,1,1,1,1 | ||
histfreq_base = 'zero','zero','zero','zero','zero' | ||
write_ic = .true. | ||
f_aice = 'mh' | ||
f_hi = 'hm' | ||
f_hs = 'mh' | ||
f_Tsfc = 'mh' |
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.
This is handled elsewhere for CESMCOUPLED
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.
Good catch, I've updated the implementation.