Skip to content

[WIP] Fix bug in Fortran to Julia vacuum energy conversion#104

Closed
matt-pharr with Copilot wants to merge 1 commit into
vacuum_juliafrom
copilot/fix-bug-in-vacuum-energy-code
Closed

[WIP] Fix bug in Fortran to Julia vacuum energy conversion#104
matt-pharr with Copilot wants to merge 1 commit into
vacuum_juliafrom
copilot/fix-bug-in-vacuum-energy-code

Conversation

Copilot AI commented Dec 18, 2025

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

There seems to be an insidious bug in this fortran to julia conversion we are working on. This is a vacuum energy code that computes vacuum response to a magnetic perturbation with a green's function method. It has options to use a wall. When we use a wall, the vacuum energy matrix is fairly different, order 15% or so.

Please look inside src/Vacuum/ to find the julia version, with the fortran version found in a subdirectory fortran/. Try and find the source of this bug. Pay especially close attention to indexing.
To test your work, run the following command from the top of the project directory:
julia --project="." ./examples/Solovev_ideal_example/vacuum_wall_debug.jl

Please investigate this and open a pull request summarizing your results, and post the pre- and post-fix difference matrix as computed by the supplied debug script.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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