@@ -691,8 +691,8 @@ void ChAssembly::IntStateGather(const unsigned int off_x,
691
691
const unsigned int off_v,
692
692
ChStateDelta& v,
693
693
double & T) {
694
- unsigned int displ_x = off_x - this ->offset_x ;
695
- unsigned int displ_v = off_v - this ->offset_w ;
694
+ int displ_x = off_x - this ->offset_x ;
695
+ int displ_v = off_v - this ->offset_w ;
696
696
697
697
for (auto & body : bodylist) {
698
698
if (body->IsActive ())
@@ -730,8 +730,8 @@ void ChAssembly::IntStateScatter(const unsigned int off_x,
730
730
// - in particular, bodies and meshes must be processed *before* links, so that links can use
731
731
// up-to-date body and node information
732
732
733
- unsigned int displ_x = off_x - this ->offset_x ;
734
- unsigned int displ_v = off_v - this ->offset_w ;
733
+ int displ_x = off_x - this ->offset_x ;
734
+ int displ_v = off_v - this ->offset_w ;
735
735
736
736
for (auto & body : bodylist) {
737
737
if (body->IsActive ())
@@ -770,7 +770,7 @@ void ChAssembly::IntStateScatter(const unsigned int off_x,
770
770
}
771
771
772
772
void ChAssembly::IntStateGatherAcceleration (const unsigned int off_a, ChStateDelta& a) {
773
- unsigned int displ_a = off_a - this ->offset_w ;
773
+ int displ_a = off_a - this ->offset_w ;
774
774
775
775
for (auto & body : bodylist) {
776
776
if (body->IsActive ())
@@ -795,7 +795,7 @@ void ChAssembly::IntStateGatherAcceleration(const unsigned int off_a, ChStateDel
795
795
796
796
// From state derivative (acceleration) to system, sometimes might be needed
797
797
void ChAssembly::IntStateScatterAcceleration (const unsigned int off_a, const ChStateDelta& a) {
798
- unsigned int displ_a = off_a - this ->offset_w ;
798
+ int displ_a = off_a - this ->offset_w ;
799
799
800
800
for (auto & body : bodylist) {
801
801
if (body->IsActive ())
@@ -820,7 +820,7 @@ void ChAssembly::IntStateScatterAcceleration(const unsigned int off_a, const ChS
820
820
821
821
// From system to reaction forces (last computed) - some timestepper might need this
822
822
void ChAssembly::IntStateGatherReactions (const unsigned int off_L, ChVectorDynamic<>& L) {
823
- unsigned int displ_L = off_L - this ->offset_L ;
823
+ int displ_L = off_L - this ->offset_L ;
824
824
825
825
for (auto & body : bodylist) {
826
826
if (body->IsActive ())
@@ -845,7 +845,7 @@ void ChAssembly::IntStateGatherReactions(const unsigned int off_L, ChVectorDynam
845
845
846
846
// From reaction forces to system, ex. store last computed reactions in ChLinkBase objects for plotting etc.
847
847
void ChAssembly::IntStateScatterReactions (const unsigned int off_L, const ChVectorDynamic<>& L) {
848
- unsigned int displ_L = off_L - this ->offset_L ;
848
+ int displ_L = off_L - this ->offset_L ;
849
849
850
850
for (auto & body : bodylist) {
851
851
if (body->IsActive ())
@@ -874,8 +874,8 @@ void ChAssembly::IntStateIncrement(const unsigned int off_x,
874
874
const ChState& x,
875
875
const unsigned int off_v,
876
876
const ChStateDelta& Dv) {
877
- unsigned int displ_x = off_x - this ->offset_x ;
878
- unsigned int displ_v = off_v - this ->offset_w ;
877
+ int displ_x = off_x - this ->offset_x ;
878
+ int displ_v = off_v - this ->offset_w ;
879
879
880
880
for (auto & body : bodylist) {
881
881
if (body->IsActive ())
@@ -907,8 +907,8 @@ void ChAssembly::IntStateGetIncrement(const unsigned int off_x,
907
907
const ChState& x,
908
908
const unsigned int off_v,
909
909
ChStateDelta& Dv) {
910
- unsigned int displ_x = off_x - this ->offset_x ;
911
- unsigned int displ_v = off_v - this ->offset_w ;
910
+ int displ_x = off_x - this ->offset_x ;
911
+ int displ_v = off_v - this ->offset_w ;
912
912
913
913
for (auto & body : bodylist) {
914
914
if (body->IsActive ())
@@ -939,7 +939,7 @@ void ChAssembly::IntLoadResidual_F(const unsigned int off, ///< offset in R res
939
939
ChVectorDynamic<>& R, // /< result: the R residual, R += c*F
940
940
const double c) // /< a scaling factor
941
941
{
942
- unsigned int displ_v = off - this ->offset_w ;
942
+ int displ_v = off - this ->offset_w ;
943
943
944
944
for (auto & body : bodylist) {
945
945
if (body->IsActive ())
@@ -967,7 +967,7 @@ void ChAssembly::IntLoadResidual_Mv(const unsigned int off, ///< offset in
967
967
const ChVectorDynamic<>& w, // /< the w vector
968
968
const double c // /< a scaling factor
969
969
) {
970
- unsigned int displ_v = off - this ->offset_w ;
970
+ int displ_v = off - this ->offset_w ;
971
971
972
972
for (auto & body : bodylist) {
973
973
if (body->IsActive ())
@@ -991,7 +991,7 @@ void ChAssembly::IntLoadResidual_Mv(const unsigned int off, ///< offset in
991
991
}
992
992
993
993
void ChAssembly::IntLoadLumpedMass_Md (const unsigned int off, ChVectorDynamic<>& Md, double & err, const double c) {
994
- unsigned int displ_v = off - this ->offset_w ;
994
+ int displ_v = off - this ->offset_w ;
995
995
996
996
for (auto & body : bodylist) {
997
997
if (body->IsActive ())
@@ -1019,7 +1019,7 @@ void ChAssembly::IntLoadResidual_CqL(const unsigned int off_L, ///< offset in
1019
1019
const ChVectorDynamic<>& L, // /< the L vector
1020
1020
const double c // /< a scaling factor
1021
1021
) {
1022
- unsigned int displ_L = off_L - this ->offset_L ;
1022
+ int displ_L = off_L - this ->offset_L ;
1023
1023
1024
1024
for (auto & body : bodylist) {
1025
1025
if (body->IsActive ())
@@ -1048,7 +1048,7 @@ void ChAssembly::IntLoadConstraint_C(const unsigned int off_L, ///< offset in Q
1048
1048
bool do_clamp, // /< apply clamping to c*C?
1049
1049
double recovery_clamp // /< value for min/max clamping of c*C
1050
1050
) {
1051
- unsigned int displ_L = off_L - this ->offset_L ;
1051
+ int displ_L = off_L - this ->offset_L ;
1052
1052
1053
1053
for (auto & body : bodylist) {
1054
1054
if (body->IsActive ())
@@ -1075,7 +1075,7 @@ void ChAssembly::IntLoadConstraint_Ct(const unsigned int off_L, ///< offset in
1075
1075
ChVectorDynamic<>& Qc, // /< result: the Qc residual, Qc += c*Ct
1076
1076
const double c // /< a scaling factor
1077
1077
) {
1078
- unsigned int displ_L = off_L - this ->offset_L ;
1078
+ int displ_L = off_L - this ->offset_L ;
1079
1079
1080
1080
for (auto & body : bodylist) {
1081
1081
if (body->IsActive ())
@@ -1104,8 +1104,8 @@ void ChAssembly::IntToDescriptor(const unsigned int off_v,
1104
1104
const unsigned int off_L,
1105
1105
const ChVectorDynamic<>& L,
1106
1106
const ChVectorDynamic<>& Qc) {
1107
- unsigned int displ_L = off_L - this ->offset_L ;
1108
- unsigned int displ_v = off_v - this ->offset_w ;
1107
+ int displ_L = off_L - this ->offset_L ;
1108
+ int displ_v = off_v - this ->offset_w ;
1109
1109
1110
1110
for (auto & body : bodylist) {
1111
1111
if (body->IsActive ())
@@ -1136,8 +1136,8 @@ void ChAssembly::IntFromDescriptor(const unsigned int off_v,
1136
1136
ChStateDelta& v,
1137
1137
const unsigned int off_L,
1138
1138
ChVectorDynamic<>& L) {
1139
- unsigned int displ_L = off_L - this ->offset_L ;
1140
- unsigned int displ_v = off_v - this ->offset_w ;
1139
+ int displ_L = off_L - this ->offset_L ;
1140
+ int displ_v = off_v - this ->offset_w ;
1141
1141
1142
1142
for (auto & body : bodylist) {
1143
1143
if (body->IsActive ())
0 commit comments