Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tbgl
tools
arbd
Commits
7785a80d
Commit
7785a80d
authored
9 years ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
reordered initializers to avoid warning messages
parent
49ec7262
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
RigidBody.h
+1
-1
1 addition, 1 deletion
RigidBody.h
RigidBodyController.h
+3
-3
3 additions, 3 deletions
RigidBodyController.h
RigidBodyType.h
+2
-2
2 additions, 2 deletions
RigidBodyType.h
with
6 additions
and
6 deletions
RigidBody.h
+
1
−
1
View file @
7785a80d
...
...
@@ -40,7 +40,7 @@ class RigidBody { // host side representation of rigid bodies
// HOST DEVICE void integrate(Vector3& old_trans, Matrix3& old_rot, int startFinishAll);
// HOST DEVICE void integrate(Vector3& old_trans, Matrix3& old_rot, int startFinishAll);
HOST
DEVICE
void
integrate
(
int
startFinishAll
);
void
integrate
(
int
startFinishAll
);
// HOST DEVICE inline String getKey() const { return key; }
// HOST DEVICE inline String getKey() const { return t->name; }
...
...
This diff is collapsed.
Click to expand it.
RigidBodyController.h
+
3
−
3
View file @
7785a80d
...
...
@@ -6,7 +6,7 @@
#include
<cuda_runtime.h>
// #define NUMTHREADS 128 /* try with 64, every 32+ */
#define NUMTHREADS 6
4
#define NUMTHREADS
9
6
#define NUMSTREAMS 8
class
Configuration
;
...
...
@@ -46,8 +46,6 @@ private:
static
const
int
numThreads
=
NUMTHREADS
;
bool
isPmf
;
RigidBodyType
*
type1
;
RigidBodyType
*
type2
;
RigidBody
*
rb1
;
...
...
@@ -56,6 +54,8 @@ private:
std
::
vector
<
int
>
gridKeyId1
;
std
::
vector
<
int
>
gridKeyId2
;
std
::
vector
<
int
>
numBlocks
;
bool
isPmf
;
std
::
vector
<
Vector3
*>
forces
;
std
::
vector
<
Vector3
*>
forces_d
;
...
...
This diff is collapsed.
Click to expand it.
RigidBodyType.h
+
2
−
2
View file @
7785a80d
...
...
@@ -35,8 +35,8 @@ public:
RigidBodyType
(
const
String
&
name
=
""
)
:
name
(
name
),
num
(
0
),
reservoir
(
NULL
),
mass
(
1.0
f
),
inertia
(),
transDamping
(),
rotDamping
(),
numPotGrid
s
(
0
),
numDenGrids
(
0
),
numPmfs
(
0
),
initPo
s
(),
initRot
(
Matrix3
(
1.0
f
))
{
}
rotDamping
(),
initPo
s
(),
initRot
(
Matrix3
(
1.0
f
)
),
numPotGrid
s
(
0
),
numDenGrids
(
0
),
numPmfs
(
0
)
{
}
/* RigidBodyType(const RigidBodyType& src) { copy(src); } */
~
RigidBodyType
()
{
clear
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment