Oasis3 4.0.2
|
00001 module mod_psmile_date_and_time 00002 USE mod_kinds_model 00003 !This data structure contains the initial date of the simulation, respectively 00004 ! the experiment. 00005 !The meanings of the fields are 00006 ! 1 fullyear like 1978 00007 ! 2 month 00008 ! 3 day 00009 ! 4 hour 00010 ! 5 minutes 00011 ! 6 seconds 00012 00013 integer(kind=ip_intwp_p)::ig_initial_date(1:6) 00014 logical::lg_date_is_initialized 00015 00016 contains 00017 00018 subroutine psmile_get_initial_date(id_datetime,id_error) 00019 !------------------------------------------------------------------------ 00020 USE mod_kinds_model 00021 implicit none 00022 integer(kind=ip_intwp_p),intent(out)::id_datetime(1:6),id_error 00023 00024 !This is an initialization for test purposes only 00025 ig_initial_date(1)=2002 00026 ig_initial_date(2)=11 00027 ig_initial_date(3)=8 00028 ig_initial_date(4)=13 00029 ig_initial_date(5)=7 00030 ig_initial_date(6)=30 00031 !End of test initialization 00032 00033 id_error =0 00034 00035 if(lg_date_is_initialized) then 00036 id_datetime=ig_initial_date 00037 else 00038 id_error=-999 00039 endif 00040 00041 end subroutine psmile_get_initial_date 00042 00043 end module mod_psmile_date_and_time