Changeset 21374


Ignore:
Timestamp:
11/12/16 19:36:54 (8 years ago)
Author:
Eric.Larour
Message:

CHG: fixed leak + conditional jump.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-NatGeoScience2016/src/c/cores/sealevelrise_core_noneustatic.cpp

    r21079 r21374  
    8585                slrconvergence(&converged,Sg,Sg_old,eps_rel,eps_abs);
    8686
     87                /*free ressources: */
     88                delete Sgo;
     89
    8790                /*Increase count: */
    8891                count++;
     
    120123        ndS=dSg->Norm(NORM_TWO);
    121124       
     125        if (xIsNan<IssmDouble>(ndS)) _error_("convergence criterion is NaN!");
     126       
    122127        if(!xIsNan<IssmDouble>(eps_rel)){
    123128                nS=Sg_old->Norm(NORM_TWO);
     129                if (xIsNan<IssmDouble>(nS)) _error_("convergence criterion is NaN!");
    124130        }
    125131
    126         if (xIsNan<IssmDouble>(ndS) || xIsNan<IssmDouble>(nS)) _error_("convergence criterion is NaN!");
    127132
    128133        //clean up
Note: See TracChangeset for help on using the changeset viewer.