Skip to content

Commit 2aac513

Browse files
committed
correct codacy errors
1 parent daefd02 commit 2aac513

File tree

6 files changed

+1
-36
lines changed

6 files changed

+1
-36
lines changed

installation/CentOS/install_ceasiompy.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44

55
current_dir="$(pwd)"
66

7-
# Get install dir from input if it exists
8-
if [ $# -gt 0 ]; then
9-
install_dir="$1/INSTALLDIR"
10-
else
11-
install_dir="$(pwd)/INSTALLDIR"
12-
fi
13-
147
sudo dnf install gcc-c++
158
sudo dnf install tbb
169

installation/Ubuntu/install_ceasiompy.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@
22

33
# Script to install CEASIOMpy on Ubuntu 20.04 and Mint 20.3
44

5-
# Script to install CEASIOMpy on Centos 8
6-
75
current_dir="$(pwd)"
86

9-
# Get install dir from input if it exists
10-
if [ $# -gt 0 ]; then
11-
install_dir="$1/INSTALLDIR"
12-
else
13-
install_dir="$(pwd)/INSTALLDIR"
14-
fi
15-
167
sudo apt install g++
178
sudo apt install libtbb2
189

@@ -27,4 +18,4 @@ conda activate ceasiompy
2718

2819
pip install -e .
2920

30-
cd "$current_dir"
21+
cd "$current_dir"

src/ceasiompy/CPACS2GMSH/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,5 @@
6868
GMSH_MAX_THICKNESS_LAYER_XPATH = GMSH_XPATH + "/max_thickness_layer"
6969
GMSH_GROWTH_FACTOR_XPATH = GMSH_XPATH + "/growth_factor"
7070
GMSH_GROWTH_RATIO_XPATH = GMSH_XPATH + "/growth_ratio"
71-
GMSH_SURFACE_MESH_SIZE_XPATH = GMSH_XPATH + "min_max_mesh_factor"
7271
GMSH_FEATURE_ANGLE_XPATH = GMSH_XPATH + "/feature_angle"
7372
GMSH_CTRLSURF_ANGLE_XPATH = GMSH_XPATH + "/DeflectionAngle"

src/ceasiompy/CPACS2GMSH/__specs__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
from ceasiompy.utils.moduleinterfaces import CPACSInOut
1818

19-
from ceasiompy import log
2019
from ceasiompy.utils.commonxpaths import SU2MESH_XPATH
2120
from ceasiompy.CPACS2GMSH import (
2221
INCLUDE_GUI,
@@ -42,7 +41,6 @@
4241
GMSH_GROWTH_RATIO_XPATH,
4342
GMSH_GROWTH_FACTOR_XPATH,
4443
GMSH_FEATURE_ANGLE_XPATH,
45-
GMSH_SURFACE_MESH_SIZE_XPATH,
4644
GMSH_EXPORT_PROP_XPATH,
4745
GMSH_INTAKE_PERCENT_XPATH,
4846
GMSH_EXHAUST_PERCENT_XPATH,
@@ -325,18 +323,6 @@
325323
gui_group="RANS options",
326324
)
327325

328-
cpacs_inout.add_input(
329-
var_name="surface_mesh_factor",
330-
var_type=float,
331-
default_value=5,
332-
unit="[10^-3]",
333-
descr="Surface mesh size factor compared to aircraft largest dimension (omogeneus everywhere)",
334-
xpath=GMSH_SURFACE_MESH_SIZE_XPATH,
335-
gui=INCLUDE_GUI,
336-
gui_name="Surface mesh size",
337-
gui_group="RANS options",
338-
)
339-
340326
cpacs_inout.add_input(
341327
var_name="export_propellers",
342328
var_type=bool,

src/ceasiompy/CPACS2GMSH/cpacs2gmsh.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ def run_cpacs2gmsh(cpacs: CPACS, wkdir: Path, surf: str = None, angle: str = Non
9999
max_layer_thickness,
100100
growth_factor,
101101
growth_ratio,
102-
min_max_mesh_factor,
103102
feature_angle,
104103
) = retrieve_gui_values(tixi)
105104

src/ceasiompy/CPACS2GMSH/func/utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
GMSH_MAX_THICKNESS_LAYER_XPATH,
5252
GMSH_GROWTH_FACTOR_XPATH,
5353
GMSH_GROWTH_RATIO_XPATH,
54-
GMSH_SURFACE_MESH_SIZE_XPATH,
5554
GMSH_FEATURE_ANGLE_XPATH,
5655
)
5756

@@ -274,8 +273,6 @@ def retrieve_gui_values(tixi: Tixi3):
274273
growth_factor = get_value(tixi, GMSH_GROWTH_FACTOR_XPATH)
275274
growth_ratio = get_value(tixi, GMSH_GROWTH_RATIO_XPATH)
276275

277-
min_max_mesh_factor = get_value(tixi, GMSH_SURFACE_MESH_SIZE_XPATH)
278-
279276
feature_angle = get_value(tixi, GMSH_FEATURE_ANGLE_XPATH)
280277

281278
return (

0 commit comments

Comments
 (0)