Changeset 16277


Ignore:
Timestamp:
10/01/13 08:16:42 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: removed hack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r16275 r16277  
    48084808
    48094809        /*Intermediaries */
    4810         int        i,j;
    4811         int        analysis_type;
    4812         IssmDouble xyz_list[NUMVERTICES][3];
    4813         IssmDouble xyz_list_tria[NUMVERTICES2D][3]={0.0};
    4814         IssmDouble Jdet2d,dt;
    4815         IssmDouble rho_ice,heatcapacity,geothermalflux_value;
    4816         IssmDouble basalfriction,alpha2,vx,vy;
    4817         IssmDouble basis[NUMVERTICES];
    4818         IssmDouble scalar;
    4819         Friction*  friction=NULL;
     4810        int         i,j;
     4811        int         analysis_type;
     4812        IssmDouble  xyz_list[NUMVERTICES][3];
     4813        IssmDouble  xyz_list_tria[NUMVERTICES2D][3]={0.0};
     4814        IssmDouble  Jdet2d,dt;
     4815        IssmDouble  rho_ice,heatcapacity,geothermalflux_value;
     4816        IssmDouble  basalfriction,alpha2,vx,vy;
     4817        IssmDouble  basis[NUMVERTICES];
     4818        IssmDouble  scalar;
     4819        Friction*   friction=NULL;
    48204820        GaussPenta* gauss=NULL;
    48214821
     
    48804880        IssmDouble  B_average,s_average;
    48814881        int        *doflist = NULL;
    4882         IssmDouble  pressure[numdof];
     4882        bool        hack    = false;
    48834883
    48844884        /*Get dof list: */
     
    48884888        for(i=0;i<numdof;i++){
    48894889                values[i]=solution[doflist[i]];
    4890                 GetInputListOnVertices(&pressure[0],PressureEnum);
    4891                 if(values[i]>matpar->TMeltingPoint(pressure[i])) values[i]=matpar->TMeltingPoint(pressure[i]);
    4892                 if(values[i]<matpar->TMeltingPoint(pressure[i])-50) values[i]=matpar->TMeltingPoint(pressure[i])-50;
    48934890
    48944891                /*Check solution*/
     
    48974894                //if(values[i]>275)    _printf_("temperature > 275°K found in solution vector (Paterson's rheology associated is negative)\n");
    48984895        }
     4896
     4897        if(hack){
     4898                /*Force temperature between [Tpmp-50 Tpmp] to disable penalties*/
     4899                IssmDouble pressure[numdof];
     4900                GetInputListOnVertices(&pressure[0],PressureEnum);
     4901                if(values[i]>matpar->TMeltingPoint(pressure[i]))     values[i]=matpar->TMeltingPoint(pressure[i]);
     4902                if(values[i]<matpar->TMeltingPoint(pressure[i])-50.) values[i]=matpar->TMeltingPoint(pressure[i])-50.;
     4903        }
     4904
    48994905
    49004906        /*Get all inputs and parameters*/
Note: See TracChangeset for help on using the changeset viewer.