Skip to content

Conversation

lsawade
Copy link
Collaborator

@lsawade lsawade commented Aug 22, 2025

Description

  • Creates Source medium
  • Creates compute_source_array 3D
  • Adds unit-tests for compute_source_array in 3D
  • Adds two flags:
    • CPP20_CHANGE -> Syntax will have to change due to C++ 20 update
    • EXTENT_IMPL_CHANGE -> Syntax needs to change due to Kokkos 4.7

Issue Number

If there is an issue created for these changes, link it here

Checklist

Please make sure to check developer documentation on specfem docs.

  • I ran the code through pre-commit to check style
  • THE DOCUMENTATION BUILDS WITHOUT WARNINGS/ERRORS
  • I have added labels to the PR (see right hand side of the PR page)
  • My code passes all the integration tests
  • I have added sufficient unittests to test my changes
  • I have added/updated documentation for the changes I am proposing
  • I have updated CMakeLists to ensure my code builds
  • My code builds across all platforms

@lsawade lsawade requested review from Rohit-Kakodkar and icui August 22, 2025 21:41
Base automatically changed from issue-990 to devel August 25, 2025 14:09
Copy link
Collaborator

@Rohit-Kakodkar Rohit-Kakodkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments

Comment on lines 20 to 27
// EXTENT_IMPL_CHANGE
template <typename T, int Rank> struct ExtentImpl {
using type = typename ExtentImpl<T, Rank - 1>::type *;
};

template <typename T> struct ExtentImpl<T, 0> {
using type = T;
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be in an impl namespace or a tpp file.

Copy link
Collaborator Author

@lsawade lsawade Aug 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will try to use kokkos extents which should be supported from 4.7.00

@lsawade lsawade merged commit 0f774e9 into devel Aug 28, 2025
8 checks passed
@lsawade lsawade deleted the issue-990-assembly-sources branch August 28, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants