Changeset 26423


Ignore:
Timestamp:
09/01/21 18:34:26 (4 years ago)
Author:
Mathieu Morlighem
Message:

BUG: minor

Location:
issm/trunk-jpl/src/c/analyses
Files:
2 edited

Legend:

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

    r26420 r26423  
    221221        basalelement->FindParam(&migrationmax,MigrationMaxEnum);
    222222
    223         h = element->CharacteristicLength();
     223        h = basalelement->CharacteristicLength();
    224224
    225225        Input* mf_vx_input        = NULL;
     
    388388        Input* mf_vy_input    = basalelement->GetInput(MovingFrontalVyEnum); _assert_(mf_vy_input);
    389389
    390         IssmDouble h=element->CharacteristicLength();
     390        IssmDouble h=basalelement->CharacteristicLength();
    391391
    392392        /* Start  looping on the number of gaussian points: */
  • issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp

    r26371 r26423  
    18781878        /*Start looping on Gaussian points*/
    18791879        Gauss* gauss=element->NewGauss(xyz_list,xyz_list_front,3);
     1880   
     1881    double time;
     1882    element->FindParam(&time,TimeEnum);
     1883   
    18801884        while(gauss->next()){
    18811885                thickness_input->GetInputValue(&thickness,gauss);
     
    18901894                ice_pressure   = 1.0/2.0*gravity*rho_ice*thickness*thickness;
    18911895                pressure = ice_pressure + water_pressure;
     1896       
     1897        /*double alpha = 0.1/2*(1+sin(2*pi*time/(365*24*3600)))'*/
     1898        /*double alpha = 0.01/2*(1+sin(2*pi*time/(365*24*3600)))'*/
     1899        /*double alpha = 0.05/2*(1+sin(2*pi*time/(365*24*3600)))'*/
     1900       
     1901        if(base<sealevel){
     1902        double alpha = 0*0.02/2*(1+sin(2*PI*time/(365*24*3600)));
     1903                  alpha = 0.1;
     1904        pressure = ice_pressure -( 0.5*rho_ice*gravity*pow(alpha*thickness,2) + 0.5*rho_water*gravity*base*base-0.5*rho_ice*rho_ice/rho_water*gravity*pow(alpha*thickness,2));
     1905                  //pressure = ice_pressure + 0.5*rho_ice*gravity*pow(alpha*thickness,2) + 0.5*rho_water*gravity*(surface_under_water*surface_under_water - base_under_water*base_under_water)-0.5*rho_ice*rho_ice/rho_water*gravity*pow(alpha*thickness,2);
     1906                  }
    18921907
    18931908                for(int i=0;i<numnodes;i++){
Note: See TracChangeset for help on using the changeset viewer.