Commit e965e2b4 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Script: Meshing: Minor change.

Showing with 7 additions and 6 deletions
+7 -6
......@@ -135,6 +135,9 @@ def init_c_output_bief(bief_lib):
c_output_bief.argtypes = [c_char_p]
c_output_bief.restype = None
#####################
# Binding functions #
#####################
def init_bief_from_geo_file(name, with_charriage, with_water):
logger.info("! call init_bief_from_geo_file:")
......@@ -145,11 +148,6 @@ def init_bief_from_geo_file(name, with_charriage, with_water):
byref(c_int(with_water))
)
#####################
# Binding functions #
#####################
def get_nb_sections():
nb_sections = c_int(0)
c_get_nb_sections(byref(nb_sections))
......@@ -266,7 +264,7 @@ class MageMesh(AScript):
)
# Transform
st_to_m_compl(npts_max, 'rg', 'rd')
st_to_m_compl(0, ' ', ' ')
interpolate_profils_pas_transversal(
1, ns,
'un', 'np',
......@@ -275,6 +273,9 @@ class MageMesh(AScript):
update_pk("un")
# Save
if os.path.isfile(f"{file_name}.M"):
os.remove(f"{file_name}.M")
logger.info(f"Saved meshing geometry to {file_name}.M")
output_bief(f"{file_name}.M")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment