| 1 |
/* |
| 2 |
* (C) Copyright 2013 ECMWF. |
| 3 |
* |
| 4 |
* This software is licensed under the terms of the Apache Licence Version 2.0 |
| 5 |
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. |
| 6 |
* In applying this licence, ECMWF does not waive the privileges and immunities |
| 7 |
* granted to it by virtue of its status as an intergovernmental organisation |
| 8 |
* nor does it submit to any jurisdiction. |
| 9 |
*/ |
| 10 |
|
| 11 |
#include <string> |
| 12 |
|
| 13 |
#include "atlas/output/detail/GmshImpl.h" |
| 14 |
#include "atlas/output/detail/GmshInterface.h" |
| 15 |
|
| 16 |
namespace atlas { |
| 17 |
namespace output { |
| 18 |
namespace detail { |
| 19 |
|
| 20 |
// ----------------------------------------------------------------------------- |
| 21 |
|
| 22 |
extern "C" { |
| 23 |
|
| 24 |
GmshImpl* atlas__output__Gmsh__create_pathname_mode(const char* pathname, const char* mode) { |
| 25 |
return new GmshImpl(std::string(pathname), std::string(mode)); |
| 26 |
} |
| 27 |
GmshImpl* atlas__output__Gmsh__create_pathname_mode_config(const char* pathname, const char* mode, |
| 28 |
const eckit::Parametrisation* config) { |
| 29 |
return new GmshImpl(std::string(pathname), std::string(mode), *config); |
| 30 |
} |
| 31 |
|
| 32 |
} // extern C |
| 33 |
|
| 34 |
//---------------------------------------------------------------------------------------------------------------------- |
| 35 |
} // namespace detail |
| 36 |
} // namespace output |
| 37 |
} // namespace atlas |