Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
103b37d5
Commit
103b37d5
authored
Apr 01, 2009
by
mattijs
Browse files
unmapped particle did not get cellID set
parent
731ae70e
Changes
3
Hide whitespace changes
Inline
Side-by-side
applications/utilities/preProcessing/mapFields/mapLagrangian.C
View file @
103b37d5
...
...
@@ -223,6 +223,7 @@ void mapLagrangian(const meshToMesh& meshToMeshInterp)
{
unmappedSource
.
erase
(
sourceParticleI
);
addParticles
.
append
(
sourceParticleI
);
iter
().
cell
()
=
targetCell
;
targetParcels
.
addParticle
(
sourceParcels
.
remove
(
&
iter
())
...
...
src/lagrangian/basic/Particle/Particle.H
View file @
103b37d5
...
...
@@ -329,6 +329,9 @@ public:
//- Return current particle position
inline
vector
&
position
();
//- Return current cell particle is in
inline
label
&
cell
();
//- Return current cell particle is in
inline
label
cell
()
const
;
...
...
src/lagrangian/basic/Particle/ParticleI.H
View file @
103b37d5
...
...
@@ -303,6 +303,12 @@ inline label Particle<ParticleType>::cell() const
return
celli_
;
}
template
<
class
ParticleType
>
inline
label
&
Particle
<
ParticleType
>::
cell
()
{
return
celli_
;
}
template
<
class
ParticleType
>
inline
label
Particle
<
ParticleType
>::
face
()
const
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment