Skip to content

Commit 5393e63

Browse files
committed
Suppress more info messages
1 parent 37b2236 commit 5393e63

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ram_geometry.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ This constructor builds a complete aerodynamic model by:
441441
- `remove_nan=true`: Interpolate NaN values in aerodynamic data
442442
- `alpha_range=deg2rad.(-5:1:20)`: Angle of attack range for polars (rad)
443443
- `delta_range=deg2rad.(-5:1:20)`: Trailing edge deflection range for polars (rad)
444+
- prn=true: if info messages shall be printed
444445
445446
# Returns
446447
A fully initialized `RamAirWing` instance ready for aerodynamic simulation.
@@ -479,7 +480,7 @@ function RamAirWing(
479480
info_path = obj_path[1:end-4] * "_info.bin"
480481

481482
if !ispath(info_path)
482-
@info "Reading $obj_path"
483+
! prn || @info "Reading $obj_path"
483484
vertices, faces = read_faces(obj_path)
484485
T_cad_body = center_to_com!(vertices, faces)
485486
inertia_tensor = calculate_inertia_tensor(vertices, faces, mass, zeros(3))
@@ -492,12 +493,12 @@ function RamAirWing(
492493
circle_center_z, radius, gamma_tip = find_circle_center_and_radius(vertices)
493494
le_interp, te_interp, area_interp = create_interpolations(vertices, circle_center_z, radius, gamma_tip, R_cad_body; interp_steps)
494495

495-
@info "Writing $info_path"
496+
! prn || @info "Writing $info_path"
496497
serialize(info_path, (inertia_tensor, T_cad_body, R_cad_body, radius, gamma_tip,
497498
le_interp, te_interp, area_interp))
498499
end
499500

500-
@info "Loading kite info from $info_path and polars from $polar_path"
501+
! prn || @info "Loading kite info from $info_path and polars from $polar_path"
501502
try
502503
(inertia_tensor::Matrix, T_cad_body::Vector, R_cad_body::Matrix,
503504
radius::Real, gamma_tip::Real, le_interp, te_interp, area_interp) = deserialize(info_path)

0 commit comments

Comments
 (0)