Changeset 1210
- Timestamp:
- 07/02/09 07:33:54 (16 years ago)
- Location:
- issm/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/Control/CreateParametersControl.cpp
r1046 r1210 46 46 param= new Param(count,"control_type",STRING); 47 47 param->SetString(model->control_type); 48 parameters->AddObject(param); 49 50 /*extrude_param: */ 51 count++; 52 param= new Param(count,"extrude_param",DOUBLE); 53 if (strcmp(model->control_type,"drag")==0) param->SetDouble(0); 54 else if (strcmp(model->control_type,"B")==0) param->SetDouble(1); 55 else throw ErrorException(__FUNCT__,exprintf("control_type %s not supported yet!",model->control_type)); 48 56 parameters->AddObject(param); 49 57 -
issm/trunk/src/c/parallel/GradJCompute.cpp
r1209 r1210 45 45 int debug=0; 46 46 int dim=-1; 47 int extrude_param=0; 47 48 48 49 /*some parameters:*/ … … 53 54 femmodel->parameters->FindParam((void*)&solverstring,"solverstring"); 54 55 femmodel->parameters->FindParam((void*)&control_type,"control_type"); 56 femmodel->parameters->FindParam((void*)&extrude_param,"extrude_param"); 55 57 femmodel->parameters->FindParam((void*)&debug,"debug"); 56 58 femmodel->parameters->FindParam((void*)&dim,"dim"); … … 83 85 inputs,analysis_type,sub_analysis_type,control_type); 84 86 85 if (dim==3 ){87 if (dim==3 && extrude_param){ 86 88 87 89 _printf_("%s\n"," extruding gradient..."); -
issm/trunk/src/m/solutions/cielo/GradJCompute.m
r1204 r1210 4 4 debug=m.parameters.debug; 5 5 dim=m.parameters.dim; 6 extrude_param=m.parameters.extrude_param; 6 7 ishutter=m.parameters.ishutter; 7 8 ismacayealpattyn=m.parameters.ismacayealpattyn; … … 31 32 grad_g=Gradj(m.elements,m.nodes,m.loads,m.materials,m.parameters,inputs,analysis_type,sub_analysis_type); 32 33 33 if dim==3,34 if (dim==3 & extrude_param), 34 35 displaystring(debug,'%s',' extruding gradient...'); 35 36 grad_g=FieldExtrude(m.elements,m.nodes,m.loads,m.materials,grad_g,'gradj',0);
Note:
See TracChangeset
for help on using the changeset viewer.