petschermitespline
1 parent 3f80b86 commit 24bc52bCopy full SHA for 24bc52b
1 file changed
include/bout/interpolation_xz.hxx
@@ -25,6 +25,7 @@
25
#define BOUT_INTERP_XZ_H
26
27
#include <bout/bout_types.hxx>
28
+#include <bout/build_defines.hxx>
29
#include <bout/generic_factory.hxx>
30
#include <bout/mask.hxx>
31
@@ -130,7 +131,11 @@ public:
130
131
static constexpr auto type_name = "XZInterpolation";
132
static constexpr auto section_name = "xzinterpolation";
133
static constexpr auto option_name = "type";
134
+#if BOUT_HAS_PETSC
135
+ static constexpr auto default_type = "petschermitespline";
136
+#else
137
static constexpr auto default_type = "hermitespline";
138
+#endif
139
140
ReturnType create(Options* options = nullptr, Mesh* mesh = nullptr) const {
141
return Factory::create(getType(options), mesh, options);
0 commit comments