Changeset 10703
- Timestamp:
- 11/17/11 13:53:36 (13 years ago)
- Location:
- issm/trunk/src
- Files:
-
- 4 added
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Makefile.am
r10660 r10703 529 529 ./modules/IceVolumex/IceVolumex.h\ 530 530 ./modules/IceVolumex/IceVolumex.cpp\ 531 ./modules/ RheologyBbarx/RheologyBbarx.cpp\532 ./modules/ RheologyBbarx/RheologyBbarx.h\531 ./modules/ElementResponsex/ElementResponsex.h\ 532 ./modules/ElementResponsex/ElementResponsex.cpp\ 533 533 ./modules/MassFluxx/MassFluxx.cpp\ 534 534 ./modules/MassFluxx/MassFluxx.h -
issm/trunk/src/c/modules/Responsex/Responsex.cpp
r9880 r10703 43 43 case RheologyBbarAbsGradientEnum:RheologyBbarAbsGradientx( responses, elements,nodes, vertices, loads, materials, parameters,process_units,weight_index); break; 44 44 case DragCoefficientAbsGradientEnum:DragCoefficientAbsGradientx(responses, elements,nodes, vertices, loads, materials, parameters,process_units,weight_index); break; 45 case MaterialsRheologyBbarEnum:RheologyBbarx(responses, elements,nodes, vertices, loads, materials, parameters,process_units); break; 45 case MaterialsRheologyBbarEnum:ElementResponsex(responses, elements,nodes, vertices, loads, materials, parameters,MaterialsRheologyBbarEnum,process_units); break; 46 case VelEnum:ElementResponsex(responses, elements,nodes, vertices, loads, materials, parameters,VelEnum,process_units); break; 46 47 case FrictionCoefficientEnum:NodalValuex(responses, FrictionCoefficientEnum,elements,nodes, vertices, loads, materials, parameters,process_units); break; 47 48 default: _error_(" response descriptor \"%s\" not supported yet!",response_descriptor); break; -
issm/trunk/src/c/modules/modules.h
r10576 r10703 66 66 #include "./MaxAbsVzx/MaxAbsVzx.h" 67 67 #include "./MaxVelx/MaxVelx.h" 68 #include "./ElementResponsex/ElementResponsex.h" 68 69 #include "./MaxVxx/MaxVxx.h" 69 70 #include "./MaxVyx/MaxVyx.h" … … 99 100 #include "./ResetCoordinateSystemx/ResetCoordinateSystemx.h" 100 101 #include "./Responsex/Responsex.h" 101 #include "./RheologyBbarx/RheologyBbarx.h"102 102 #include "./RheologyBbarAbsGradientx/RheologyBbarAbsGradientx.h" 103 103 #include "./Scotchx/Scotchx.h" -
issm/trunk/src/c/objects/Elements/Element.h
r10440 r10703 83 83 virtual void MaxAbsVz(double* pmaxabsvz, bool process_units)=0; 84 84 virtual double MassFlux(double* segment,bool process_units)=0; 85 virtual double RheologyBbarx(void)=0;85 virtual void ElementResponse(double* presponse,int response_enum,bool process_units)=0; 86 86 virtual double IceVolume(void)=0; 87 87 virtual int NodalValue(double* pvalue, int index, int natureofdataenum,bool process_units)=0; -
issm/trunk/src/c/objects/Elements/Penta.cpp
r10648 r10703 2862 2862 } 2863 2863 /*}}}*/ 2864 /*FUNCTION Penta::RheologyBbarx{{{1*/2865 double Penta::RheologyBbarx(void){2866 2867 double Bbar;2868 Penta* base=NULL;2869 2870 /*We here compute the vertically averaged Bbar. To do so, we go to the2871 * base element under this one, and call this->InputDepthAverageAtBase:*/2872 2873 base=this;2874 2875 if(!base->IsOnBed()){2876 2877 for(;;){2878 base=base->verticalneighbors[0];2879 if(base->IsOnBed())break;2880 }2881 }2882 2883 /*We have found the base under this. Call InputDepthAverageAtBase on it: */2884 base->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum);2885 2886 /*Ok, base->matice now has the Bbar. Ask Bbar from this enum: */2887 Bbar=base->matice->GetBbar();2888 2889 return Bbar;2890 }2891 /*}}}*/2892 2864 /*FUNCTION Penta::NodalValue {{{1*/ 2893 2865 int Penta::NodalValue(double* pvalue, int index, int natureofdataenum,bool process_units){ … … 3068 3040 /*Assign output pointers:*/ 3069 3041 *pmaxvz=maxvz; 3042 } 3043 /*}}}*/ 3044 /*FUNCTION Penta::ElementResponse{{{1*/ 3045 void Penta::ElementResponse(double* presponse,int response_enum,bool process_units){ 3046 3047 switch(response_enum){ 3048 case MaterialsRheologyBbarEnum: 3049 *presponse=this->matice->GetBbar(); 3050 break; 3051 case VelEnum: 3052 3053 /*Get input:*/ 3054 double vel; 3055 Input* vel_input; 3056 3057 vel_input=this->inputs->GetInput(VelEnum); _assert_(vel_input); 3058 vel_input->GetInputAverage(&vel); 3059 3060 /*process units if requested: */ 3061 if(process_units) vel=UnitConversion(vel,IuToExtEnum,VelEnum); 3062 3063 /*Assign output pointers:*/ 3064 *presponse=vel; 3065 default: 3066 _error_("Response type %s not supported yet!",EnumToStringx(response_enum)); 3067 } 3068 3070 3069 } 3071 3070 /*}}}*/ -
issm/trunk/src/c/objects/Elements/Penta.h
r10628 r10703 125 125 void MinVy(double* pminvy, bool process_units); 126 126 void MinVz(double* pminvz, bool process_units); 127 double RheologyBbarx(void);128 127 int NodalValue(double* pvalue, int index, int natureofdataenum,bool process_units); 129 128 double MassFlux(double* segment,bool process_units); … … 132 131 void MaxAbsVz(double* pmaxabsvz, bool process_units); 133 132 void MaxVel(double* pmaxvel, bool process_units); 133 void ElementResponse(double* presponse,int response_enum,bool process_units); 134 134 void MaxVx(double* pmaxvx, bool process_units); 135 135 void MaxVy(double* pmaxvy, bool process_units); -
issm/trunk/src/c/objects/Elements/Tria.cpp
r10648 r10703 2634 2634 } 2635 2635 /*}}}*/ 2636 /*FUNCTION Tria::RheologyBbarx{{{1*/ 2637 double Tria::RheologyBbarx(void){ 2638 2639 return this->matice->GetBbar(); 2636 /*FUNCTION Tria::ElementResponse{{{1*/ 2637 void Tria::ElementResponse(double* presponse,int response_enum,bool process_units){ 2638 2639 switch(response_enum){ 2640 case MaterialsRheologyBbarEnum: 2641 *presponse=this->matice->GetBbar(); 2642 break; 2643 case VelEnum: 2644 2645 /*Get input:*/ 2646 double vel; 2647 Input* vel_input; 2648 2649 vel_input=this->inputs->GetInput(VelEnum); _assert_(vel_input); 2650 vel_input->GetInputAverage(&vel); 2651 2652 /*process units if requested: */ 2653 if(process_units) vel=UnitConversion(vel,IuToExtEnum,VelEnum); 2654 2655 /*Assign output pointers:*/ 2656 *presponse=vel; 2657 default: 2658 _error_("Response type %s not supported yet!",EnumToStringx(response_enum)); 2659 } 2640 2660 2641 2661 } -
issm/trunk/src/c/objects/Elements/Tria.h
r10574 r10703 123 123 void MinVy(double* pminvy, bool process_units); 124 124 void MinVz(double* pminvz, bool process_units); 125 double RheologyBbarx(void);126 125 int NodalValue(double* pvalue, int index, int natureofdataenum,bool process_units); 127 126 double MassFlux(double* segment,bool process_units); … … 129 128 void MaxAbsVy(double* pmaxabsvy, bool process_units); 130 129 void MaxAbsVz(double* pmaxabsvz, bool process_units); 130 void ElementResponse(double* presponse,int response_enum,bool process_units); 131 131 void MaxVel(double* pmaxvel, bool process_units); 132 132 void MaxVx(double* pmaxvx, bool process_units); -
issm/trunk/src/m/classes/qmu.m
r9853 r10703 126 126 end 127 127 for i=1:numel(obj.params) 128 disp(sprintf(' qmu_params%s: (array of method-independent parameters)',...128 disp(sprintf(' params%s: (array of method-independent parameters)',... 129 129 string_dim(obj.params,i))); 130 130 fnames=fieldnames(obj.params(i));
Note:
See TracChangeset
for help on using the changeset viewer.