Changeset 537 for XIOS/trunk/src/interface/fortran/idate.F90
- Timestamp:
- 12/11/14 14:32:37 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/fortran/idate.F90
r532 r537 10 10 END TYPE txios(date) 11 11 12 TYPE txios(time)13 REAL(kind = 8) :: year=0, month=0, day=0, hour=0, minute=0, second=014 END TYPE txios( time)12 TYPE, BIND(C) :: txios(duration) 13 REAL(kind = C_DOUBLE) :: year=0, month=0, day=0, hour=0, minute=0, second=0, timestep=0 14 END TYPE txios(duration) 15 15 16 16 INTERFACE ! Ne pas appeler directement/Interface FORTRAN 2003 <-> C99 17 18 SUBROUTINE cxios_set_timestep(ts_year, ts_month, ts_day, ts_hour, ts_minute, ts_second) BIND(C)19 IMPORT C_DOUBLE20 REAL (kind = C_DOUBLE), VALUE :: ts_year, ts_month , ts_day , &21 ts_hour, ts_minute, ts_second22 END SUBROUTINE cxios_set_timestep23 17 24 18 SUBROUTINE cxios_update_calendar(step) BIND(C) … … 26 20 INTEGER (kind = C_INT), VALUE :: step 27 21 END SUBROUTINE cxios_update_calendar 28 22 29 23 END INTERFACE 30 24 31 25 CONTAINS ! Fonctions disponibles pour les utilisateurs. 32 26 33 34 SUBROUTINE xios(set_timestep)(timestep)35 IMPLICIT NONE36 TYPE(txios(time)), INTENT(IN):: timestep37 38 CALL cxios_set_timestep(timestep%year, timestep%month , timestep%day, &39 timestep%hour, timestep%minute, timestep%second)40 41 END SUBROUTINE xios(set_timestep)42 43 44 45 27 SUBROUTINE xios(update_calendar)(step) 46 28 IMPLICIT NONE … … 52 34 END IF 53 35 CALL cxios_update_calendar(step) 54 55 36 END SUBROUTINE xios(update_calendar) 56 37 57 58 38 END MODULE IDATE
Note: See TracChangeset
for help on using the changeset viewer.