Skip to content

Conversation

@rchen20
Copy link
Member

@rchen20 rchen20 commented Dec 10, 2025

Summary

  • This PR is a refactoring
  • It does the following:
    • Refactors FEMSWEEP to read in a file to populate mesh connectivity data.

allocAndInitDataRandValue (m_M0dat , m_M0len , vid);
allocAndInitDataRandValue (m_Xdat , m_Xlen , vid);

// Read mesh connectivity data from file.
Copy link
Member

Choose a reason for hiding this comment

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

This should probably use allocForInit instead of copying the data through an extra buffer. See an example here.

auto reset_bins = allocDataForInit(m_bins, getActualProblemSize(), vid);

@MrBurmark
Copy link
Member

Does reading the data also affect the problem size, number of elements, etc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants