From 667741073b84ce3d645ba130a1d278d7499763c7 Mon Sep 17 00:00:00 2001 From: ocots <66357348+ocots@users.noreply.github.com> Date: Sat, 14 Dec 2024 00:29:31 +0000 Subject: [PATCH] :robot: Format .jl files --- src/optimal_control_model-setters.jl | 8 ++++---- src/optimal_control_model-type.jl | 8 ++++---- src/repl.jl | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/optimal_control_model-setters.jl b/src/optimal_control_model-setters.jl index 9910cf7d..92af36a1 100644 --- a/src/optimal_control_model-setters.jl +++ b/src/optimal_control_model-setters.jl @@ -638,8 +638,8 @@ function constraint!( BoundaryConstraint!((r, x0, xf) -> (@views r[:] .= x0[rg]; nothing), V) else BoundaryConstraint!( - (r, x0, xf, v) -> (@views r[:] .= x0[rg]; nothing), V - ) + (r, x0, xf, v) -> (@views r[:] .= x0[rg]; nothing), V + ) end else if V == Fixed @@ -653,8 +653,8 @@ function constraint!( BoundaryConstraint!((r, x0, xf) -> (@views r[:] .= xf[rg]; nothing), V) else BoundaryConstraint!( - (r, x0, xf, v) -> (@views r[:] .= xf[rg]; nothing), V - ) + (r, x0, xf, v) -> (@views r[:] .= xf[rg]; nothing), V + ) end else if V == Fixed diff --git a/src/optimal_control_model-type.jl b/src/optimal_control_model-type.jl index baac403c..97c75cbd 100644 --- a/src/optimal_control_model-type.jl +++ b/src/optimal_control_model-type.jl @@ -264,7 +264,7 @@ Throw ```UnauthorizedCall``` exception if the state of an ocp is not set. """ function __check_state_set(ocp::OptimalControlModel) return __is_state_not_set(ocp) && - throw(UnauthorizedCall("the state dimension has to be set before.")) + throw(UnauthorizedCall("the state dimension has to be set before.")) end """ @@ -275,7 +275,7 @@ Throw ```UnauthorizedCall``` exception if the control of an ocp is not set. """ function __check_control_set(ocp::OptimalControlModel) return __is_control_not_set(ocp) && - throw(UnauthorizedCall("the control dimension has to be set before.")) + throw(UnauthorizedCall("the control dimension has to be set before.")) end """ @@ -286,7 +286,7 @@ Throw ```UnauthorizedCall``` exception if the time of an ocp is not set. """ function __check_is_time_set(ocp::OptimalControlModel) return __is_time_not_set(ocp) && - throw(UnauthorizedCall("the time dimension has to be set before.")) + throw(UnauthorizedCall("the time dimension has to be set before.")) end """ @@ -297,7 +297,7 @@ Throw ```UnauthorizedCall``` exception if the variable of an ocp is not set. """ function __check_variable_set(ocp::OptimalControlModel{<:TimeDependence,NonFixed}) return __is_variable_not_set(ocp) && - throw(UnauthorizedCall("the variable dimension has to be set before.")) + throw(UnauthorizedCall("the variable dimension has to be set before.")) end """ diff --git a/src/repl.jl b/src/repl.jl index 71e92911..9b91982b 100644 --- a/src/repl.jl +++ b/src/repl.jl @@ -150,9 +150,9 @@ function ct_repl(; debug=false, verbose=false) nothing else begin - println("\n", string($ct_repl_data.ocp_name)) - $(ct_repl_data.ocp_name) - end + println("\n", string($ct_repl_data.ocp_name)) + $(ct_repl_data.ocp_name) + end end end return q