Skip to content

Commit

Permalink
Add changes so that single precision history output is not an option
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Oct 18, 2018
1 parent 21cd05d commit b08f548
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cime_config/namelist_definition_mosart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,13 @@
<type>integer(6)</type>
<category>history</category>
<group>mosart_inparm</group>
<valid_values>1,2</valid_values>
<valid_values>1</valid_values>
<values>
<value>2</value>
<value>1</value>
</values>
<desc>
Per tape series history file density (i.e. output precision)
1=double precision, 2=single precision
1=double precision, 2=single precision (NOT working)
</desc>
</entry>

Expand Down
2 changes: 1 addition & 1 deletion src/riverroute/RtmHistFile.F90
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module RtmHistFile
!
integer :: ni
integer, public :: &
rtmhist_ndens(max_tapes) = 2 ! namelist: output density of netcdf history files
rtmhist_ndens(max_tapes) = 1 ! namelist: output density of netcdf history files
integer, public :: &
rtmhist_mfilt(max_tapes) = 30 ! namelist: number of time samples per tape
integer, public :: &
Expand Down
2 changes: 1 addition & 1 deletion src/riverroute/RtmIO.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1827,7 +1827,7 @@ subroutine ncd_io_real_var1(varname, data, dim1name, &
call pio_setframe(ncid,vardesc, int(nt,kind=PIO_Offset_kind))
end if
if(xtype == ncd_float) then
call pio_write_darray(ncid, vardesc, iodesc_plus%iodesc, real(data, kind=r4), status, fillval=real(spval,kind=r4))
call shr_sys_abort( subname//' error: Attempt to write out single-precision data which is current NOT implemented (see issue #18)' )
else
call pio_write_darray(ncid, vardesc, iodesc_plus%iodesc, data, status, fillval=spval)
endif
Expand Down

0 comments on commit b08f548

Please sign in to comment.