Changeset 5292


Ignore:
Timestamp:
08/16/10 16:21:17 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added missing varible dhdt in BalancedThickness CG and added unit conversion for DhDt

Location:
issm/trunk/src/c/objects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/ElementResults/NodalValuesUnitConversion.cpp

    r4988 r5292  
    2727        /*Get scaling factor: */
    2828        switch(enum_type){
    29                 case VxEnum:  scale=yts;break; //m/yr
    30                 case VyEnum:  scale=yts;break; //m/yr
    31                 case VzEnum:  scale=yts;break; //m/yr
    32                 case VelEnum: scale=yts;break; //m/yr
     29                case VxEnum:   scale=yts;break; //m/yr
     30                case VyEnum:   scale=yts;break; //m/yr
     31                case VzEnum:   scale=yts;break; //m/yr
     32                case VelEnum:  scale=yts;break; //m/yr
     33                case DhDtEnum: scale=yts;break; //m/yr
    3334                case MeltingRateEnum: scale=yts;break; //m/yr
    3435                case MisfitEnum:      scale=pow(yts,2);break; //(m/yr)^2
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r5291 r5292  
    12781278                for (i=0;i<numgrids;i++){
    12791279                        //standard gradient dJ/dki
    1280                         grade_g_gaussian[i]=lambda*Jdet*gauss_weight*l1l2l3[i];
     1280                        grade_g_gaussian[i]=-lambda*Jdet*gauss_weight*l1l2l3[i];
    12811281                }
    12821282
     
    44014401        double  accumulation_g;
    44024402        double  melting_g;
     4403        double  dhdt_g;
    44034404
    44044405        /*inputs: */
    44054406        Input* accumulation_input=NULL;
    44064407        Input* melting_input=NULL;
     4408        Input* dhdt_input=NULL;
    44074409
    44084410        /* Get node coordinates and dof list: */
     
    44144416
    44154417        /*retrieve inputs :*/
    4416         accumulation_input=inputs->GetInput(AccumulationRateEnum);
    4417         melting_input=inputs->GetInput(MeltingRateEnum);
     4418        accumulation_input=inputs->GetInput(AccumulationRateEnum); ISSMASSERT(accumulation_input);
     4419        melting_input=inputs->GetInput(MeltingRateEnum);           ISSMASSERT(melting_input);
     4420        dhdt_input=inputs->GetInput(DhDtEnum);                     ISSMASSERT(dhdt_input);
    44184421       
    44194422        /* Start  looping on the number of gaussian points: */
     
    44344437                accumulation_input->GetParameterValue(&accumulation_g, &gauss_l1l2l3[0]);
    44354438                melting_input->GetParameterValue(&melting_g, &gauss_l1l2l3[0]);
     4439                dhdt_input->GetParameterValue(&dhdt_g, &gauss_l1l2l3[0]);
    44364440
    44374441                /* Add value into pe_g: */
    4438                 for( i=0; i<numdof; i++) pe_g[i]+=Jdettria*gauss_weight*(accumulation_g-melting_g)*L[i];
     4442                for( i=0; i<numdof; i++) pe_g[i]+=Jdettria*gauss_weight*(accumulation_g-melting_g-dhdt_g)*L[i];
    44394443
    44404444        } // for (ig=0; ig<num_gauss; ig++)
     
    45204524
    45214525                /* Add value into pe_g: */
    4522                 for( i=0; i<numdof; i++) pe_g[i]+=Jdettria*gauss_weight*(accumulation_g-melting_g+dhdt_g)*L[i];
     4526                for( i=0; i<numdof; i++) pe_g[i]+=Jdettria*gauss_weight*(accumulation_g-melting_g-dhdt_g)*L[i];
    45234527
    45244528        } // for (ig=0; ig<num_gauss; ig++)
  • issm/trunk/src/c/objects/Loads/Numericalflux.h

    r5096 r5292  
    4545                /*}}}*/
    4646                /*Update virtual functions resolution: {{{1*/
    47                 void    InputUpdateFromVector(double* vector, int name, int type){ISSMERROR("Not implemented yet!");}
     47                void    InputUpdateFromVector(double* vector, int name, int type){/*Do nothing*/}
    4848                void    InputUpdateFromVector(int* vector, int name, int type){ISSMERROR("Not implemented yet!");}
    4949                void    InputUpdateFromVector(bool* vector, int name, int type){ISSMERROR("Not implemented yet!");}
    5050                void    InputUpdateFromConstant(double constant, int name){ISSMERROR("Not implemented yet!");}
    51                 void    InputUpdateFromConstant(int constant, int name){ISSMERROR("Not implemented yet!");}
     51                void    InputUpdateFromConstant(int constant, int name){/*Do nothing*/};
    5252                void    InputUpdateFromConstant(bool constant, int name){ISSMERROR("Not implemented yet!");}
    5353                void    InputUpdateFromSolution(double* solution){ISSMERROR("Not implemented yet!");}
Note: See TracChangeset for help on using the changeset viewer.