@@ -164,27 +164,34 @@ bool DAGMCExportCommand::execute(CubitCommandData &data)
164164 rval = mdbImpl->write_file (filename.c_str ());
165165 CHK_MB_ERR_RET (" Error writing file: " ,rval);
166166
167- rval = teardown ();
168- CHK_MB_ERR_RET (" Error tearing down export command." ,rval);
169-
167+
170168 // if a PyNE material library is provided then try to process the mats
171169 if (pyne_mat_lib != " " ) {
172170 bool fatal_errors = false ;
173171
174- uwuw_preprocessor* uwuw_preproc = new uwuw_preprocessor (pyne_mat_lib, filename, filename, hdf5_path, verbose_warnings, fatal_errors);
172+ uwuw_preprocessor* uwuw_preproc = new uwuw_preprocessor (pyne_mat_lib, mdbImpl, filename, hdf5_path, true , fatal_errors);
173+ std::cout << __FILE__ << " : " << __LINE__ << std::endl;
175174 // process the materials
176175 uwuw_preproc->process_materials ();
176+ std::cout << __FILE__ << " : " << __LINE__ << std::endl;
177177
178178 // process the tallies
179179 uwuw_preproc->process_tallies ();
180+ std::cout << __FILE__ << " : " << __LINE__ << std::endl;
180181
181182 // write the material data
182183 uwuw_preproc->write_uwuw_materials ();
184+ std::cout << __FILE__ << " : " << __LINE__ << std::endl;
183185
184186 // write the tally data
185187 uwuw_preproc->write_uwuw_tallies ();
188+ std::cout << __FILE__ << " : " << __LINE__ << std::endl;
189+
186190 }
187191
192+ rval = teardown ();
193+ CHK_MB_ERR_RET (" Error tearing down export command." ,rval);
194+
188195 return result;
189196}
190197
@@ -222,8 +229,15 @@ moab::ErrorCode DAGMCExportCommand::parse_options(CubitCommandData &data, moab::
222229 data.get_string (" pyne_mat_lib" , pyne_mat_lib);
223230 if (pyne_mat_lib != " " ) {
224231 message << " Looking for the PyNE material Lib in " << pyne_mat_lib << std::endl;
225- data.get_string (" hdf5_path" ,hdf5_path);
226- message << " hdf5 path set to " << hdf5_path << std::endl;
232+ data.get_string (" hdf5_path" ,hdf5);
233+ if (hdf5 != " " ) {
234+ hdf5_path = hdf5;
235+ } else {
236+ message << " hdf5 path not provided, falling back on default path"
237+ << std::endl;
238+ }
239+
240+ message << " hdf5 path set to " << hdf5 << std::endl;
227241 }
228242 else {
229243 message
0 commit comments