Skip to content

Support for merged patches for element norm output to VTF#881

Open
kmokstad wants to merge 2 commits into
OPM:masterfrom
kmokstad:master
Open

Support for merged patches for element norm output to VTF#881
kmokstad wants to merge 2 commits into
OPM:masterfrom
kmokstad:master

Conversation

@kmokstad
Copy link
Copy Markdown
Contributor

@kmokstad kmokstad commented Jun 5, 2026

Merging the patch-level element norm arrays before expanding them to account for finer visualization grid.

@kmokstad
Copy link
Copy Markdown
Contributor Author

kmokstad commented Jun 5, 2026

jenkins build this with downstream ifem-elasticity=226 please

Copy link
Copy Markdown

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 extends VTF output so element-norm arrays can be written when mergeVtf is enabled by merging patch-level element norm data before expanding it to the refined visualization grid.

Changes:

  • Update ElementBlock::merge() to offset merged element IDs (to avoid collisions across merged patches).
  • Extend SIMoutput::writeGlvN() with a time parameter and implement merged-patch element norm output.
  • Minor refactors to reuse myProblem->getSolution() references and update call sites for the new writeGlvN signature.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/Utility/ElementBlock.C Offsets element IDs when merging blocks to support unique element-ID mapping in merged VTF geometry.
src/SIM/SIMoutput.h Updates writeGlvN signature to include time.
src/SIM/SIMoutput.C Implements merged-patch element-norm output logic and refactors solution extraction to reuse patchSol.
src/SIM/AdaptiveSIM.C Updates writeGlvN call to match the new signature.

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

Comment thread src/Utility/ElementBlock.C Outdated
Comment thread src/SIM/SIMoutput.C Outdated
Copy link
Copy Markdown

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread src/SIM/SIMoutput.C
Comment thread src/SIM/SIMoutput.C
Copy link
Copy Markdown

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread src/SIM/SIMoutput.C Outdated
Comment thread src/SIM/SIMoutput.C Outdated
Copy link
Copy Markdown

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread src/SIM/SIMoutput.C Outdated
Comment thread src/SIM/SIMoutput.C
Copy link
Copy Markdown

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread src/SIM/SIMoutput.C
Comment on lines +1851 to +1853
// We need to merge the results for all patches before writing them
singleField.resize(nrow,ielx+nActElm);

Comment thread src/SIM/SIMoutput.C
Comment on lines +1888 to +1889
else
ielx += nActElm;
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