def _subpEqns(menuitem, subproblem, equations): subpctxt = ooflib.engine.subproblemcontext.subproblems[subproblem] subpname = subpctxt.path() subp = subpctxt.getObject() for eqn in equations: equation = getEquationObj(eqn) subp.activate_equation(equation) switchboard.notify('equation activated', subpname, equation.name(), 1)
def _meshEquations(menuitem, mesh, equations): meshctxt = ooflib.engine.mesh.meshes[mesh] subpname = meshctxt.get_default_subproblem().path() subp = meshctxt.get_default_subproblem().getObject() for eqn in equations: equation = getEquationObj(eqn) subp.activate_equation(equation) switchboard.notify('equation activated', subpname, equation.name(), 1)