VariableValue & AuxKernel::coupledDotDu(const std::string & var_name, unsigned int comp) { MooseVariable * var = getVar(var_name, comp); if (var->kind() == Moose::VAR_AUXILIARY) mooseError(name() << ": Unable to couple time derivative of an auxiliary variable into the auxiliary system."); return Coupleable::coupledDotDu(var_name, comp); }
VariableValue & Coupleable::coupledDotDu(const std::string & var_name, unsigned int comp) { MooseVariable * var = getVar(var_name, comp); if (var->kind() == Moose::VAR_AUXILIARY) mooseError("Coupling time derivative of an auxiliary variable is not allowed."); if (_nodal) return var->nodalSlnDuDotDu(); else return var->duDotDu(); }
unsigned int Coupleable::coupled(const std::string & var_name, unsigned int comp) { if (!isCoupled(var_name)) return _optional_var_index[var_name]; MooseVariable * var = getVar(var_name, comp); switch (var->kind()) { case Moose::VAR_NONLINEAR: return getVar(var_name, comp)->number(); case Moose::VAR_AUXILIARY: return std::numeric_limits<unsigned int>::max() - getVar(var_name, comp)->number(); } mooseError("Unknown variable kind. Corrupted binary?"); }