Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
robotran
mbsysc
Commits
2884668a
Commit
2884668a
authored
Jan 10, 2019
by
Sébastien Timmermans
Browse files
[Error mgmt] Update part error codes in mbs_part
parent
4d014e38
Changes
2
Hide whitespace changes
Inline
Side-by-side
MBsysC/mbs_common/mbs_module/mbs_part.c
View file @
2884668a
...
...
@@ -218,10 +218,10 @@ int PART_coord_part(MbsData* mbs_data, MbsPart* mbs_part, int* ind_u_des, int n
Real_Rank
=
mbs_rank_0
(
Jac
,
nl_JAC
,
nc_JAC
);
// calcul du rang reel de Jac pour q random
if
(
Real_Rank
<
0
)
if
(
Real_Rank
<
0
)
// Error management
{
mbs_msg
(
">>PART>> Error in mbs_rank_0 during computation of real rank of Jacobian matrix
\n
"
);
return
-
1
1
;
return
-
1
0
+
Real_Rank
;
}
copy_dvec_0
(
q_safe
,
&
(
mbs_data
->
q
[
1
]),
mbs_data
->
njoint
);
...
...
@@ -273,7 +273,7 @@ int PART_coord_part(MbsData* mbs_data, MbsPart* mbs_part, int* ind_u_des, int n
// Check the user choice for independent coordinates
if
(
irk
<
Real_Rank
)
// choix mauvais -
e
rr
eur
if
(
irk
<
Real_Rank
)
// choix mauvais -
E
rr
or management
{
mbs_msg
(
">>PART>> Error in LU Decomposition during PART_lutot
\n
"
);
mbs_msg
(
">>PART>> Rank after LU : %d
\n
"
,
irk
);
...
...
@@ -285,7 +285,7 @@ int PART_coord_part(MbsData* mbs_data, MbsPart* mbs_part, int* ind_u_des, int n
mbs_msg
(
">>PART>>
\n
"
);
mbs_msg
(
">>PART>> mbs_coord_part: wrong choice for the independent variable set - Jv matrix singular
\n
"
);
mbs_msg
(
">>PART>> Check your choice of your joint natures (especially in your loops)
\n
"
);
return
-
2
1
;
return
-
1
12
;
}
else
// choix valide
{
...
...
@@ -421,10 +421,10 @@ void mbs_run_part(MbsPart* mbs_part, MbsData* mbs_data)
{
mbs_msg
(
">>PART>> The coordinate partitioning is not required for this system (because it is unconstrained) !
\n
"
);
if
(
mbs_data
->
nqv
)
if
(
mbs_data
->
nqv
)
// Error management
{
mbs_msg
(
">>PART>> Dependant variables are used only in systems with constraints. Check the nature of your variables.
\n
"
);
mbs_error_msg
(
" [%d] in mbs_run_part !!
\n
"
,
-
1
3
0
);
mbs_error_msg
(
" [%d] in mbs_run_part !!
\n
"
,
-
1
0
0
);
}
}
...
...
@@ -477,7 +477,7 @@ void mbs_run_part(MbsPart* mbs_part, MbsData* mbs_data)
err
=
PART_coord_part
(
mbs_data
,
mbs_part
,
ind_u_des
,
mbs_data
->
nqu
,
ind_c
,
mbs_data
->
nqc
,
1
);
// d'abord on cherche un choix valable
if
(
err
<
0
)
if
(
err
<
0
)
// Error management
{
mbs_msg
(
">>PART>>
\n
"
);
mbs_msg
(
">>PART>> ***** mbs_run_part : Coordinate partitioning interrupted : *****
\n
"
);
...
...
MBsysC/mbs_common/mbs_numerics/eig_lapack.c
View file @
2884668a
...
...
@@ -9,7 +9,7 @@
#include
<stdio.h>
#include
<math.h>
#include
"mbs_message.h"
/**
* Implementation of eig function using lapacke
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment