Skip to content

Commit 33e9591

Browse files
author
Dilawar Singh
committed
Passing ObjId as Id is creating trouble.
1 parent 537779e commit 33e9591

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

pybind11/Finfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ py::cpp_function __Finfo__::getDestFinfoSetterFunc1(const ObjId& oid,
182182

183183
if (ftype == "double")
184184
return getSetGetFunc1<double>(oid, fname);
185-
if (ftype == "Id")
186-
return getSetGetFunc1<Id>(oid, fname);
187185
if (ftype == "ObjId")
188186
return getSetGetFunc1<ObjId>(oid, fname);
187+
if (ftype == "Id")
188+
return getSetGetFunc1<Id>(oid, fname);
189189
if (ftype == "vector<Id>")
190190
return getSetGetFunc1<vector<Id>>(oid, fname);
191191
if (ftype == "vector<ObjId>")

pybind11/Finfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class __Finfo__ {
3939
}
4040

4141
template <typename T>
42-
static std::function<bool(T)> getSetGetFunc1(const ObjId& oid, const string& fname)
42+
static std::function<bool(T)> getSetGetFunc1(const ObjId& oid,
43+
const string& fname)
4344
{
4445
std::function<bool(T)> func = [oid, fname](const T& val) {
4546
return SetGet1<T>::set(oid, fname, val);

python/moose/fixXreacs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def disconnectReactant(reacOrEnz, reactant, duppool):
119119
if _cmoose.exists(infoPath):
120120
info = moose.element(infoPath)
121121
else:
122-
info = _cmoose.Annotator(infoPath)
122+
info = moose.Annotator(infoPath)
123123

124124
#_cmoose.le( reactant )
125125
notes = ""

tests/py_moose/test_Xreacs2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_xreac2():
5353
s2.path = '/model/compartment_1/##'
5454

5555
print(ds1)
56-
ds2.buildMeshJunctions( ds1.id )
56+
ds2.buildMeshJunctions( ds1 )
5757

5858
moose.reinit()
5959
moose.start( runtime )

0 commit comments

Comments
 (0)