Skip to content

Commit

Permalink
gmsh: Inline gmsh import
Browse files Browse the repository at this point in the history
This will make it easier to import pyposeidon on EuroHPC
  • Loading branch information
pmav99 committed Apr 9, 2024
1 parent 8002a13 commit ad6bf14
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyposeidon/mgmsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import os
from tqdm.auto import tqdm
import sys
import gmsh
import subprocess
import shapely
import shlex
Expand Down Expand Up @@ -67,6 +66,8 @@ def get_ibounds(df, mm):


def read_msh(filename, **kwargs):
import gmsh

model = gmsh.model
factory = model.geo

Expand Down Expand Up @@ -800,6 +801,8 @@ def make_bgmesh(df, fpos, **kwargs):


def make_gmsh(df, **kwargs):
import gmsh

logger.info("Creating mesh")

model = gmsh.model
Expand Down Expand Up @@ -1006,6 +1009,8 @@ def make_gmsh(df, **kwargs):


def make_gmsh_3d(df, **kwargs):
import gmsh

logger.info("Creating global mesh")

model = gmsh.model
Expand Down

0 comments on commit ad6bf14

Please sign in to comment.