Newer
Older
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* Support.cpp
*
* Created on: Oct 18, 2016
* Author: wfg
*/
#include "Support.h"
#include "adios2/core/adiosTemplates.h"
namespace adios
{
const std::string Support::Version{"2.00"};
const std::set<std::string> Support::HostLanguages{{"C++", "C", "Fortran"}};
const std::set<std::string> Support::Transports{
{"NULL", "POSIX", "FStream", "MdtmMan"}};
// TODO(chuckatkins): Add transports MPI, MPI_LUSTRE, MPI_AGGREGATE,
// DATASPACES, DIMES, FLEXPATH, PHDF5, NC4, ICEE
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
const std::set<std::string> Support::Transforms{
{"none", "identity", "bzip2", "isobar", "szip", "zlib"}};
const std::map<std::string, std::set<std::string>> Support::Datatypes{
{"C++", {"char",
"std::string",
"string",
"unsigned char",
"short",
"unsigned short",
"int",
"integer",
"unsigned int",
"long int",
"long",
"unsigned long int",
"unsigned long",
"long long int",
"long long",
"unsigned long long int",
"unsigned long long",
"float",
"float complex",
"double",
"long double",
"double complex",
"std::complex<double>",
"complex<double>"}},
{"C",
{"char", "unsigned char", "short", "unsigned short", "int", "integer"
"unsigned int",
"unsigned integer", "long int", "long", "long integer",
"unsigned long int", "unsigned long", "unsigned long integer",
"long long int", "long long", "long long integer",
"unsigned long long int", "unsigned long long",
"unsigned long long integer", "float", "float complex"
"double",
"long double", "double complex"}},
{"Fortran",
{"character", "integer*2", "integer", "real*2", "real", "real*4",
"double precision", "real*8", "complex", "double complex"}}};
const std::map<std::string, std::set<std::string>> Support::DatatypesAliases{
{GetType<char>(), {GetType<char>(), "character"}},
{GetType<unsigned char>(),
{GetType<unsigned char>(), "unsigned character"}},
{GetType<short>(), {GetType<short>(), "integer*2"}},
{GetType<unsigned short>(), {GetType<unsigned short>()}},
{GetType<int>(), {GetType<int>(), "integer"}},
{GetType<unsigned int>(), {GetType<unsigned int>(), "unsigned integer"}},
{GetType<long int>(), {GetType<long int>(), "long", "long integer"}},
{GetType<unsigned long int>(),
{GetType<unsigned long int>(), "unsigned long", "unsigned long integer"}},
{GetType<long long int>(),
{GetType<long long int>(), "long long", "long long integer"}},
{GetType<unsigned long long int>(),
{GetType<unsigned long long int>(), "unsigned long long",
"unsigned long long integer"}},
{GetType<float>(), {GetType<float>(), "real", "real*4"}},
{GetType<double>(), {GetType<double>(), "double precision", "real*8"}},
{GetType<long double>(),
{GetType<long double>(), "long double precision", "real*16"}}};
const std::set<std::string> Support::FileTransports{
{"POSIX", "File", "FStream", "MPIFile"}};