dc_scaledsec::ceiling Interface Reference

Private Member Functions

type(dc_scaled_sec) function dcscaledsec_ceiling_s (sclsec)
 

Detailed Description

Definition at line 191 of file dc_scaledsec.f90.

Member Function/Subroutine Documentation

◆ dcscaledsec_ceiling_s()

type(dc_scaled_sec) function dc_scaledsec::ceiling::dcscaledsec_ceiling_s ( type(dc_scaled_sec), intent(in)  sclsec)
private

Definition at line 2017 of file dc_scaledsec.f90.

2017  !
2018  ! DC_SCALED_SEC 型変数の整数値 (対象の数値以上で最小の整数) を返す.
2019  !
2020  ! Return an integer value (minimum integer over the given value)
2021  ! of a "DC_SCALED_SEC" variable
2022  !
2023  implicit none
2024  type(dc_scaled_sec), intent(in):: sclsec
2025  integer:: i
2026  logical:: flag_after_decimal
2027  continue
2028  result = sclsec
2029  flag_after_decimal = .false.
2030  do i = -1, imin, -1
2031  if ( result % sec_ary(i) /= 0 ) flag_after_decimal = .true.
2032  result % sec_ary(i) = 0
2033  end do
2034  if ( flag_after_decimal .and. .not. result % flag_negative ) then
2035  result = result + 1
2036  end if
2037 

The documentation for this interface was generated from the following file: