Skip to content

Commit 24bc52b

Browse files
committed
Make petschermitespline the default if possible
1 parent 3f80b86 commit 24bc52b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

include/bout/interpolation_xz.hxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#define BOUT_INTERP_XZ_H
2626

2727
#include <bout/bout_types.hxx>
28+
#include <bout/build_defines.hxx>
2829
#include <bout/generic_factory.hxx>
2930
#include <bout/mask.hxx>
3031

@@ -130,7 +131,11 @@ public:
130131
static constexpr auto type_name = "XZInterpolation";
131132
static constexpr auto section_name = "xzinterpolation";
132133
static constexpr auto option_name = "type";
134+
#if BOUT_HAS_PETSC
135+
static constexpr auto default_type = "petschermitespline";
136+
#else
133137
static constexpr auto default_type = "hermitespline";
138+
#endif
134139

135140
ReturnType create(Options* options = nullptr, Mesh* mesh = nullptr) const {
136141
return Factory::create(getType(options), mesh, options);

0 commit comments

Comments
 (0)