35 character(len=*),
intent(in) :: fmtc
38 real(dp),
intent(in) ::
value
42 character(len=20) :: ctotim
43 character(len=50) :: cval
46 nunit = obsrv%UnitNumber
48 indx = obsrv%indxObsOutput
49 obsoutput => obsoutputlist%Get(indx)
50 if (obsoutput%empty_line)
then
51 obsoutput%empty_line = .false.
52 write (ctotim,
'(G20.13)')
totim
57 write (cval, fmtc)
value
58 write (nunit,
'(3a)', advance=
'NO') &
59 trim(adjustl(ctotim)),
',', trim(adjustl(cval))
80 use iso_fortran_env,
only: real32, real64
83 integer(I4B),
intent(in) :: iprec
85 real(dp),
intent(in) ::
value
87 integer(I4B) :: indx, nunit
88 real(real32) :: totimsngl, valsngl
89 real(real64) :: totimdbl, valdbl
93 nunit = obsrv%UnitNumber
95 indx = obsrv%indxObsOutput
96 obsoutput => obsoutputlist%Get(indx)
97 if (obsoutput%empty_line)
then
98 obsoutput%empty_line = .false.
100 totimsngl = real(
totim, real32)
101 write (nunit) totimsngl
102 elseif (iprec == 2)
then
104 write (nunit) totimdbl
109 valsngl = real(
value, real32)
110 write (nunit) valsngl
111 elseif (iprec == 2)
then
This module contains simulation constants.
integer(i4b), parameter lenbigline
maximum length of a big line
integer(i4b), parameter lenobsname
maximum length of a observation name
This module defines variable data types.
This module contains the derived types ObserveType and ObsDataType.
This module defines the derived type ObsOutputListType.
This module defines the derived type ObsOutputType.
This module contains the ObsUtilityModule module.
subroutine, public write_fmtd_obs(fmtc, obsrv, obsOutputList, value)
@ brief Write formatted observation
subroutine, public write_unfmtd_obs(obsrv, iprec, obsOutputList, value)
@ brief Write unformatted observation
real(dp), pointer, public totim
time relative to start of simulation