Skip to content

peleparams: common data container for PMF, transport (others in future)#507

Merged
baperry2 merged 3 commits intoAMReX-Combustion:developmentfrom
baperry2:peleparams
Jun 7, 2024
Merged

peleparams: common data container for PMF, transport (others in future)#507
baperry2 merged 3 commits intoAMReX-Combustion:developmentfrom
baperry2:peleparams

Conversation

@baperry2
Copy link
Copy Markdown
Contributor

@baperry2 baperry2 commented Jun 6, 2024

Takes a piece from #492 to make reviewing easier.

PeleParams is a class template that allows copying arbitrary data structures from host to device, taking advantage of The_Pinned_Arena (simple data structures of fixed size can be copied directly without dealing with that though). An InitParm class must be defined with a function that populates the data structure (and cleans it up, if needed). There's some funky stuff to be able to use PeleParams to create derived versions of a base data structure, but for most use cases that can be transparently ignored. Written as a generalization of the old PMFData structure.

Will require minor downstream changes in LMeX/C.

Also implements bugfix in PMF interpolation from AMReX-Combustion/PeleC#808

Copy link
Copy Markdown
Contributor

@marchdf marchdf left a comment

Choose a reason for hiding this comment

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

Nicely done!!

@baperry2 baperry2 enabled auto-merge (squash) June 7, 2024 17:28
@baperry2 baperry2 requested a review from marchdf June 7, 2024 17:28
@baperry2 baperry2 merged commit b17d6b7 into AMReX-Combustion:development Jun 7, 2024
@baperry2 baperry2 deleted the peleparams branch June 7, 2024 17:56
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.

2 participants