Skip to content

Commit bdb502d

Browse files
author
Martin D. Weinberg
committed
Add a null constructor to FieldGenerator
1 parent 6409285 commit bdb502d

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

expui/FieldGenerator.H

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ namespace Field
3636

3737
public:
3838

39+
//! Null constructor
40+
FieldGenerator() = default;
41+
3942
//! Constructor for a rectangular grid
4043
FieldGenerator(const std::vector<double> &time,
4144
const std::vector<double> &pmin,

pyEXP/FieldWrappers.cc

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,20 @@ void FieldGeneratorClasses(py::module &m) {
9494
py::class_<Field::FieldGenerator, std::shared_ptr<Field::FieldGenerator>>
9595
f(m, "FieldGenerator");
9696

97+
f.def(py::init<>(),
98+
R"(
99+
Null constructor for FieldGenerator
100+
101+
Parameters
102+
----------
103+
None
104+
105+
Returns
106+
-------
107+
FieldGenerator
108+
new object
109+
)");
110+
97111
f.def(py::init<const std::vector<double>, const std::vector<double>,
98112
const std::vector<double>, const std::vector<int>>(),
99113
R"(
@@ -361,10 +375,7 @@ void FieldGeneratorClasses(py::module &m) {
361375
362376
See also
363377
--------
364-
<<<<<<< HEAD
365-
=======
366378
points : generate fields at an array of mesh points
367-
>>>>>>> pointMesh
368379
slices : generate fields in a surface slice given by the
369380
initializtion grid
370381
volumes : generate fields in volume given by the initializtion grid

0 commit comments

Comments
 (0)