Changeset 100


Ignore:
Timestamp:
04/28/09 15:26:41 (16 years ago)
Author:
Eric.Larour
Message:

Added velocity extrusin capability

Location:
issm/trunk/src/c/DataSet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/DataSet/DataSet.cpp

    r8 r100  
    731731        Element* element=NULL;
    732732        Load* load=NULL;
     733        Node* node=NULL;
    733734
    734735        for ( object=objects.begin() ; object < objects.end(); object++ ){
     
    736737                if(EnumIsElement((*object)->Enum())){
    737738
    738 
    739739                        element=(Element*)(*object);
    740 
    741740                        element->Configure(loads,nodes,materials);
    742741                }
     
    746745
    747746                        load->Configure(elements,nodes,materials);
     747                }
     748
     749                if((*object)->Enum()==NodeEnum()){
     750                        node=(Node*)(*object);
     751                        node->Configure(nodes);
    748752                }
    749753
     
    10691073
    10701074}
     1075               
     1076void  DataSet::VelocityExtrude(Vec ug,double* ug_serial){
     1077
     1078        vector<Object*>::iterator object;
     1079        Penta* penta=NULL;
     1080
     1081        for ( object=objects.begin() ; object < objects.end(); object++ ){
     1082               
     1083                if((*object)->Enum()==PentaEnum()){
     1084
     1085                        penta=(Penta*)(*object);
     1086                        penta->VelocityExtrude(ug,ug_serial);
     1087
     1088                }
     1089        }
     1090
     1091}
  • issm/trunk/src/c/DataSet/DataSet.h

    r1 r100  
    7575                void  Gradj(Vec grad_g,double*  u_g,double* lambda_g,ParameterInputs* inputs,int analysis_type,char* control_type);
    7676                void  Misfit(double* pJ, double* u_g,double* u_g_obs,ParameterInputs* inputs,int analysis_type);
     77                void  VelocityExtrude(Vec ug,double* ug_serial);
    7778
    7879
Note: See TracChangeset for help on using the changeset viewer.