def from_desc(name, desc, variables, regions, materials, integrals, caches=None, user=None): term_descs = parse_definition(desc) terms = Terms.from_desc(term_descs, regions, integrals) terms.setup() terms.assign_args(variables, materials, user) obj = Equation(name, terms, caches=caches) return obj
def from_desc(name, desc, variables, regions, materials, integrals, user=None): term_descs = parse_definition(desc) terms = Terms.from_desc(term_descs, regions, integrals) terms.setup() terms.assign_args(variables, materials, user) obj = Equation(name, terms) return obj
def from_desc(name, desc, variables, regions, materials, integrals, user=None, eterm_options=None): term_descs = parse_definition(desc) terms = Terms.from_desc(term_descs, regions, integrals) terms.setup() terms.assign_args(variables, materials, user) if eterm_options is not None: for term in terms: if isinstance(term, ETermBase): term.set_verbosity(eterm_options.get('verbosity', 0)) term.set_backend(**eterm_options.get('backend_args', {})) obj = Equation(name, terms) return obj