Check output setting of a variable . More...
Go to the source code of this file.
Functions/Subroutines | |
| logical function | historyautochkoutput (varname) |
| logical function | historyautochkoutputtiming (time, varname) |
Check output setting of a variable
.
Definition in file historyautochkoutput.f90.
| logical function historyautochkoutput | ( | character(*), intent(in) | varname | ) |
Check output setting of a variable
If output setting of varname is valid, .true. is returned. If output setting of varname is invalid, .false. is returned.
If initialization with HistoryAutoCreate is not done yet, .false. is returned. If varname is invalid, .false. is returned.
| [in] | varname | 変数の名前. Variable name. |
Definition at line 39 of file historyautochkoutput.f90.
References gtool_historyauto_internal::initialized, gtool_historyauto_internal::numvars, gtool_historyauto_internal::output_valid_vars, and gtool_historyauto_internal::varname_vars.
| logical function historyautochkoutputtiming | ( | real(dp), intent(in) | time, |
| character(*), intent(in) | varname | ||
| ) |
Check output timing of a variable
If varname is output on time, .true. is returned.
Please use this function as follows.
if ( HistoryAutoChkOutputTiming( time, var ) ) then <some operation ...> end if call HistoryAutoPut( time, var, data )
Following usage does not return correct values.
do i = 1, 10 write(*,*) HistoryAutoChkOutputTiming( i * timestep, var ) end do
If initialization with HistoryAutoCreate is not done yet, .false. is returned. If varname is invalid, .false. is returned.
| [in] | time | データの時刻. Time of data. |
| [in] | varname | 変数の名前. Variable name. |
Definition at line 149 of file historyautochkoutput.f90.
References dc_types::dp, gtool_historyauto_internal::histaddvar_vars, gtool_historyauto_internal::initialized, gtool_historyauto_internal::interval_time_vars, gtool_historyauto_internal::newfile_createtime_vars, gtool_historyauto_internal::newfile_inttime_vars, gtool_historyauto_internal::numvars, gtool_historyauto_internal::origin_time_vars, gtool_historyauto_internal::output_valid_vars, gtool_historyauto_internal::prev_outtime_vars, gtool_historyauto_internal::terminus_time_vars, gtool_historyauto_internal::varname_vars, and gtool_historyauto_internal::zero_time.