Changeset 24094


Ignore:
Timestamp:
07/15/19 17:48:47 (6 years ago)
Author:
schlegel
Message:

BUG: need to check for ispdd set factors before using inputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Element.cpp

    r24091 r24094  
    29782978        for (int iv = 0; iv<NUM_VERTICES; iv++){
    29792979                gauss->GaussVertex(iv);
    2980                 pddsnowfac=-1.;
    2981                 pddicefac=-1.;
    2982                 input->GetInputValue(&pddsnowfac,gauss);
    2983                 input2->GetInputValue(&pddicefac,gauss);
     2980                pddsnowfac=0.;
     2981                pddicefac=0.;
     2982                if(issetpddfac==1){
     2983                        input->GetInputValue(&pddsnowfac,gauss);
     2984                        input2->GetInputValue(&pddicefac,gauss);
     2985                }
    29842986                agd[iv]=PddSurfaceMassBalance(&monthlytemperatures[iv*12], &monthlyprec[iv*12],
    29852987                                        pdds, pds, &melt[iv], &accu[iv], signorm, yts, h[iv], s[iv],
Note: See TracChangeset for help on using the changeset viewer.