Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion moose/kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __str__(self):
string = f'[{self.name}]\n'
string += f'type={self.aux_kernel_type.name}\n'
string += f'variable={self.variable.name}\n'
string += f'{self.function.__str__()}'
string += f'function={self.function.__str__()}\n'
string += f'args={self.args.name}\n'
string += '[]\n'
return string
Expand Down
9 changes: 6 additions & 3 deletions moose/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,14 @@ def __str__(self):
def add_mesh_object(self, name = "", type = None, **kwargs):
if name in self.mesh_objects.keys():
print (f'name {name} already in use')


mesh = None # Add a default value for the 'mesh' variable

if type == MeshObjectTypes.FileMeshGenerator:
mesh = FileMeshGenerator(name=name, **kwargs)
elif type == MeshObjectTypes.TransformGenerator:
mesh = TransformGenerator(name=name, **kwargs)

self.mesh_objects[name] = mesh

if mesh is not None:
self.mesh_objects[name] = mesh