| 77 | 
  | 
  } | 
| 78 | 
  | 
 | 
| 79 | 
  | 
  int SDMinimizer::checkConvg() { | 
| 80 | 
< | 
    double fTol; | 
| 81 | 
< | 
    double relativeFTol; // relative tolerance | 
| 82 | 
< | 
    double deltaF; | 
| 83 | 
< | 
    double gTol; | 
| 84 | 
< | 
    double relativeGTol; | 
| 85 | 
< | 
    double gnorm; | 
| 80 | 
> | 
    RealType fTol; | 
| 81 | 
> | 
    RealType relativeFTol; // relative tolerance | 
| 82 | 
> | 
    RealType deltaF; | 
| 83 | 
> | 
    RealType gTol; | 
| 84 | 
> | 
    RealType relativeGTol; | 
| 85 | 
> | 
    RealType gnorm; | 
| 86 | 
  | 
 | 
| 87 | 
  | 
    // test function tolerance test | 
| 88 | 
  | 
    fTol = paramSet->getFTol(); | 
| 108 | 
  | 
 | 
| 109 | 
  | 
#else | 
| 110 | 
  | 
 | 
| 111 | 
< | 
    double localDP; | 
| 112 | 
< | 
    double globalDP; | 
| 111 | 
> | 
    RealType localDP; | 
| 112 | 
> | 
    RealType globalDP; | 
| 113 | 
  | 
 | 
| 114 | 
  | 
    localDP = dotProduct(curG, curG); | 
| 115 | 
< | 
    MPI_Allreduce(&localDP, &globalDP, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); | 
| 115 | 
> | 
    MPI_Allreduce(&localDP, &globalDP, 1, MPI_REALTYPE, MPI_SUM, MPI_COMM_WORLD); | 
| 116 | 
  | 
    gnorm = sqrt(globalDP); | 
| 117 | 
  | 
 | 
| 118 | 
  | 
#endif |