Changeset 2033 for issm/trunk/src/c/parallel/convergence.cpp
- Timestamp:
- 08/27/09 17:15:17 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/parallel/convergence.cpp
r1881 r2033 67 67 VecNorm(pf,NORM_2,&nF); 68 68 res=nKUoldF/nF; 69 if (isnan(res)) throw ErrorException(__FUNCT__,exprintf("mechanical equilibrium convergence criterion is NaN! ")); 69 if (isnan(res)){ 70 PetscSynchronizedPrintf(MPI_COMM_WORLD,"norm nf %lf \n",nF); 71 PetscSynchronizedFlush(MPI_COMM_WORLD); 72 73 PetscSynchronizedPrintf(MPI_COMM_WORLD,"norm kuold %lf \n",nKUoldF); 74 PetscSynchronizedFlush(MPI_COMM_WORLD); 75 throw ErrorException(__FUNCT__,exprintf("mechanical equilibrium convergence criterion is NaN! ")); 76 } 70 77 71 78 //clean up … … 89 96 VecDuplicate(old_uf,&duf);VecCopy(old_uf,duf); VecAYPX(duf,-1.0,uf); 90 97 VecNorm(duf,NORM_2,&ndu); VecNorm(old_uf,NORM_2,&nu); 98 91 99 if (isnan(ndu) || isnan(nu)) throw ErrorException(__FUNCT__,exprintf("convergence criterion is NaN! ")); 92 100
Note:
See TracChangeset
for help on using the changeset viewer.