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))
83 use iso_fortran_env,
only: real32, real64
86 integer(I4B),
intent(in) :: iprec
88 real(dp),
intent(in) ::
value
90 integer(I4B) :: indx, nunit
91 real(real32) :: totimsngl, valsngl
92 real(real64) :: totimdbl, valdbl
96 nunit = obsrv%UnitNumber
98 indx = obsrv%indxObsOutput
99 obsoutput => obsoutputlist%Get(indx)
100 if (obsoutput%empty_line)
then
101 obsoutput%empty_line = .false.
103 totimsngl = real(
totim, real32)
104 write (nunit) totimsngl
105 elseif (iprec == 2)
then
107 write (nunit) totimdbl
112 valsngl = real(
value, real32)
113 write (nunit) valsngl
114 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