File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -473,16 +473,16 @@ void step(Simulator &s, Aluminum &m) {
473473 if (m.rank0 ) cout << " Performing Aluminum step" << endl;
474474#endif
475475
476- for (auto const &bc: s.get_boundary_conditions ()) {
477- if (bc->get_modifier_name () == " MovingBC" ) {
478- m.set_m_xpos (dynamic_cast < MovingBC& >(*bc).get_xpos ());
479- // auto moving = dynamic_cast< MovingBC& >(*bc);
480- // double newxpos = moving.get_xpos();
481- // m.set_m_xpos(newxpos);
482- // if (m.rank0) std::cout << "Updated xpos to " << m.params.m_xpos << std::endl;
483- }
476+ for (auto const &bc : s.get_boundary_conditions ()) {
477+ if (bc->get_modifier_name () == " MovingBC" ) {
478+ m.set_m_xpos (dynamic_cast <MovingBC & >(*bc).get_xpos ());
479+ // auto moving = dynamic_cast< MovingBC& >(*bc);
480+ // double newxpos = moving.get_xpos();
481+ // m.set_m_xpos(newxpos);
482+ // if (m.rank0) std::cout << "Updated xpos to " << m.params.m_xpos << std::endl;
483+ }
484484 }
485-
485+
486486 double t = s.get_time ().get_current ();
487487 m.step (t);
488488 // perform some extra logic after the step, which can access both simulator
You can’t perform that action at this time.
0 commit comments