Skip to content

Update device copy of FCData#602

Merged
baperry2 merged 2 commits intoAMReX-Combustion:developmentfrom
QuentinMale:update-fcdata
Dec 10, 2025
Merged

Update device copy of FCData#602
baperry2 merged 2 commits intoAMReX-Combustion:developmentfrom
QuentinMale:update-fcdata

Conversation

@QuentinMale
Copy link
Copy Markdown
Contributor

The device copy of FCData was not updated in initActiveControl(), therefore (prob_parm.FCData.ctrl_active == 0U) is true when running on GPU in Exec/RegTests/TripleFlame/pelelmex_prob.H within bcnormal for example and the controller is not applied to the inlet

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a critical bug where the flow controller was not being applied on GPU runs. The issue occurred because the device copy of FCData within ProbParm was not synchronized after initActiveControl() updated the host copy. Specifically, ctrl_active remained at its default value of 0 on the device, causing the flow controller to be bypassed in GPU kernels such as bcnormal() in the TripleFlame test case.

Key Changes:

  • Added device memory synchronization in initActiveControl() after updating host FCData values
  • Follows the existing pattern used in activeControl() for device copy updates

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@baperry2 baperry2 enabled auto-merge (squash) December 10, 2025 22:10
@baperry2 baperry2 merged commit 942c211 into AMReX-Combustion:development Dec 10, 2025
24 checks passed
terencelehmann pushed a commit to ITV-RWTH/PeleLMeX that referenced this pull request Jan 13, 2026
* Point PelePhysics to development branch for GCM

* Add compilation flag for SPRAY_GCM

* Update PelePhysics

* Update PelePhysics

* Update PelePhysics

* Revert PelePhysics to 22d8cd3

* Formatting from PelePhysics

* Rename var from PelePhysics

* Rebase PelePhysics to delete merge with development

* Remove extra rho_part from Drag.H for LMeX formatting

* merge PelePhysics AMReX-Combustion#603 into gcm-dev

* Update PelePhysics to 8f9a39f

* Update PelePhysics to AMReX-Combustion#602

* First working GCM in Pele

* Test GCM vs. PeleMP

* Update PP

* Change compile flag for GCM

* Point PP to AMReX-Combustion/PelePhysics

* Point to PP dev

* Point to latest PP dev

* Add GCM test for mixture JP8, make Validate.py more user friendly

* Python formatting

* Revert .gitmodules

* Add GCM case to CI test, requires SPRAY_GCM in CMake, cleanup RegTest/SingleDropEvap

* Update input file in Tests/CMakeLists.txt

* Update CMake for CI test

* Add input file for CI test

* Revert Tests/CMakeLists.txt

* Update PelePhysics

* Change to PELE_PHYSICS_SPRAY_GCM, point to latest PelePhysics dev
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