mirror of https://gitlab.com/pamhyr/pamhyr2
Script: Meshing: Minor change.
parent
1ea6fd7c54
commit
e965e2b4c1
|
|
@ -135,6 +135,9 @@ def init_c_output_bief(bief_lib):
|
||||||
c_output_bief.argtypes = [c_char_p]
|
c_output_bief.argtypes = [c_char_p]
|
||||||
c_output_bief.restype = None
|
c_output_bief.restype = None
|
||||||
|
|
||||||
|
#####################
|
||||||
|
# Binding functions #
|
||||||
|
#####################
|
||||||
|
|
||||||
def init_bief_from_geo_file(name, with_charriage, with_water):
|
def init_bief_from_geo_file(name, with_charriage, with_water):
|
||||||
logger.info("! call init_bief_from_geo_file:")
|
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))
|
byref(c_int(with_water))
|
||||||
)
|
)
|
||||||
|
|
||||||
#####################
|
|
||||||
# Binding functions #
|
|
||||||
#####################
|
|
||||||
|
|
||||||
|
|
||||||
def get_nb_sections():
|
def get_nb_sections():
|
||||||
nb_sections = c_int(0)
|
nb_sections = c_int(0)
|
||||||
c_get_nb_sections(byref(nb_sections))
|
c_get_nb_sections(byref(nb_sections))
|
||||||
|
|
@ -266,7 +264,7 @@ class MageMesh(AScript):
|
||||||
)
|
)
|
||||||
|
|
||||||
# Transform
|
# Transform
|
||||||
st_to_m_compl(npts_max, 'rg', 'rd')
|
st_to_m_compl(0, ' ', ' ')
|
||||||
interpolate_profils_pas_transversal(
|
interpolate_profils_pas_transversal(
|
||||||
1, ns,
|
1, ns,
|
||||||
'un', 'np',
|
'un', 'np',
|
||||||
|
|
@ -275,6 +273,9 @@ class MageMesh(AScript):
|
||||||
update_pk("un")
|
update_pk("un")
|
||||||
|
|
||||||
# Save
|
# 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")
|
logger.info(f"Saved meshing geometry to {file_name}.M")
|
||||||
output_bief(f"{file_name}.M")
|
output_bief(f"{file_name}.M")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue