-
Notifications
You must be signed in to change notification settings - Fork 34
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
Conversation
fd1cd54
to
b29597f
Compare
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why PARTITIONING_DISABLED?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
b29597f
to
989a456
Compare
989a456
to
4dab160
Compare
I've removed all the changes not directly related to this pull request. |
There was a problem hiding this 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.
4dab160
to
eba83ac
Compare
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:
Adaption mode replaces the concept of "expert mode". The functions "isExpert" and "setExpert" are now deprecated.
Depends on #370.