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

PCMS interpolation functionality #148

Open
wants to merge 58 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
6aa1ca3
added adj_search.hpp header in MLSInterpolation.hpp file
abhiyan123 Sep 22, 2024
14f82b2
added regular grid linear interpolator and mls interpolator
abhiyan123 Sep 22, 2024
12a26bb
added interpolator subdirectory
abhiyan123 Sep 22, 2024
a3b97f3
added the interpolator folder with header files for MLS and linear me…
abhiyan123 Sep 22, 2024
e3ac60b
removed hdf5 header
abhiyan123 Sep 23, 2024
ec486e7
removed unnecessary files
abhiyan123 Sep 23, 2024
9ec0f44
Merge pull request #1 from abhiyanpaudel/interpolator
Fuad-HH Sep 24, 2024
749be28
enforce number of support
Fuad-HH Sep 24, 2024
cca0eca
can use any dimension and degree of polynomial
abhiyan123 Sep 24, 2024
418fb08
Merge branch 'mls_generalMLS' into general_mls
abhiyan123 Sep 24, 2024
1ddc29c
added test cases
abhiyan123 Sep 24, 2024
eda1048
moved interpolator folder to pcms
abhiyan123 Oct 10, 2024
b90cbaf
modified to incorporate interpolator
abhiyan123 Oct 10, 2024
5cd5869
updated the file
abhiyan123 Oct 10, 2024
92d0183
deleted unneceesary files
abhiyan123 Oct 10, 2024
5b72727
variable radius for degas2
Fuad-HH Oct 21, 2024
1bc767b
cleaned up the basis monomial calculation
abhiyan123 Oct 21, 2024
c052240
made it general
abhiyan123 Oct 21, 2024
8319c3d
updated the test cases that verifies the monomial basis calculations
abhiyan123 Oct 21, 2024
b9537dc
added unit test case that verifies the basis calculation
abhiyan123 Oct 21, 2024
174cf92
updated .gitignore file
abhiyan123 Oct 21, 2024
b65cee8
made changes to accomodate general mls procedure
abhiyan123 Oct 25, 2024
7021f91
compatible with the generalized mls
abhiyan123 Oct 28, 2024
723bcdf
added test case file name
abhiyan123 Oct 28, 2024
d5bd614
created the test case for generalized mls
abhiyan123 Oct 28, 2024
a14cf7d
merge general order interpolation changes from abhiyan's fork
Fuad-HH Oct 28, 2024
810b760
move include adj_search_dega2.hpp from MLSInterpolation.hpp to test_r…
Fuad-HH Oct 29, 2024
5609874
radius adaptation for adj_search
Fuad-HH Oct 29, 2024
f337543
added Nan Check
abhiyan123 Oct 29, 2024
726e6ff
formatted the files
abhiyan123 Oct 29, 2024
0b3b202
Merge pull request #7 from abhiyanpaudel/general_mls
Fuad-HH Oct 29, 2024
a7b5e33
revert clangformatting in CMakeLists.txt and remove const from suppor…
Fuad-HH Oct 29, 2024
1f60fe1
merge centroid->node interp with general
Fuad-HH Oct 31, 2024
a2b1563
refactor
Fuad-HH Nov 1, 2024
8e6873a
radius adaptation option added for cell2node search
Fuad-HH Nov 1, 2024
4c93f4a
renamed test sections
abhiyan123 Nov 11, 2024
cd88d53
interface for passing various rbf functions
abhiyan123 Nov 18, 2024
5acab5e
updated the CMake list to include the new files
abhiyan123 Nov 18, 2024
cc8e3d8
changes to accomodate interface
abhiyan123 Nov 18, 2024
ec57a6d
changes to accomodate interface
abhiyan123 Nov 18, 2024
c888f28
updated test CMake list
abhiyan123 Nov 18, 2024
27453c6
added pcms_interpolator target
abhiyan123 Dec 3, 2024
f9bd120
set target properties for pcms_interpolator
abhiyan123 Dec 3, 2024
2ba0322
updated with kokkos kernels LU solver
abhiyan123 Dec 3, 2024
52dc62a
upgraded to kokkos kernels
abhiyan123 Dec 3, 2024
10f0b51
add radial basis function choices for user
abhiyan123 Dec 3, 2024
8e8e7fb
added and updated test cases
abhiyan123 Dec 3, 2024
cf60f99
Merge pull request #14 from abhiyanpaudel/general_mls
Fuad-HH Dec 5, 2024
b1cfb1f
Merge branch develop into mls_interpolation
jacobmerson Dec 18, 2024
90b5218
make functions inline to compile
jacobmerson Dec 18, 2024
4b3cbe1
removed target_include_directories
abhiyan123 Jan 21, 2025
ab71480
added comments and kokkoskernel dot product function
abhiyan123 Jan 21, 2025
f5e55c3
added comments
abhiyan123 Jan 21, 2025
90bff10
consistent naming of the class
abhiyan123 Jan 21, 2025
799ff6d
updated to consistent naming of the class
abhiyan123 Jan 21, 2025
e63e3af
changed the matrix name from A to P for consistency
abhiyan123 Jan 21, 2025
d5ae099
updates
abhiyan123 Jan 21, 2025
7e7b2c1
merged
abhiyan123 Jan 21, 2025
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
Prev Previous commit
Next Next commit
make functions inline to compile
This is a workaround for multiple definition errors. Functions that are
not templated should be moved to the cpp files.
  • Loading branch information
jacobmerson committed Dec 18, 2024
commit 90b52183094a78bd79d29f1bfce3f831eef800f3
12 changes: 6 additions & 6 deletions src/pcms/interpolator/adj_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Real calculateDistance(const Real* p1, const Real* p2, const int dim)
return dx * dx + dy * dy + dz * dz;
}

void checkTargetPoints(
inline void checkTargetPoints(
const Kokkos::View<pcms::GridPointSearch::Result*>& results)
{
Kokkos::fence();
Expand All @@ -43,7 +43,7 @@ void checkTargetPoints(
printf("\n");
}

void printSupportsForTarget(const LO target_id, const Write<LO>& supports_ptr,
inline void printSupportsForTarget(const LO target_id, const Write<LO>& supports_ptr,
const Write<LO>& nSupports,
const Write<LO>& support_idx)
{
Expand Down Expand Up @@ -84,7 +84,7 @@ class FindSupports
Write<Real>& radii2, bool is_build_csr_call);
};

void FindSupports::adjBasedSearch(Write<LO>& supports_ptr, Write<LO>& nSupports,
inline void FindSupports::adjBasedSearch(Write<LO>& supports_ptr, Write<LO>& nSupports,
Write<LO>& support_idx, Write<Real>& radii2,
bool is_build_csr_call)
{
Expand Down Expand Up @@ -226,7 +226,7 @@ void FindSupports::adjBasedSearch(Write<LO>& supports_ptr, Write<LO>& nSupports,
}
}

void FindSupports::adjBasedSearchCentroidNodes(Write<LO>& supports_ptr,
inline void FindSupports::adjBasedSearchCentroidNodes(Write<LO>& supports_ptr,
Write<LO>& nSupports,
Write<LO>& support_idx,
Write<Real>& radii2,
Expand Down Expand Up @@ -357,7 +357,7 @@ struct SupportResults
Write<Real> radii2; // squared radii of the supports
};

SupportResults searchNeighbors(Mesh& source_mesh, Mesh& target_mesh,
inline SupportResults searchNeighbors(Mesh& source_mesh, Mesh& target_mesh,
Real& cutoffDistance, LO min_req_support = 12,
bool adapt_radius = true)
{
Expand Down Expand Up @@ -459,7 +459,7 @@ SupportResults searchNeighbors(Mesh& source_mesh, Mesh& target_mesh,
return support;
}

SupportResults searchNeighbors(Mesh& mesh, Real cutoffDistance,
inline SupportResults searchNeighbors(Mesh& mesh, Real cutoffDistance,
LO min_support = 12, bool adapt_radius = true)
{
SupportResults support;
Expand Down
Loading