Changeset 10601


Ignore:
Timestamp:
11/11/11 12:56:45 (13 years ago)
Author:
Eric.Larour
Message:

Fixed maxiter convergence issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/solvers/solver_thermal_nonlinear.cpp

    r9761 r10601  
    6969                        _printf_(VerboseConvergence(),"%s%i\n","   #unstable constraints = ",num_unstable_constraints);
    7070                        if (num_unstable_constraints <= thermal_penalty_threshold)converged=true;
     71                        if (count>=thermal_maxiter){
     72                                converged=true;
     73                                _printf_(true,"   maximum number of iterations (%i) exceeded\n",thermal_maxiter);
     74                        }
    7175                }
    7276                count++;
     
    7579               
    7680                if(converged)break;
    77                 if(count>=thermal_maxiter){
    78                         _printf_(true,"   maximum number of iterations (%i) exceeded\n",thermal_maxiter);
    79                         break;
    80                 }
    8181        }
    8282
Note: See TracChangeset for help on using the changeset viewer.