Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 25, 2026

Refactor to Modern C++ and CUDA with Config Class

Plan

  • Create a Config header class to centralize all simulation parameters

    • Define SimulationConfig struct with all common parameters
    • Define KobayashiConfig for Kobayashi model-specific parameters
    • Define PhysicalConfig for Physical model-specific parameters
    • Use modern C++ features (constexpr, inline variables, structs)
  • Refactor Kobayashi GPU implementation

    • Update KobayashiGPU.cu to use Config class
    • Replace hardcoded constants with config references
    • Modernize CUDA memory management (use modern patterns)
    • Update wrapper.h to support config-based parameters
    • Update vtk.h to use config-based parameters
  • Refactor Kobayashi CPU implementation

    • Update KobayashiCPU.cpp to use Config class
    • Replace hardcoded constants with config references
  • Refactor Physical GPU implementation

    • Update PhaseField.cu to use Config class
    • Replace hardcoded constants with config references
  • Refactor Physical CPU implementation

    • Update PhaseFieldCPU.cpp to use Config class
    • Replace hardcoded constants with config references
  • Build and test all implementations

    • Test CPU implementations
    • Test GPU implementations (if CUDA available)
  • Code review and security check

Original prompt
  • Refactor impor to modern c++ and cuda
  • Utilize config class

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

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