Changeset 5323
- Timestamp:
- 08/17/10 15:52:05 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/Orthx/Orthx.cpp
r4053 r5323 30 30 ISSMERROR("||∂J/∂α||∞ = 0 gradient is zero"); 31 31 } 32 if(isnan(norm_new)){ 33 ISSMERROR("input vector norm is NaN\n"); 34 } 32 35 VecScale(newgradj,1.0/norm_new); 33 36 -
issm/trunk/src/c/shared/Numerics/BrentSearch.cpp
r3775 r5323 56 56 //get the value of the function at the first boundary 57 57 fxmin = (*f)(xmin,optargs); 58 if isnan(fxmin) ISSMERROR("Function evaluation returned NaN"); 58 59 59 60 //display result … … 63 64 //get the value of the function at the first boundary xmax and display result 64 65 fxmax = (*f)(xmax,optargs); 66 if isnan(fxmax) ISSMERROR("Function evaluation returned NaN"); 65 67 _printf_(" %s %12.6g %12.6g %s"," N/A",xmax,fxmax," N/A boundary\n"); 66 68 … … 94 96 //2: call the function to be evaluated 95 97 fxbest = (*f)(x,optargs); 98 if isnan(fxbest) ISSMERROR("Function evaluation returned NaN"); 96 99 iter=iter+1; 97 100 … … 190 193 //evaluate function on x 191 194 fx = (*f)(x,optargs); 195 if isnan(fx) ISSMERROR("Function evaluation returned NaN"); 192 196 iter=iter+1; 193 197
Note:
See TracChangeset
for help on using the changeset viewer.