Skip to content

Commit e2af34a

Browse files
committed
include optional
1 parent 34ae34e commit e2af34a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

comp/postproc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010

1111
#include <comp.hpp>
12+
#include <variant>
13+
#include <optional>
1214

1315
namespace ngcomp
1416
{
@@ -1228,7 +1230,6 @@ namespace ngcomp
12281230

12291231

12301232

1231-
#include <variant>
12321233
#include "../fem/integratorcf.hpp"
12331234

12341235
namespace ngfem

fem/python_fem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,8 @@ cf : ngsolve.CoefficientFunction
893893
"Evaluate on other element, as needed for DG jumps")
894894

895895
.def ("Derive", &CoefficientFunction::Derive,
896-
"Compute derivative with respect to argument")
896+
"Compute directional derivative with respect to variable",
897+
py::arg("variable"), py::arg("direction")=1.0)
897898

898899
// it's using the complex functions anyway ...
899900
// it seems to take the double-version now

0 commit comments

Comments
 (0)