Skip to content

Commit

Permalink
Default to "center" derivative
Browse files Browse the repository at this point in the history
  • Loading branch information
stigrj committed Mar 27, 2024
1 parent f740a4d commit 2a87fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vampyr/operators/derivatives.h
Expand Up @@ -55,7 +55,7 @@ template <int D> void derivatives(pybind11::module &m) {


// Factory function to create derivative operators based on type
m.def("Derivative", [](const MultiResolutionAnalysis<D> &mra, const std::string &type, int order = 1) -> std::unique_ptr<DerivativeOperator<D>> {
m.def("Derivative", [](const MultiResolutionAnalysis<D> &mra, const std::string &type = "center", int order = 1) -> std::unique_ptr<DerivativeOperator<D>> {
if (type == "center") {
return std::make_unique<ABGVOperator<D>>(mra, 0.5, 0.5);
} else if (type == "simple") {
Expand Down

0 comments on commit 2a87fae

Please sign in to comment.