Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sdpm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aerospace and Mechanical Engineering
sdpm
Commits
0c2bedbf
Commit
0c2bedbf
authored
11 months ago
by
Adrien Crovato
Browse files
Options
Downloads
Patches
Plain Diff
Fix type.
parent
fddceb4d
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Version 1.2
Pipeline
#23815
passed with warnings
11 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sdpm/src/sdpmBody.cpp
+2
-2
2 additions, 2 deletions
sdpm/src/sdpmBody.cpp
with
2 additions
and
2 deletions
sdpm/src/sdpmBody.cpp
+
2
−
2
View file @
0c2bedbf
...
@@ -179,9 +179,9 @@ void Body::setNodes(std::vector<std::vector<double>> const &coords)
...
@@ -179,9 +179,9 @@ void Body::setNodes(std::vector<std::vector<double>> const &coords)
throw
std
::
runtime_error
(
"sdpm::Problem: size of coordinates vector must be equal to the number of nodes!
\n
"
);
throw
std
::
runtime_error
(
"sdpm::Problem: size of coordinates vector must be equal to the number of nodes!
\n
"
);
// Set nodes coordinates
// Set nodes coordinates
for
(
size_t
i
=
0
;
i
<
_nodes
.
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
_nodes
.
size
();
++
i
)
_nodes
[
i
]
->
setCoords
(
sdpmVector3d
(
coords
[
i
]
.
data
()
));
_nodes
[
i
]
->
setCoords
(
sdpmVector3d
(
coords
[
i
]
[
0
],
coords
[
i
][
1
],
coords
[
i
][
2
]
));
// Update wake
// Update wake
d
ouble
dx
=
_wake
->
getLagMap
().
at
(
_wake
->
getElements
()[
0
]);
// dx = dt of first cell
sdpmD
ouble
dx
=
_wake
->
getLagMap
().
at
(
_wake
->
getElements
()[
0
]);
// dx = dt of first cell
size_t
nTe
=
_teNodes
.
size
();
size_t
nTe
=
_teNodes
.
size
();
std
::
vector
<
Node
*>
wkNodes
=
_wake
->
getNodes
();
std
::
vector
<
Node
*>
wkNodes
=
_wake
->
getNodes
();
for
(
size_t
i
=
1
;
i
<
wkNodes
.
size
()
/
nTe
;
++
i
)
for
(
size_t
i
=
1
;
i
<
wkNodes
.
size
()
/
nTe
;
++
i
)
...
...
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