Skip to content

Commit

Permalink
improves readability
Browse files Browse the repository at this point in the history
  • Loading branch information
tokamaster committed Nov 22, 2024
1 parent 4579605 commit 425c500
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions parastell/cubit_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ def init_cubit():
initialized = True


def create_new_cubit_instance():
"""Creates new cubit instance checking if Cubit has been already
initialized.
"""
if initialized:
cubit.cmd("new")
else:
init_cubit()


def import_step_cubit(filename, import_dir):
"""Imports STEP file into Coreform Cubit.
Expand Down Expand Up @@ -205,14 +216,3 @@ def export_dagmc_cubit_native(
# exports
if delete_upon_export:
cubit.cmd(f"delete mesh volume all propagate")


def create_new_cubit_instance():
"""Creates new cubit instance checking if Cubit has been already
initialized.
"""
if initialized:
cubit.cmd("new")
else:
init_cubit()

0 comments on commit 425c500

Please sign in to comment.