diff --git a/src/optimal_control_model-setters.jl b/src/optimal_control_model-setters.jl index 9910cf7..92af36a 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 baac403..97c75cb 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 71e9291..9b91982 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