Changeset 26295


Ignore:
Timestamp:
06/03/21 11:48:39 (4 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added check to make sure each partition has at least one element, otherwise we get weird error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/modules/ModelProcessorx/ElementsAndVerticesPartitioning.cpp ΒΆ

    r24398 r26295  
    111111
    112112        /*Start figuring out, out of the partition, which elements belong to this cpu: */
     113        bool check = false;
    113114        for(int i=0;i<iomodel->numberofelements;i++){
    114115
    115116                /*!All elements have been partitioned above, only deal with elements for this cpu: */
    116                 if(my_rank==epart[i]) my_elements[i]=true;
     117                if(my_rank==epart[i]){
     118                        my_elements[i]=true;
     119                        check = true;
     120                }
    117121        }
     122        if(!check) _error_("partition "<<my_rank<<" does not have any element! Try reducing md.cluster.np");
    118123
    119124        /*Assign pointers to iomodel*/
Note: See TracChangeset for help on using the changeset viewer.