I have the following module defined:
module data_model_2
implicit none
! -------------------
! TYPE DEFINITION
! -------------------
type :: type1_record
integer :: month
integer :: day
integer :: year
integer :: hour
integer :: minute
integer :: second
integer :: value1
integer :: value2
end type
type :: timestamp_record
integer :: year
integer :: month
integer :: day
integer :: hour
integer :: minute
integer :: second
end type
end module
I have seen that modules shall use the clause contains. Is the clause needed when the module contains only derived types definition?
If so, where shall it be included, after or before the implicit none?
If the module would include also functions or procedures, shall the derived types definitions be before or after contains clause?
I am interested in knowing how this works in Fortran 95 and Fortran 03.