Changeset 21779


Ignore:
Timestamp:
07/04/17 14:03:22 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed Viscous Heating output (was crashing because we are not looking for the right nodes) and fixed also memory leak

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

Legend:

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

    r21778 r21779  
    10741074                xDelete<IssmDouble>(watercolumn);
    10751075                xDelete<IssmDouble>(drainage_int);
    1076         }
    1077         xDelete<int>(basalnodeindices);
     1076                xDelete<int>(basalnodeindices);
     1077        }
    10781078}/*}}}*/
    10791079void                            EnthalpyAnalysis::DrainageUpdateEnthalpy(FemModel* femmodel){/*{{{*/
  • issm/trunk-jpl/src/c/classes/Elements/Element.cpp

    r21762 r21779  
    31793179        /*Intermediaries*/
    31803180        IssmDouble phi;
    3181         IssmDouble viscosity;
    3182         IssmDouble epsilon[6];
    31833181        IssmDouble thickness;
    31843182        IssmDouble *xyz_list = NULL;
     
    31893187
    31903188        /*Retrieve all inputs and parameters*/
    3191         this->GetVerticesCoordinatesBase(&xyz_list);
     3189        this->GetVerticesCoordinates(&xyz_list);
    31923190        Input* vx_input        = this->GetInput(VxEnum); _assert_(vx_input);
    31933191        Input* vy_input        = this->GetInput(VyEnum); _assert_(vy_input);
    31943192        Input* vz_input        = this->GetInput(VzEnum); _assert_(vz_input);
    3195         Input* thickness_input = this->GetInput(ThicknessEnum); _assert_(thickness_input);
    31963193
    31973194        /*loop over vertices: */
     
    32003197                gauss->GaussVertex(iv);
    32013198
    3202                 thickness_input->GetInputValue(&thickness,gauss);
    3203 
    3204                 this->StrainRateFS(&epsilon[0],xyz_list,gauss,vx_input,vy_input,vz_input);
    3205                 this->material->ViscosityFS(&viscosity,3,xyz_list,gauss,vx_input,vy_input,vz_input);
    3206                 this->GetPhi(&phi,&epsilon[0],viscosity);
    3207 
    3208                 viscousheating[iv]=phi*thickness;
     3199                this->ViscousHeating(&phi,xyz_list,gauss,vx_input,vy_input,vz_input);
     3200
     3201                viscousheating[iv]=phi;
    32093202        }
    32103203
Note: See TracChangeset for help on using the changeset viewer.