|
26 | 26 | // https://pybind11.readthedocs.io/en/stable/advanced/cast/stl.html#binding-stl-containers |
27 | 27 | // #include "../external/pybind11/include/pybind11/stl_bind.h" |
28 | 28 |
|
29 | | -#include "../randnum/randnum.h" |
| 29 | +#include "../basecode/header.h" |
| 30 | +#include "../basecode/global.h" |
30 | 31 |
|
31 | | -#include "../basecode/Cinfo.h" |
32 | 32 | #include "../builtins/Variable.h" |
33 | 33 | #include "../mpi/PostMaster.h" |
34 | 34 | #include "../scheduling/Clock.h" |
35 | 35 | #include "../shell/Neutral.h" |
36 | 36 | #include "../shell/Shell.h" |
37 | 37 | #include "../shell/Wildcard.h" |
38 | 38 | #include "../utility/strutil.h" |
| 39 | +#include "../randnum/randnum.h" |
39 | 40 |
|
40 | | -#include "Finfo.h" |
41 | 41 | #include "helper.h" |
42 | 42 | #include "pymoose.h" |
| 43 | +#include "Finfo.h" |
43 | 44 |
|
44 | 45 | using namespace std; |
45 | 46 |
|
@@ -101,7 +102,7 @@ ObjId createIdFromPath(string path, string type, unsigned int numData) |
101 | 102 |
|
102 | 103 | string trimmed_path = moose::trim(path); |
103 | 104 |
|
104 | | - unsigned int pos = trimmed_path.rfind("/"); |
| 105 | + auto pos = trimmed_path.rfind("/"); |
105 | 106 | if (pos != string::npos) { |
106 | 107 | name = trimmed_path.substr(pos + 1); |
107 | 108 | parent_path = trimmed_path.substr(0, pos); |
@@ -345,6 +346,7 @@ ObjId mooseCopy(const py::object& elem, ObjId newParent, string newName, |
345 | 346 | copyExtMsgs)); |
346 | 347 | } |
347 | 348 |
|
| 349 | +#if 0 |
348 | 350 | /** |
349 | 351 | Return a vector of field names of specified finfo type. This is from Subha. |
350 | 352 | */ |
@@ -395,3 +397,5 @@ vector<string> mooseGetFieldNames(string className, string finfoType) |
395 | 397 | } |
396 | 398 | return ret; |
397 | 399 | } |
| 400 | + |
| 401 | +#endif |
0 commit comments