[WIP] Convert OpenFOAM templates to resource-based .txt templates#4
Closed
julianschmoll with Copilot wants to merge 1 commit into
Closed
[WIP] Convert OpenFOAM templates to resource-based .txt templates#4julianschmoll with Copilot wants to merge 1 commit into
julianschmoll with Copilot wants to merge 1 commit into
Conversation
Owner
|
insane but wrong xD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Coding agent has begun work on Convert OpenFOAM templates to resource-based .txt templates and use str.format and will update this pull request as work progresses.
Original prompt
please do the rest as well for the rest of the functions. replace the long f strings with a txt file in the resources folder and use .format and the template loading method
TITLE: Convert OpenFOAM templates to resource-based .txt templates and use str.format
USER INTENT:
TASK DESCRIPTION:
EXISTING (what's been done so far):
PENDING (what still needs to be done):
CODE STATE (files discussed or modified, with important snippets):
Notes: Literal OpenFOAM braces are doubled ({{ and }}) so that str.format can be used safely. Required placeholders: Lx, Ly, Lz, nCellsX, nCellsY, nCellsZ.