mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Removing duplicate material setup in cad initialization.
This commit is contained in:
parent
7b453312c3
commit
5ac964a73f
1 changed files with 2 additions and 16 deletions
18
src/cad.cpp
18
src/cad.cpp
|
|
@ -43,21 +43,8 @@ void load_cad_geometry_c()
|
|||
openmc::CADCell* c = new openmc::CADCell();
|
||||
c->id_ = DAGMC->id_by_index(3, i+1);
|
||||
c->dagmc_ptr = DAGMC;
|
||||
c->universe_ = cad_univ_id; // set to zero for now
|
||||
|
||||
if(DAGMC->has_prop(vol_handle, "mat")){
|
||||
std::string mat_value;
|
||||
|
||||
rval = DAGMC->prop_value(vol_handle, "mat", mat_value);
|
||||
MB_CHK_ERR_CONT(rval);
|
||||
int mat_id = std::stoi(mat_value);
|
||||
c->material_.push_back(mat_id);
|
||||
}
|
||||
else {
|
||||
c->material_.push_back(40); // TO-DO: add void material here
|
||||
}
|
||||
|
||||
c->fill_ = openmc::C_NONE;
|
||||
c->universe_ = cad_univ_id; // set to zero for now
|
||||
c->fill_ = openmc::C_NONE; // no fill, single universe
|
||||
|
||||
openmc::cells.push_back(c);
|
||||
openmc::cell_map[c->id_] = c->id_;
|
||||
|
|
@ -74,7 +61,6 @@ void load_cad_geometry_c()
|
|||
openmc::universes[it->second]->cells_.push_back(i);
|
||||
}
|
||||
|
||||
|
||||
if(DAGMC->is_implicit_complement(vol_handle)) {
|
||||
// assuming implicit complement is void for now
|
||||
c->material_.push_back(openmc::MATERIAL_VOID);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue