Changeset 2583


Ignore:
Timestamp:
11/02/09 10:32:18 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added error message if NAN in parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ControlConstrainx/ControlConstrainx.cpp

    r2354 r2583  
    2222        else{
    2323                for(i=0;i<numdofnodes;i++){
    24 
     24                        if(isnan(p_g[i])){
     25                                throw ErrorException(__FUNCT__,exprintf("NaN found in parameter p_g[%i]",i));
     26                        }
    2527                        if(!isnan(cm_min)){
    2628                                if (p_g[i]<cm_min)p_g[i]=cm_min;
    2729                        }
    28 
    2930                        if(!isnan(cm_max)){
    3031                                if (p_g[i]>cm_max)p_g[i]=cm_max;
Note: See TracChangeset for help on using the changeset viewer.