Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up of everything imported under utils #218

Merged
merged 1 commit into from
Jul 31, 2024
Merged
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
28 changes: 15 additions & 13 deletions src/underworld3/utilities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@

from . import _api_tools

# get/import petsc_gen_xdmf from the original petsc installation
import sys
import petsc4py
def _append_petsc_path():
# get/import petsc_gen_xdmf from the original petsc installation
import sys
import petsc4py

conf = petsc4py.get_config()
petsc_dir = conf["PETSC_DIR"]
if not petsc_dir + "/lib/petsc/bin" in sys.path:
sys.path.append(petsc_dir + "/lib/petsc/bin")
conf = petsc4py.get_config()
petsc_dir = conf["PETSC_DIR"]
if not petsc_dir + "/lib/petsc/bin" in sys.path:
sys.path.append(petsc_dir + "/lib/petsc/bin")

from .uw_petsc_gen_xdmf import *
from .uw_swarmIO import *
_append_petsc_path()

from ._utils import *
from .uw_petsc_gen_xdmf import Xdmf, generateXdmf, generate_uw_Xdmf
from .uw_swarmIO import swarm_h5, swarm_xdmf
from ._utils import CaptureStdout, h5_scan, mem_footprint, gather_data

from .read_medit_ascii import read_medit_ascii, print_medit_mesh_info
from .create_dmplex_from_medit import create_dmplex_from_medit

from .read_medit_ascii import read_medit_ascii
from .read_medit_ascii import print_medit_mesh_info
from .create_dmplex_from_medit import create_dmplex_from_medit
Loading