Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor change to search_mesh_3d function definition #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/pumipic_adjacency.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,12 @@ OMEGA_H_DEVICE bool isPointWithinElemTet(const o::LOs& mesh2verts,
return isPointWithinElemTet(mesh2verts, coords, pos, elem, bcc, tol);
}

template < class ParticleType, typename Segment3d, typename SegmentInt >
template < class ParticleStruct, typename CurrentCoordView,
typename TargetCoordView, typename SegmentInt>
bool search_mesh_3d(o::Mesh& mesh, // (in) mesh
ParticleStructure< ParticleType >* ptcls, // (in) particle structure
Segment3d x_ps_d, // (in) starting particle positions
Segment3d xtgt_ps_d, // (in) target particle positions
ParticleStruct* ptcls, // (in) particle structure
CurrentCoordView x_ps_d, // (in) starting particle positions
TargetCoordView xtgt_ps_d, // (in) target particle positions
SegmentInt pid_d, // (in) particle ids
o::Write<o::LO>& elem_ids, // (out) parent element ids for the target positions
o::Write<o::Real>& xpoints_d, // (out) particle-boundary intersection points
Expand Down
Loading