Skip to content

family and order argument optional in variables.py - #6

Open
amna-ukaea wants to merge 4 commits into
aurora-multiphysics:mainfrom
fusion-engineering-simulation:3-changing-formatting
Open

family and order argument optional in variables.py#6
amna-ukaea wants to merge 4 commits into
aurora-multiphysics:mainfrom
fusion-engineering-simulation:3-changing-formatting

Conversation

@amna-ukaea

@amna-ukaea amna-ukaea commented May 17, 2023

Copy link
Copy Markdown

before:
class Variable took in order and family:
def init(self, name = "", order = 1, family = 1, block = "")

now:
class Variable doesn't:
def init(self, name, order=None, family=None):
self.order = Order(order) if order is not None else None
self.family = Family(family) if family is not None else None

"family" isn't always needed in an input file and can be auto assigned in MOOSE.

benefit:
it makes it easier to run an input file sometimes by letting MOOSE auto assign the order and family based on the variables' dependencies.

@amna-ukaea amna-ukaea changed the title family argument not always needed - changed to kwargs so generic family and order argument optional in variables.py May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant