Changeset 17010


Ignore:
Timestamp:
12/05/13 08:25:26 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: vertical velocities should not be calculated in StressbalanceAnalysis

Location:
issm/trunk-jpl/src/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp

    r17009 r17010  
    816816
    817817        /*Intermediaries*/
    818         bool isSIA,isSSA,isL1L2,isHO,isFS;
     818        bool isSSA,isL1L2,isHO,isFS;
    819819        bool conserve_loads = true;
    820         int  meshtype,newton;
     820        int  newton;
    821821
    822822        /* recover parameters:*/
    823         femmodel->parameters->FindParam(&isSIA,FlowequationIsSIAEnum);
    824823        femmodel->parameters->FindParam(&isSSA,FlowequationIsSSAEnum);
    825824        femmodel->parameters->FindParam(&isL1L2,FlowequationIsL1L2Enum);
     
    827826        femmodel->parameters->FindParam(&isFS,FlowequationIsFSEnum);
    828827        femmodel->parameters->FindParam(&newton,StressbalanceIsnewtonEnum);
    829         femmodel->parameters->FindParam(&meshtype,MeshTypeEnum);
    830828
    831829        if((isSSA || isHO || isL1L2) ^ isFS){ // ^ = xor
     
    842840                if(VerboseSolution()) _printf0_("   computing coupling between lower order models and FS\n");
    843841                solutionsequence_FScoupling_nonlinear(femmodel,conserve_loads);
    844         }
    845 
    846         if (meshtype==Mesh3DEnum && (isSIA || isSSA || isL1L2 || isHO)){
    847                 if(VerboseSolution()) _printf0_("   computing vertical velocities\n");
    848                 femmodel->SetCurrentConfiguration(StressbalanceVerticalAnalysisEnum);
    849                 solutionsequence_linear(femmodel);
    850842        }
    851843
  • issm/trunk-jpl/src/c/analyses/StressbalanceVerticalAnalysis.cpp

    r17005 r17010  
    44#include "../shared/shared.h"
    55#include "../modules/modules.h"
     6#include "../solutionsequences/solutionsequences.h"
    67
    78/*Model processing*/
     
    9798/*Finite Element Analysis*/
    9899void           StressbalanceVerticalAnalysis::Core(FemModel* femmodel){/*{{{*/
    99         _error_("not implemented");
     100
     101                if(VerboseSolution()) _printf0_("   computing vertical velocities\n");
     102                femmodel->SetCurrentConfiguration(StressbalanceVerticalAnalysisEnum);
     103                solutionsequence_linear(femmodel);
    100104}/*}}}*/
    101105ElementVector* StressbalanceVerticalAnalysis::CreateDVector(Element* element){/*{{{*/
  • issm/trunk-jpl/src/c/cores/stressbalance_core.cpp

    r17009 r17010  
    7373        }
    7474
     75        /*Compute vertical velocities*/
     76        if (meshtype==Mesh3DEnum && (isSIA || isSSA || isL1L2 || isHO)){
     77                analysis = new StressbalanceVerticalAnalysis();
     78                analysis->Core(femmodel);
     79                delete analysis;
     80        }
     81
     82
    7583        if(save_results){
    7684                if(VerboseSolution()) _printf0_("   saving results\n");
Note: See TracChangeset for help on using the changeset viewer.