Changeset 5292
- Timestamp:
- 08/16/10 16:21:17 (15 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/ElementResults/NodalValuesUnitConversion.cpp
r4988 r5292 27 27 /*Get scaling factor: */ 28 28 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 33 34 case MeltingRateEnum: scale=yts;break; //m/yr 34 35 case MisfitEnum: scale=pow(yts,2);break; //(m/yr)^2 -
issm/trunk/src/c/objects/Elements/Tria.cpp
r5291 r5292 1278 1278 for (i=0;i<numgrids;i++){ 1279 1279 //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]; 1281 1281 } 1282 1282 … … 4401 4401 double accumulation_g; 4402 4402 double melting_g; 4403 double dhdt_g; 4403 4404 4404 4405 /*inputs: */ 4405 4406 Input* accumulation_input=NULL; 4406 4407 Input* melting_input=NULL; 4408 Input* dhdt_input=NULL; 4407 4409 4408 4410 /* Get node coordinates and dof list: */ … … 4414 4416 4415 4417 /*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); 4418 4421 4419 4422 /* Start looping on the number of gaussian points: */ … … 4434 4437 accumulation_input->GetParameterValue(&accumulation_g, &gauss_l1l2l3[0]); 4435 4438 melting_input->GetParameterValue(&melting_g, &gauss_l1l2l3[0]); 4439 dhdt_input->GetParameterValue(&dhdt_g, &gauss_l1l2l3[0]); 4436 4440 4437 4441 /* 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]; 4439 4443 4440 4444 } // for (ig=0; ig<num_gauss; ig++) … … 4520 4524 4521 4525 /* 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]; 4523 4527 4524 4528 } // for (ig=0; ig<num_gauss; ig++) -
issm/trunk/src/c/objects/Loads/Numericalflux.h
r5096 r5292 45 45 /*}}}*/ 46 46 /*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*/} 48 48 void InputUpdateFromVector(int* vector, int name, int type){ISSMERROR("Not implemented yet!");} 49 49 void InputUpdateFromVector(bool* vector, int name, int type){ISSMERROR("Not implemented yet!");} 50 50 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*/}; 52 52 void InputUpdateFromConstant(bool constant, int name){ISSMERROR("Not implemented yet!");} 53 53 void InputUpdateFromSolution(double* solution){ISSMERROR("Not implemented yet!");}
Note:
See TracChangeset
for help on using the changeset viewer.