Ignore:
Timestamp:
08/27/09 17:15:17 (16 years ago)
Author:
seroussi
Message:

fixed control stedy, but stokes not working yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/parallel/convergence.cpp

    r1881 r2033  
    6767        VecNorm(pf,NORM_2,&nF);
    6868        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        }
    7077
    7178        //clean up
     
    8996                VecDuplicate(old_uf,&duf);VecCopy(old_uf,duf); VecAYPX(duf,-1.0,uf);
    9097                VecNorm(duf,NORM_2,&ndu); VecNorm(old_uf,NORM_2,&nu);
     98
    9199                if (isnan(ndu) || isnan(nu)) throw ErrorException(__FUNCT__,exprintf("convergence criterion is NaN! "));
    92100
Note: See TracChangeset for help on using the changeset viewer.