Stephen Skory avatar Stephen Skory committed b08eb16

Adding LeftFaceBoundaryCondition to the list of parameters passed to Python/yt.

Comments (0)

Files changed (1)

src/enzo/io/InitializePythonInterface.C

   PyDict_SetItemString(yt_parameter_file, "TopGridDimensions", tgd_tuple);
   Py_XDECREF(tgd_tuple); Py_XDECREF(tgd0); Py_XDECREF(tgd1); Py_XDECREF(tgd2);
 
+  tgd0 = PyLong_FromLong((long) MetaData->LeftFaceBoundaryCondition[0]);
+  tgd1 = PyLong_FromLong((long) MetaData->LeftFaceBoundaryCondition[1]);
+  tgd2 = PyLong_FromLong((long) MetaData->LeftFaceBoundaryCondition[2]);
+  tgd_tuple = PyTuple_Pack(3, tgd0, tgd1, tgd2);
+  PyDict_SetItemString(yt_parameter_file, "LeftFaceBoundaryCondition", tgd_tuple);
+  Py_XDECREF(tgd_tuple); Py_XDECREF(tgd0); Py_XDECREF(tgd1); Py_XDECREF(tgd2);
+
   /* Do the conversion factors */
   for (int dim = 0; dim < MAX_NUMBER_OF_BARYON_FIELDS; dim++) {
     if (DataLabel[dim]) {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.