Download XIOS User Guide - Forge
Transcript
Chapter 1 Calendar 1.1 How to dene a calendar XIOS has an embedded calendar module which needs to be congured before you can run your simulation. Only the calendar type and the time step used by your simulation are mandatory to have a well dened calendar. For example, a minimal calendar denition could be: from the XML conguration le: <? xml version=" 1 . 0 " ?> < s i m u l a t i o n> <c o n t e x t i d=" t e s t "> <c a l e n d a r t y p e=" G r e g o r i a n " t i m e s t e p=" 1 . 5 h " /> </ c o n t e x t> </ s i m u l a t i o n> from the Fortran interface: ! ... ! ... ! Context TYPE( x i o s _ c o n t e x t ) Ç Ç CALL CALL CALL Ç ctx_hdl initialization corresponding of :: the ommited , section reference of see this the user manual and manual xios_get_handle ( " t e s t " , ctx_hdl ) xios_set_current_context ( ctx_hdl ) xios_define_calendar ( =1.5* xios_hour ) type=" G r e g o r i a n " , timestep The calendar type denition is done once and for all, either from the XML conguration le or the Fortran interface, and cannot be modied. However there 1