mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Renaming function.
This commit is contained in:
parent
5bb3d582c9
commit
25df513a77
2 changed files with 3 additions and 3 deletions
|
|
@ -214,7 +214,7 @@ protected:
|
|||
static BoundingBox bounding_box_complex(std::vector<int32_t> rpn);
|
||||
static void apply_demorgan(std::vector<int32_t>::iterator start,
|
||||
std::vector<int32_t>::iterator stop);
|
||||
static void remove_complements(std::vector<int32_t>& rpn);
|
||||
static void remove_complement_ops(std::vector<int32_t>& rpn);
|
||||
static std::vector<int32_t>::iterator
|
||||
find_left_parenthesis(std::vector<int32_t>::iterator start,
|
||||
const std::vector<int32_t>& rpn);
|
||||
|
|
|
|||
|
|
@ -642,7 +642,7 @@ CSGCell::find_left_parenthesis(std::vector<int32_t>::iterator start,
|
|||
return it;
|
||||
}
|
||||
|
||||
void CSGCell::remove_complements(std::vector<int32_t>& rpn) {
|
||||
void CSGCell::remove_complement_ops(std::vector<int32_t>& rpn) {
|
||||
auto it = std::find(rpn.begin(), rpn.end(), OP_COMPLEMENT);
|
||||
while (it != rpn.end()) {
|
||||
// find the opening parenthesis (if any)
|
||||
|
|
@ -659,7 +659,7 @@ void CSGCell::remove_complements(std::vector<int32_t>& rpn) {
|
|||
|
||||
BoundingBox CSGCell::bounding_box_complex(std::vector<int32_t> rpn) {
|
||||
// remove complements by adjusting surface signs and operators
|
||||
remove_complements(rpn);
|
||||
remove_complement_ops(rpn);
|
||||
|
||||
// use the first token to set the bounding box
|
||||
auto it = rpn.begin();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue