source: XIOS/trunk/src/interface/c/icextract_to_axis.cpp @ 1542

Last change on this file since 1542 was 1542, checked in by oabramkina, 6 years ago

Replacing Boost's unordered_map and shared_pointer by its STL counterparts.

Two notes for Curie:

  • one can see the content of unordered_map with ddt only if XIOS has been compiled with gnu
  • XIOS will not compile any more with pgi (all available versions use old STL which are not up to the c++11 norms)
File size: 1.5 KB
RevLine 
[891]1/* ************************************************************************** *
2 *      Copyright © IPSL/LSCE, xios, Avril 2010 - Octobre 2011         *
3 * ************************************************************************** */
4
5#include <boost/multi_array.hpp>
[1542]6#include <memory>
[891]7
8#include "xios.hpp"
9
10#include "object_template.hpp"
11#include "group_template.hpp"
12#include "attribute_template.hpp"
13
14#include "icutil.hpp"
15#include "timer.hpp"
[981]16#include "extract_domain_to_axis.hpp"
[891]17
18extern "C"
19{
20// /////////////////////////////// Définitions ////////////////////////////// //
21
22   // ----------------------- Redéfinition de types ----------------------------
23
[981]24   typedef xios::CExtractDomainToAxis      * XExtractDomainToAxisPtr;
25   
[891]26   // ------------------------ Création des handle -----------------------------
[981]27   void cxios_extract_domain_to_axis_handle_create(XExtractDomainToAxisPtr * _ret, const char * _id, int _id_len)
[891]28   {
29      std::string id;
30      if (!cstr2string(_id, _id_len, id)) return;
31      CTimer::get("XIOS").resume() ;
[981]32      *_ret = xios::CExtractDomainToAxis::get(id);
[891]33      CTimer::get("XIOS").suspend() ;
34   }
35
36   // -------------------- Vérification des identifiants -----------------------
[981]37   void cxios_extract_domain_to_axis_valid_id(bool * _ret, const char * _id, int _id_len)
[891]38   {
39      std::string id;
40      if (!cstr2string(_id, _id_len, id)) return;
41
42      CTimer::get("XIOS").resume() ;
[981]43      *_ret = xios::CExtractDomainToAxis::has(id);
[891]44      CTimer::get("XIOS").suspend() ;
45   }
[981]46
[891]47} // extern "C"
Note: See TracBrowser for help on using the repository browser.