Changeset 21481


Ignore:
Timestamp:
01/11/17 09:55:03 (8 years ago)
Author:
jbondzio
Message:

BUG: applying enthalpy basal BCs on ice only can cause inconsistencies in fsets across partitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp

    r21389 r21481  
    267267void           EnthalpyAnalysis::ApplyBasalConstraints(IssmDouble* serial_spc,Element* element){/*{{{*/
    268268
    269         /* Check if ice in element */
    270         if(!element->IsIceInElement()) return;
    271 
     269        /* Do not check if ice in element, this may lead to inconsistencies between cpu partitions */
    272270        /* Only update constraints at the base. */
    273271        if(!(element->IsOnBase())) return;
     
    299297                /*apply or release spc*/
    300298                node=element->GetNode(indices[i]);
     299                if(!node->IsActive()) continue;
    301300                if(serial_spc[node->Sid()]==1.){
    302301                        pressure_input->GetInputValue(&pressure, gauss);
    303302                        node->ApplyConstraint(0,PureIceEnthalpy(element,pressure));
    304303                }
    305                 else                   
     304                else {
    306305                        node->DofInFSet(0);
     306                }
    307307        }
    308308
Note: See TracChangeset for help on using the changeset viewer.