Last change
on this file since 537 was
537,
checked in by rlacroix, 10 years ago
|
Add a new attribute type for durations and use it for the context's timestep.
Note that the "xios_time" type and the "xios_set_timestep" procedure have been removed from the Fortran interface. Instead, the "xios_duration" type and the "xios_get_context_attr"/"xios_set_context_attr" procedures should now be used to get/set the timestep.
|
-
Property copyright set to
Software name : XIOS (Xml I/O Server) http://forge.ipsl.jussieu.fr/ioserver Creation date : January 2009 Licence : CeCCIL version2 see license file in root directory : Licence_CeCILL_V2-en.txt or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement) CNRS/IPSL (Institut Pierre Simon Laplace) Project Manager : Yann Meurdesoif yann.meurdesoif@cea.fr
-
Property svn:eol-style set to
native
|
File size:
993 bytes
|
Line | |
---|
1 | /* ************************************************************************** * |
---|
2 | * Copyright © IPSL/LSCE, xios, Avril 2010 - Octobre 2011 * |
---|
3 | * ************************************************************************** */ |
---|
4 | |
---|
5 | #include <boost/multi_array.hpp> |
---|
6 | #include <boost/shared_ptr.hpp> |
---|
7 | |
---|
8 | #include "xmlioserver.hpp" |
---|
9 | |
---|
10 | #include "attribute_template.hpp" |
---|
11 | #include "object_template.hpp" |
---|
12 | #include "group_template.hpp" |
---|
13 | |
---|
14 | #include "calendar_type.hpp" |
---|
15 | |
---|
16 | #include "icutil.hpp" |
---|
17 | #include "timer.hpp" |
---|
18 | #include "context.hpp" |
---|
19 | #include "context_client.hpp" |
---|
20 | |
---|
21 | extern "C" |
---|
22 | { |
---|
23 | // /////////////////////////////// Définitions ////////////////////////////// // |
---|
24 | |
---|
25 | void cxios_update_calendar(int step) |
---|
26 | { |
---|
27 | CTimer::get("XIOS").resume() ; |
---|
28 | xios::CContext* context = CContext::getCurrent() ; |
---|
29 | if (!context->hasServer) context->client->checkBuffers() ; |
---|
30 | context->updateCalendar(step) ; |
---|
31 | context->sendUpdateCalendar(step) ; |
---|
32 | CTimer::get("XIOS").suspend() ; |
---|
33 | } |
---|
34 | |
---|
35 | } // extern "C" |
---|
Note: See
TracBrowser
for help on using the repository browser.