Skip to content

Commit e23560b

Browse files
committed
some update
1 parent a13f40b commit e23560b

3 files changed

Lines changed: 25 additions & 7 deletions

File tree

export_dagmc_cmd/DAGMCExportCommand.cpp

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

export_dagmc_cmd/DAGMCExportCommand.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class DAGMCExportCommand: public CubitCommand
7272
bool make_watertight;
7373
std::string pyne_mat_lib;
7474
std::string hdf5_path;
75+
std::string hdf5;
7576

7677

7778
int failed_curve_count;

script/build_plugin.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ make install
4848
cd ${PLUGIN_ABS_PATH}
4949
mkdir -pv DAGMC/bld
5050
cd DAGMC
51-
git clone https://github.com/svalinn/DAGMC -b develop
51+
git clone https://github.com/bam241/DAGMC -b preproc_plugin
52+
cd DAGMC
53+
git status
54+
cd ..
5255
cd bld
5356
cmake ../DAGMC -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 \
5457
-DMOAB_DIR=${PLUGIN_ABS_PATH}/moab \

0 commit comments

Comments
 (0)