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

Last change on this file since 1542 was 1542, checked in by oabramkina, 2 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
Line 
1/* ************************************************************************** *
2 *      Copyright © IPSL/LSCE, xios, Avril 2010 - Octobre 2011         *
3 * ************************************************************************** */
4
5#include <boost/multi_array.hpp>
6
7#include "xios.hpp"
8
9#include "object_template.hpp"
10#include "group_template.hpp"
11#include "attribute_template.hpp"
12
13#include "icutil.hpp"
14#include "timer.hpp"
15#include "compute_connectivity_domain.hpp"
16
17extern "C"
18{
19// /////////////////////////////// Définitions ////////////////////////////// //
20
21   // ----------------------- Redéfinition de types ----------------------------
22
23   typedef xios::CComputeConnectivityDomain   * XComConDomainPtr;
24
25   // ------------------------ Création des handle -----------------------------
26   void cxios_compute_connectivity_domain_handle_create(XComConDomainPtr * _ret, const char * _id, int _id_len)
27   {
28      std::string id;
29      if (!cstr2string(_id, _id_len, id)) return;
30      CTimer::get("XIOS").resume() ;
31      *_ret = xios::CComputeConnectivityDomain::get(id);
32      CTimer::get("XIOS").suspend() ;
33   }
34
35   // -------------------- Vérification des identifiants -----------------------
36   void cxios_compute_connectivity_domain_valid_id(bool * _ret, const char * _id, int _id_len)
37   {
38      std::string id;
39      if (!cstr2string(_id, _id_len, id)) return;
40
41      CTimer::get("XIOS").resume() ;
42      *_ret = xios::CComputeConnectivityDomain::has(id);
43      CTimer::get("XIOS").suspend() ;
44   }
45} // extern "C"
Note: See TracBrowser for help on using the repository browser.