Changeset 22965


Ignore:
Timestamp:
07/17/18 13:01:04 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing AD

File:
1 edited

Legend:

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

    r22960 r22965  
    166166        iomodel->FetchDataToInput(elements,"md.initialization.vy",VyEnum);
    167167       
    168         /*Initialize cumdeltalthickness input: unfortunately, we don't have femmodel, so we need to iterate on
    169          *elements, otherwise we would have used InputUpdateFromConstantx: */
    170         counter=0;
    171         for(int i=0;i<iomodel->numberofelements;i++){
    172                 if(iomodel->my_elements[i]){
    173                         Element* element=(Element*)elements->GetObjectByOffset(counter);
    174                         element->InputUpdateFromConstant(0.0,SealevelriseCumDeltathicknessEnum);
    175                         counter++;
    176                 }
    177         }
     168        /*Initialize cumdeltalthickness input*/
     169        InputUpdateFromConstantx(elements,0.,SealevelriseCumDeltathicknessEnum);
    178170
    179171        /*Get what we need for ocean-induced basal melting*/
Note: See TracChangeset for help on using the changeset viewer.