Skip to content

Commit

Permalink
Applying style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Sep 7, 2023
1 parent 01db014 commit dcc7206
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/dagmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,15 @@ void DAGUniverse::init_geometry()
} // end surface loop
}

int32_t DAGUniverse::cell_index(moab::EntityHandle vol) const {
int32_t DAGUniverse::cell_index(moab::EntityHandle vol) const
{
// return the index of the volume in the DAGMC instance and then
// adjust by the offset into the model cells for this DAGMC universe
return dagmc_ptr()->index_by_handle(vol) + cell_idx_offset_;
}

int32_t DAGUniverse::surface_index(moab::EntityHandle surf) const {
int32_t DAGUniverse::surface_index(moab::EntityHandle surf) const
{
// return the index of the surface in the DAGMC instance and then
// adjust by the offset into the model cells for this DAGMC universe
return dagmc_ptr()->index_by_handle(surf) + surf_idx_offset_;
Expand Down Expand Up @@ -655,7 +657,8 @@ bool DAGCell::contains(Position r, Direction u, int32_t on_surface) const
return result;
}

moab::EntityHandle DAGCell::mesh_handle() const {
moab::EntityHandle DAGCell::mesh_handle() const
{
return dagmc_ptr()->entity_by_index(3, dag_index());
}

Expand Down Expand Up @@ -684,7 +687,8 @@ DAGSurface::DAGSurface(std::shared_ptr<moab::DagMC> dag_ptr, int32_t dag_idx)
geom_type_ = GeometryType::DAG;
} // empty constructor

moab::EntityHandle DAGSurface::mesh_handle() const {
moab::EntityHandle DAGSurface::mesh_handle() const
{
return dagmc_ptr()->entity_by_index(2, dag_index());
}

Expand Down

0 comments on commit dcc7206

Please sign in to comment.