Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/biagas/fix unstructureddomainboundaries exchange scalars dev #20010

Conversation

biagas
Copy link
Contributor

@biagas biagas commented Nov 4, 2024

Description

Resolves #19988.

This is a merge from 3.4RC (#19991) with the addition of:

A new avtMeshMetaData field: hasExtraGhostInfo. This flag is false by default, and Mili plugin sets it to true when it will create ExtraGhost information.

Modified avtGenericDatabase to use this new flag to test whether or not to call code that utilizes avtExtraGhost information, rather than the convoluted logic needed on 3.4RC since we couldn't change the MetaData.

Updated all baseline text files that print MeshMetaData due to the new field.

Type of change

  • Bug fix
  • [ ] New feature
  • [ ] Documentation update
  • [ ] Other

How Has This Been Tested?

I ran the full regression suite in parallel on poodle with success.

Checklist:

  • I have commented my code where applicable.~~
  • [ ] I have updated the release notes.
  • [ ] I have made corresponding changes to the documentation.
  • [ ] I have added debugging support to my changes.
  • [ ] I have added tests that prove my fix is effective or that my feature works.
  • I have confirmed new and existing unit tests pass locally with my changes.~~
  • [ ] I have added new baselines for any new tests to the repo.
  • [ ] I have NOT made any changes to protocol or public interfaces in an RC branch.

…ors (#19991)

* Fix avtUnstructuredDomainBoundaries::ExchangeScalars and ExchangeVectors.
Ensure all procs are calling the same Exchange function based on dataType that they get from an MPI_Allreduce.
This fixes problems in parallel (segv/hang) when avtExtraGhostNodes/Zones are exchanged.
Modified avtGenericDatabse to ensure all procs participate in the exchange of avtExtraGhostNodes/Zones.

* Don't attempt to exchange extraGhost info is no process posesses the info.

* Add consistency checks of datatypes for ExchangeScalar and ExchangeVector.

* Update consistency test so that the Exception isn't thrown in a case where one proc doesn't have data (dataType == -1).

* Tweaks to data-type consistency check to preven hang.
Mili plugin sets it to true when it will generate extraGhostInfo.
Update avtGenericDatabase to test this flag before calling code that utilizes extra ghost information.
Copy link
Member

@markcmiller86 markcmiller86 left a comment

Choose a reason for hiding this comment

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

Its a shame one has to update all those dogon baseline files in situations like this. I have a long overdue PR (#5373) that would improve this situation somewhat but I've let in languish.

@biagas biagas merged commit 96fd599 into develop Nov 4, 2024
4 checks passed
@biagas biagas deleted the bugfix/biagas/fix_unstructureddomainboundaries_exchange_scalars_dev branch November 4, 2024 23:13
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.

Parallel hang attempting to process extra ghost nodes/zones
3 participants