⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 time_fex.tex

📁 CCSM Research Tools: Community Atmosphere Model (CAM)
💻 TEX
字号:
% $Id: Time_fex.tex,v 1.1.6.1 2002/04/24 03:25:50 erik Exp $In the example below we demonstrate basic usage of the {\tt Time} class.  Fora detailed description of the {\tt Time} class interface, see Appendix A.In the example below we initialize a {\tt Time} and increment it by anumber of days and seconds.  Since no memory is allocated from the heapwhen a {\tt Time} is initialized, there is no need to deallocate a {\tt Time} object.\begin{verbatim}  use ESMF_TimeMgmtMod  type(ESMF_Time) :: startTime, endTime!-------------------------------------------------------------------------------    ! Initialize a time interval to 90 days and 1800 seconds. !-------------------------------------------------------------------------------  startTime = ESMF_TimeInit(90, 1800) !-------------------------------------------------------------------------------    ! Increment the time by 10 days and 1200 seconds.!-------------------------------------------------------------------------------         endTime = ESMF_TimeIncrement(startTime, 10, 1200)\end{verbatim}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -