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

patchkernel: add the concept of "adaption mode" #371

Merged
merged 5 commits into from
May 20, 2024

Conversation

andrea-iob
Copy link
Member

@andrea-iob andrea-iob commented Feb 3, 2023

Adaption mode tells if the patch can be adapted and which strategies can be used to adapt the patch.

The following adaption modes are supported:

  • disabled, no adaption can be performed;
  • automatic, adaption is performed specifying which cells should be refined/coarsen and then the patch will perform all the alterations needed to fulfill the adaption requests;
  • manual, this modes allows to use low level function to add and delete individual cells and vertices. It's up to the user to guarantee the consistency of the patch.

Adaption mode replaces the concept of "expert mode". The functions "isExpert" and "setExpert" are now deprecated.

Depends on #370.

@@ -74,15 +74,15 @@ LineUnstructured::LineUnstructured()
among the processes
*/
LineUnstructured::LineUnstructured(int dimension, MPI_Comm communicator)
: LineKernel(PatchManager::AUTOMATIC_ID, dimension, communicator, 1, true)
: LineKernel(PatchManager::AUTOMATIC_ID, dimension, communicator, 1, ADAPTION_MANUAL, PARTITIONING_DISABLED)
Copy link
Member

Choose a reason for hiding this comment

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

Why PARTITIONING_DISABLED?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@andrea-iob andrea-iob force-pushed the patchkernel.define.adaption.mode branch from b29597f to 989a456 Compare April 3, 2023 13:28
@andrea-iob andrea-iob force-pushed the patchkernel.define.adaption.mode branch from 989a456 to 4dab160 Compare April 10, 2024 13:43
@andrea-iob
Copy link
Member Author

I've removed all the changes not directly related to this pull request.

Copy link
Member

@marcocisternino marcocisternino left a comment

Choose a reason for hiding this comment

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

check code and tested in application using voloctree.
Tests using manual adapted volunstructured or surfunstructured would test the branch better than I did.

Adaption mode tells if the patch can be adapted and which strategies can
be used to adapt the patch.

The following adaption modes are supported:
 - disabled, no adaption can be performed;
 - automatic, adaption is performed specifying which cells should be
   refined/coarsen and then the patch will perform all the alterations
   needed to fulfill the adaption requests;
 - manual, this mode allows to use low level function to add and delete
   individual cells and vertices. It's up to the user to guarantee the
   consistency of the patch.
Partitioning mode tells if the patch can be partitioned across the processes.

The following partitioning modes are supported:
 - disabled, no partitioning can be performed;
 - enabled, the patch can be partitioned across the processes.
@andrea-iob andrea-iob force-pushed the patchkernel.define.adaption.mode branch from 4dab160 to eba83ac Compare May 16, 2024 13:34
@andrea-iob andrea-iob merged commit e141076 into master May 20, 2024
10 checks passed
@andrea-iob andrea-iob deleted the patchkernel.define.adaption.mode branch May 20, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants