source: CPL/oasis3/trunk/src/lib/psmile/src/mod_psmile_date_and_time.f90 @ 1677

Last change on this file since 1677 was 1677, checked in by aclsce, 12 years ago

Imported oasis3 (tag ipslcm5a) from cvs server to svn server (igcmg project).

File size: 1.2 KB
Line 
1       module mod_psmile_date_and_time
2         USE mod_kinds_model
3!This data structure contains the initial date of the simulation, respectively
4! the experiment.
5!The meanings of the fields are
6!       1       fullyear like 1978
7!       2       month
8!       3       day
9!       4       hour
10!       5       minutes
11!       6       seconds
12
13         integer(kind=ip_intwp_p)::ig_initial_date(1:6)
14         logical::lg_date_is_initialized
15
16       contains
17
18         subroutine psmile_get_initial_date(id_datetime,id_error)
19!------------------------------------------------------------------------
20           USE mod_kinds_model
21           implicit none
22           integer(kind=ip_intwp_p),intent(out)::id_datetime(1:6),id_error
23
24           !This is an initialization for test purposes only
25           ig_initial_date(1)=2002
26           ig_initial_date(2)=11 
27           ig_initial_date(3)=8
28           ig_initial_date(4)=13
29           ig_initial_date(5)=7
30           ig_initial_date(6)=30
31           !End of test initialization
32
33           id_error =0
34
35           if(lg_date_is_initialized) then
36             id_datetime=ig_initial_date
37           else
38             id_error=-999
39           endif
40
41         end subroutine psmile_get_initial_date
42
43       end module mod_psmile_date_and_time
Note: See TracBrowser for help on using the repository browser.