Changeset 1242


Ignore:
Timestamp:
07/07/09 08:39:27 (16 years ago)
Author:
Mathieu Morlighem
Message:

skip water element for stokes and CM also

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

Legend:

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

    r1211 r1242  
    372372}
    373373
    374 
    375374#undef __FUNCT__
    376375#define __FUNCT__ "Penta:CreateKMatrixDiagnosticHoriz"
     
    461460        /*If on water, skip stiffness: */
    462461        if(onwater)return;
    463 
    464462
    465463        /*recover pointers: */
     
    789787        double         gravity,rho_ice,rho_water;
    790788
    791        
    792789        /*Collapsed formulation: */
    793790        Tria*  tria=NULL;
     
    844841        ParameterInputs* inputs=NULL;
    845842
     843        /*If on water, skip stiffness: */
     844        if(onwater)return;
     845
    846846        /*recover pointers: */
    847847        inputs=(ParameterInputs*)vinputs;
     
    12081208#define __FUNCT__ "Penta::Gradj"
    12091209void  Penta::Gradj(Vec grad_g,void* inputs,int analysis_type,int sub_analysis_type,char* control_type){
     1210       
     1211        /*If on water, skip grad (=0): */
     1212        if(onwater)return;
    12101213
    12111214        if (strcmp(control_type,"drag")==0){
     
    12231226       
    12241227        Tria* tria=NULL;
    1225        
     1228
    12261229        /*Bail out if this element does not touch the bedrock: */
    12271230        if (!onbed) return;
     
    12791282        Tria* tria=NULL;
    12801283       
     1284        /*If on water, return 0: */
     1285        if(onwater)return 0;
     1286
    12811287        /*Bail out if this element if:
    12821288         * -> Non collapsed and not on the surface
     
    30263032void Penta::CreatePVectorDiagnosticStokes( Vec pg, void* vinputs,int analysis_type,int sub_analysis_type){
    30273033
    3028 
    30293034        /*indexing: */
    30303035        int i,j;
     
    30923097        ParameterInputs* inputs=NULL;
    30933098        Tria*            tria=NULL;
     3099
     3100        /*If on water, skip load: */
     3101        if(onwater)return;
    30943102
    30953103        /*recover pointers: */
  • issm/trunk/src/c/objects/Tria.cpp

    r1211 r1242  
    22192219void  Tria::Gradj(Vec grad_g,void* inputs,int analysis_type,int sub_analysis_type,char* control_type){
    22202220
     2221        /*If on water, grad = 0: */
     2222        if(onwater)return;
     2223
    22212224        if (strcmp(control_type,"drag")==0){
    22222225                GradjDrag( grad_g,inputs,analysis_type,sub_analysis_type);
     
    28692872        ParameterInputs* inputs=NULL;
    28702873
     2874        /*If on water, return 0: */
     2875        if(onwater)return 0;
     2876
    28712877        /*recover pointers: */
    28722878        inputs=(ParameterInputs*)vinputs;
Note: See TracChangeset for help on using the changeset viewer.