Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Variables
Type
Visibility
Attributes
Name
Initial
integer(kind=int64),
private
::
doe
integer(kind=int64),
private
::
doy
integer(kind=int64),
private
::
era
integer(kind=int64),
private
::
mp
integer(kind=int64),
private
::
yoe
integer(kind=int64),
private
::
z
Source Code
pure subroutine civil_from_days(days,y,m,d)!! Inverse of `days_from_civil`.integer(int64),intent(in)::daysinteger(int64),intent(out)::yinteger(int64),intent(out)::minteger(int64),intent(out)::dinteger(int64)::z,era,doe,yoe,doy,mpz=days+DAYS_EPOCH_SHIFTif(z>=0_int64)thenera=z/146097_int64elseera=(z-146096_int64)/146097_int64end ifdoe=z-era*146097_int64! [0, 146096]yoe=(doe-doe/1460_int64+doe/36524_int64-doe/146096_int64)/365_int64y=yoe+era*400_int64doy=doe-(365_int64*yoe+yoe/4_int64-yoe/100_int64)! [0, 365]mp=(5_int64*doy+2_int64)/153_int64! [0, 11]d=doy-(153_int64*mp+2_int64)/5_int64+1_int64! [1, 31]if(mp<10_int64)thenm=mp+3_int64elsem=mp-9_int64end if if(m<=2_int64)y=y+1_int64end subroutine civil_from_days