Skip to content

Commit

Permalink
bugfix elmerkw.py, black
Browse files Browse the repository at this point in the history
  • Loading branch information
arvedes committed Aug 3, 2021
1 parent 3e11c3b commit 849dc77
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v0.3.1
- Bugfix in elmerkw

v0.3.0
- Removed solver specific keywords. For backward compatibility the new module elmerkw was added (usage: import pyelmer.elmerkw as elmer).
- Moved data to examples, it's not shipped with the package any longer.
Expand Down
2 changes: 1 addition & 1 deletion examples/2D_heat_transfer/heat_transfer_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

###############
# elmer setup
elmer.data_dir="./data"
elmer.data_dir = "./data"

sim = elmer.load_simulation("2D_steady")

Expand Down
1 change: 1 addition & 0 deletions pyelmer/elmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

data_dir = "./"


class Simulation:
"""Main wrapper for the sif file. The simulation class is used to
collect all information.
Expand Down
4 changes: 2 additions & 2 deletions pyelmer/elmerkw.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class Boundary(elmer.Boundary):
"""Wrapper for boundaries in sif-file."""

def __init__(self, simulation, name, geo_ids=[]):
def __init__(self, simulation, name, geo_ids=None):
"""Create boundary object.
Args:
Expand Down Expand Up @@ -126,7 +126,7 @@ def get_data(self):
class BodyForce(elmer.BodyForce):
"""Wrapper for body forces in sif-file."""

def __init__(self, simulation, name, data):
def __init__(self, simulation, name, data=None):
"""Create body force object.
Args:
Expand Down

0 comments on commit 849dc77

Please sign in to comment.