Last change
on this file since 1138 was
1138,
checked in by yushan, 6 years ago
|
test_remap back to work. No thread for now
|
-
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
|
File size:
1.4 KB
|
Line | |
---|
1 | /*! |
---|
2 | \file netCdfInterface_impl.hpp |
---|
3 | \author Ha NGUYEN |
---|
4 | \date 06 Oct 2014 |
---|
5 | \since 06 Oct 2014 |
---|
6 | |
---|
7 | \brief Implemention of some templated functions in netCdfInterface |
---|
8 | */ |
---|
9 | |
---|
10 | #include "netCdfInterface_impl.hpp" |
---|
11 | // mpi_std.hpp |
---|
12 | |
---|
13 | namespace xios |
---|
14 | { |
---|
15 | #define macroAtt(type) \ |
---|
16 | template int CNetCdfInterface::getAttType(int ncid, int varid, const StdString& attrName, type* data); \ |
---|
17 | template int CNetCdfInterface::putAttType(int ncid, int varid, const StdString& attrName, \ |
---|
18 | StdSize numVal, const type* data); |
---|
19 | |
---|
20 | macroAtt(double) |
---|
21 | macroAtt(float) |
---|
22 | macroAtt(int) |
---|
23 | macroAtt(long) |
---|
24 | macroAtt(short) |
---|
25 | macroAtt(char) |
---|
26 | |
---|
27 | #define macroPutVar(type) \ |
---|
28 | template int CNetCdfInterface::getVaraType(int ncid, int varId, const StdSize* start, \ |
---|
29 | const StdSize* count, type* data); \ |
---|
30 | template int CNetCdfInterface::putVaraType(int ncid, int varId, const StdSize* start, \ |
---|
31 | const StdSize* count, const type* data); |
---|
32 | |
---|
33 | macroPutVar(double) |
---|
34 | macroPutVar(float) |
---|
35 | macroPutVar(int) |
---|
36 | macroPutVar(char) |
---|
37 | |
---|
38 | #define macroType(type, ncType) \ |
---|
39 | template<> nc_type CNetCdfInterface::getNcType<type>() { return ncType; } |
---|
40 | |
---|
41 | macroType(double, NC_DOUBLE) |
---|
42 | macroType(float, NC_FLOAT) |
---|
43 | macroType(int, NC_INT) |
---|
44 | macroType(long, NC_LONG) |
---|
45 | macroType(short, NC_SHORT) |
---|
46 | macroType(char, NC_CHAR) |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.