dchkpo.c
Go to the documentation of this file.
00001 /* dchkpo.f -- translated by f2c (version 20061008).
00002    You must link the resulting object file with libf2c:
00003         on Microsoft Windows system, link with libf2c.lib;
00004         on Linux or Unix systems, link with .../path/to/libf2c.a -lm
00005         or, if you install libf2c.a in a standard place, with -lf2c -lm
00006         -- in that order, at the end of the command line, as in
00007                 cc *.o -lf2c -lm
00008         Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
00009 
00010                 http://www.netlib.org/f2c/libf2c.zip
00011 */
00012 
00013 #include "f2c.h"
00014 #include "blaswrap.h"
00015 
00016 /* Common Block Declarations */
00017 
00018 struct {
00019     integer infot, nunit;
00020     logical ok, lerr;
00021 } infoc_;
00022 
00023 #define infoc_1 infoc_
00024 
00025 struct {
00026     char srnamt[32];
00027 } srnamc_;
00028 
00029 #define srnamc_1 srnamc_
00030 
00031 /* Table of constant values */
00032 
00033 static integer c__2 = 2;
00034 static integer c__0 = 0;
00035 static integer c_n1 = -1;
00036 static integer c__1 = 1;
00037 static integer c__8 = 8;
00038 
00039 /* Subroutine */ int dchkpo_(logical *dotype, integer *nn, integer *nval, 
00040         integer *nnb, integer *nbval, integer *nns, integer *nsval, 
00041         doublereal *thresh, logical *tsterr, integer *nmax, doublereal *a, 
00042         doublereal *afac, doublereal *ainv, doublereal *b, doublereal *x, 
00043         doublereal *xact, doublereal *work, doublereal *rwork, integer *iwork, 
00044          integer *nout)
00045 {
00046     /* Initialized data */
00047 
00048     static integer iseedy[4] = { 1988,1989,1990,1991 };
00049     static char uplos[1*2] = "U" "L";
00050 
00051     /* Format strings */
00052     static char fmt_9999[] = "(\002 UPLO = '\002,a1,\002', N =\002,i5,\002, "
00053             "NB =\002,i4,\002, type \002,i2,\002, test \002,i2,\002, ratio "
00054             "=\002,g12.5)";
00055     static char fmt_9998[] = "(\002 UPLO = '\002,a1,\002', N =\002,i5,\002, "
00056             "NRHS=\002,i3,\002, type \002,i2,\002, test(\002,i2,\002) =\002,g"
00057             "12.5)";
00058     static char fmt_9997[] = "(\002 UPLO = '\002,a1,\002', N =\002,i5,\002"
00059             ",\002,10x,\002 type \002,i2,\002, test(\002,i2,\002) =\002,g12.5)"
00060             ;
00061 
00062     /* System generated locals */
00063     integer i__1, i__2, i__3, i__4;
00064 
00065     /* Builtin functions */
00066     /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
00067     integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
00068 
00069     /* Local variables */
00070     integer i__, k, n, nb, in, kl, ku, lda, inb, ioff, mode, imat, info;
00071     char path[3], dist[1];
00072     integer irhs, nrhs;
00073     char uplo[1], type__[1];
00074     integer nrun;
00075     extern /* Subroutine */ int alahd_(integer *, char *), dget04_(
00076             integer *, integer *, doublereal *, integer *, doublereal *, 
00077             integer *, doublereal *, doublereal *);
00078     integer nfail, iseed[4];
00079     extern doublereal dget06_(doublereal *, doublereal *);
00080     doublereal rcond;
00081     extern /* Subroutine */ int dpot01_(char *, integer *, doublereal *, 
00082             integer *, doublereal *, integer *, doublereal *, doublereal *);
00083     integer nimat;
00084     extern /* Subroutine */ int dpot02_(char *, integer *, integer *, 
00085             doublereal *, integer *, doublereal *, integer *, doublereal *, 
00086             integer *, doublereal *, doublereal *), dpot03_(char *, 
00087             integer *, doublereal *, integer *, doublereal *, integer *, 
00088             doublereal *, integer *, doublereal *, doublereal *, doublereal *), dpot05_(char *, integer *, integer *, doublereal *, 
00089             integer *, doublereal *, integer *, doublereal *, integer *, 
00090             doublereal *, integer *, doublereal *, doublereal *, doublereal *);
00091     doublereal anorm;
00092     integer iuplo, izero, nerrs;
00093     logical zerot;
00094     char xtype[1];
00095     extern /* Subroutine */ int dlatb4_(char *, integer *, integer *, integer 
00096             *, char *, integer *, integer *, doublereal *, integer *, 
00097             doublereal *, char *), alaerh_(char *, 
00098             char *, integer *, integer *, char *, integer *, integer *, 
00099             integer *, integer *, integer *, integer *, integer *, integer *, 
00100             integer *);
00101     doublereal rcondc;
00102     extern /* Subroutine */ int dlacpy_(char *, integer *, integer *, 
00103             doublereal *, integer *, doublereal *, integer *), 
00104             dlarhs_(char *, char *, char *, char *, integer *, integer *, 
00105             integer *, integer *, integer *, doublereal *, integer *, 
00106             doublereal *, integer *, doublereal *, integer *, integer *, 
00107             integer *), alasum_(char *, 
00108             integer *, integer *, integer *, integer *);
00109     doublereal cndnum;
00110     extern /* Subroutine */ int dlatms_(integer *, integer *, char *, integer 
00111             *, char *, doublereal *, integer *, doublereal *, doublereal *, 
00112             integer *, integer *, char *, doublereal *, integer *, doublereal 
00113             *, integer *), dpocon_(char *, integer *, 
00114             doublereal *, integer *, doublereal *, doublereal *, doublereal *, 
00115              integer *, integer *);
00116     extern doublereal dlansy_(char *, char *, integer *, doublereal *, 
00117             integer *, doublereal *);
00118     extern /* Subroutine */ int derrpo_(char *, integer *), dporfs_(
00119             char *, integer *, integer *, doublereal *, integer *, doublereal 
00120             *, integer *, doublereal *, integer *, doublereal *, integer *, 
00121             doublereal *, doublereal *, doublereal *, integer *, integer *), dpotrf_(char *, integer *, doublereal *, integer *, 
00122             integer *), xlaenv_(integer *, integer *), dpotri_(char *, 
00123              integer *, doublereal *, integer *, integer *), dpotrs_(
00124             char *, integer *, integer *, doublereal *, integer *, doublereal 
00125             *, integer *, integer *);
00126     doublereal result[8];
00127 
00128     /* Fortran I/O blocks */
00129     static cilist io___33 = { 0, 0, 0, fmt_9999, 0 };
00130     static cilist io___36 = { 0, 0, 0, fmt_9998, 0 };
00131     static cilist io___38 = { 0, 0, 0, fmt_9997, 0 };
00132 
00133 
00134 
00135 /*  -- LAPACK test routine (version 3.1) -- */
00136 /*     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
00137 /*     November 2006 */
00138 
00139 /*     .. Scalar Arguments .. */
00140 /*     .. */
00141 /*     .. Array Arguments .. */
00142 /*     .. */
00143 
00144 /*  Purpose */
00145 /*  ======= */
00146 
00147 /*  DCHKPO tests DPOTRF, -TRI, -TRS, -RFS, and -CON */
00148 
00149 /*  Arguments */
00150 /*  ========= */
00151 
00152 /*  DOTYPE  (input) LOGICAL array, dimension (NTYPES) */
00153 /*          The matrix types to be used for testing.  Matrices of type j */
00154 /*          (for 1 <= j <= NTYPES) are used for testing if DOTYPE(j) = */
00155 /*          .TRUE.; if DOTYPE(j) = .FALSE., then type j is not used. */
00156 
00157 /*  NN      (input) INTEGER */
00158 /*          The number of values of N contained in the vector NVAL. */
00159 
00160 /*  NVAL    (input) INTEGER array, dimension (NN) */
00161 /*          The values of the matrix dimension N. */
00162 
00163 /*  NNB     (input) INTEGER */
00164 /*          The number of values of NB contained in the vector NBVAL. */
00165 
00166 /*  NBVAL   (input) INTEGER array, dimension (NBVAL) */
00167 /*          The values of the blocksize NB. */
00168 
00169 /*  NNS     (input) INTEGER */
00170 /*          The number of values of NRHS contained in the vector NSVAL. */
00171 
00172 /*  NSVAL   (input) INTEGER array, dimension (NNS) */
00173 /*          The values of the number of right hand sides NRHS. */
00174 
00175 /*  THRESH  (input) DOUBLE PRECISION */
00176 /*          The threshold value for the test ratios.  A result is */
00177 /*          included in the output file if RESULT >= THRESH.  To have */
00178 /*          every test ratio printed, use THRESH = 0. */
00179 
00180 /*  TSTERR  (input) LOGICAL */
00181 /*          Flag that indicates whether error exits are to be tested. */
00182 
00183 /*  NMAX    (input) INTEGER */
00184 /*          The maximum value permitted for N, used in dimensioning the */
00185 /*          work arrays. */
00186 
00187 /*  A       (workspace) DOUBLE PRECISION array, dimension (NMAX*NMAX) */
00188 
00189 /*  AFAC    (workspace) DOUBLE PRECISION array, dimension (NMAX*NMAX) */
00190 
00191 /*  AINV    (workspace) DOUBLE PRECISION array, dimension (NMAX*NMAX) */
00192 
00193 /*  B       (workspace) DOUBLE PRECISION array, dimension (NMAX*NSMAX) */
00194 /*          where NSMAX is the largest entry in NSVAL. */
00195 
00196 /*  X       (workspace) DOUBLE PRECISION array, dimension (NMAX*NSMAX) */
00197 
00198 /*  XACT    (workspace) DOUBLE PRECISION array, dimension (NMAX*NSMAX) */
00199 
00200 /*  WORK    (workspace) DOUBLE PRECISION array, dimension */
00201 /*                      (NMAX*max(3,NSMAX)) */
00202 
00203 /*  RWORK   (workspace) DOUBLE PRECISION array, dimension */
00204 /*                      (max(NMAX,2*NSMAX)) */
00205 
00206 /*  IWORK   (workspace) INTEGER array, dimension (NMAX) */
00207 
00208 /*  NOUT    (input) INTEGER */
00209 /*          The unit number for output. */
00210 
00211 /*  ===================================================================== */
00212 
00213 /*     .. Parameters .. */
00214 /*     .. */
00215 /*     .. Local Scalars .. */
00216 /*     .. */
00217 /*     .. Local Arrays .. */
00218 /*     .. */
00219 /*     .. External Functions .. */
00220 /*     .. */
00221 /*     .. External Subroutines .. */
00222 /*     .. */
00223 /*     .. Scalars in Common .. */
00224 /*     .. */
00225 /*     .. Common blocks .. */
00226 /*     .. */
00227 /*     .. Intrinsic Functions .. */
00228 /*     .. */
00229 /*     .. Data statements .. */
00230     /* Parameter adjustments */
00231     --iwork;
00232     --rwork;
00233     --work;
00234     --xact;
00235     --x;
00236     --b;
00237     --ainv;
00238     --afac;
00239     --a;
00240     --nsval;
00241     --nbval;
00242     --nval;
00243     --dotype;
00244 
00245     /* Function Body */
00246 /*     .. */
00247 /*     .. Executable Statements .. */
00248 
00249 /*     Initialize constants and the random number seed. */
00250 
00251     s_copy(path, "Double precision", (ftnlen)1, (ftnlen)16);
00252     s_copy(path + 1, "PO", (ftnlen)2, (ftnlen)2);
00253     nrun = 0;
00254     nfail = 0;
00255     nerrs = 0;
00256     for (i__ = 1; i__ <= 4; ++i__) {
00257         iseed[i__ - 1] = iseedy[i__ - 1];
00258 /* L10: */
00259     }
00260 
00261 /*     Test the error exits */
00262 
00263     if (*tsterr) {
00264         derrpo_(path, nout);
00265     }
00266     infoc_1.infot = 0;
00267     xlaenv_(&c__2, &c__2);
00268 
00269 /*     Do for each value of N in NVAL */
00270 
00271     i__1 = *nn;
00272     for (in = 1; in <= i__1; ++in) {
00273         n = nval[in];
00274         lda = max(n,1);
00275         *(unsigned char *)xtype = 'N';
00276         nimat = 9;
00277         if (n <= 0) {
00278             nimat = 1;
00279         }
00280 
00281         izero = 0;
00282         i__2 = nimat;
00283         for (imat = 1; imat <= i__2; ++imat) {
00284 
00285 /*           Do the tests only if DOTYPE( IMAT ) is true. */
00286 
00287             if (! dotype[imat]) {
00288                 goto L110;
00289             }
00290 
00291 /*           Skip types 3, 4, or 5 if the matrix size is too small. */
00292 
00293             zerot = imat >= 3 && imat <= 5;
00294             if (zerot && n < imat - 2) {
00295                 goto L110;
00296             }
00297 
00298 /*           Do first for UPLO = 'U', then for UPLO = 'L' */
00299 
00300             for (iuplo = 1; iuplo <= 2; ++iuplo) {
00301                 *(unsigned char *)uplo = *(unsigned char *)&uplos[iuplo - 1];
00302 
00303 /*              Set up parameters with DLATB4 and generate a test matrix */
00304 /*              with DLATMS. */
00305 
00306                 dlatb4_(path, &imat, &n, &n, type__, &kl, &ku, &anorm, &mode, 
00307                         &cndnum, dist);
00308 
00309                 s_copy(srnamc_1.srnamt, "DLATMS", (ftnlen)32, (ftnlen)6);
00310                 dlatms_(&n, &n, dist, iseed, type__, &rwork[1], &mode, &
00311                         cndnum, &anorm, &kl, &ku, uplo, &a[1], &lda, &work[1], 
00312                          &info);
00313 
00314 /*              Check error code from DLATMS. */
00315 
00316                 if (info != 0) {
00317                     alaerh_(path, "DLATMS", &info, &c__0, uplo, &n, &n, &c_n1, 
00318                              &c_n1, &c_n1, &imat, &nfail, &nerrs, nout);
00319                     goto L100;
00320                 }
00321 
00322 /*              For types 3-5, zero one row and column of the matrix to */
00323 /*              test that INFO is returned correctly. */
00324 
00325                 if (zerot) {
00326                     if (imat == 3) {
00327                         izero = 1;
00328                     } else if (imat == 4) {
00329                         izero = n;
00330                     } else {
00331                         izero = n / 2 + 1;
00332                     }
00333                     ioff = (izero - 1) * lda;
00334 
00335 /*                 Set row and column IZERO of A to 0. */
00336 
00337                     if (iuplo == 1) {
00338                         i__3 = izero - 1;
00339                         for (i__ = 1; i__ <= i__3; ++i__) {
00340                             a[ioff + i__] = 0.;
00341 /* L20: */
00342                         }
00343                         ioff += izero;
00344                         i__3 = n;
00345                         for (i__ = izero; i__ <= i__3; ++i__) {
00346                             a[ioff] = 0.;
00347                             ioff += lda;
00348 /* L30: */
00349                         }
00350                     } else {
00351                         ioff = izero;
00352                         i__3 = izero - 1;
00353                         for (i__ = 1; i__ <= i__3; ++i__) {
00354                             a[ioff] = 0.;
00355                             ioff += lda;
00356 /* L40: */
00357                         }
00358                         ioff -= izero;
00359                         i__3 = n;
00360                         for (i__ = izero; i__ <= i__3; ++i__) {
00361                             a[ioff + i__] = 0.;
00362 /* L50: */
00363                         }
00364                     }
00365                 } else {
00366                     izero = 0;
00367                 }
00368 
00369 /*              Do for each value of NB in NBVAL */
00370 
00371                 i__3 = *nnb;
00372                 for (inb = 1; inb <= i__3; ++inb) {
00373                     nb = nbval[inb];
00374                     xlaenv_(&c__1, &nb);
00375 
00376 /*                 Compute the L*L' or U'*U factorization of the matrix. */
00377 
00378                     dlacpy_(uplo, &n, &n, &a[1], &lda, &afac[1], &lda);
00379                     s_copy(srnamc_1.srnamt, "DPOTRF", (ftnlen)32, (ftnlen)6);
00380                     dpotrf_(uplo, &n, &afac[1], &lda, &info);
00381 
00382 /*                 Check error code from DPOTRF. */
00383 
00384                     if (info != izero) {
00385                         alaerh_(path, "DPOTRF", &info, &izero, uplo, &n, &n, &
00386                                 c_n1, &c_n1, &nb, &imat, &nfail, &nerrs, nout);
00387                         goto L90;
00388                     }
00389 
00390 /*                 Skip the tests if INFO is not 0. */
00391 
00392                     if (info != 0) {
00393                         goto L90;
00394                     }
00395 
00396 /* +    TEST 1 */
00397 /*                 Reconstruct matrix from factors and compute residual. */
00398 
00399                     dlacpy_(uplo, &n, &n, &afac[1], &lda, &ainv[1], &lda);
00400                     dpot01_(uplo, &n, &a[1], &lda, &ainv[1], &lda, &rwork[1], 
00401                             result);
00402 
00403 /* +    TEST 2 */
00404 /*                 Form the inverse and compute the residual. */
00405 
00406                     dlacpy_(uplo, &n, &n, &afac[1], &lda, &ainv[1], &lda);
00407                     s_copy(srnamc_1.srnamt, "DPOTRI", (ftnlen)32, (ftnlen)6);
00408                     dpotri_(uplo, &n, &ainv[1], &lda, &info);
00409 
00410 /*                 Check error code from DPOTRI. */
00411 
00412                     if (info != 0) {
00413                         alaerh_(path, "DPOTRI", &info, &c__0, uplo, &n, &n, &
00414                                 c_n1, &c_n1, &c_n1, &imat, &nfail, &nerrs, 
00415                                 nout);
00416                     }
00417 
00418                     dpot03_(uplo, &n, &a[1], &lda, &ainv[1], &lda, &work[1], &
00419                             lda, &rwork[1], &rcondc, &result[1]);
00420 
00421 /*                 Print information about the tests that did not pass */
00422 /*                 the threshold. */
00423 
00424                     for (k = 1; k <= 2; ++k) {
00425                         if (result[k - 1] >= *thresh) {
00426                             if (nfail == 0 && nerrs == 0) {
00427                                 alahd_(nout, path);
00428                             }
00429                             io___33.ciunit = *nout;
00430                             s_wsfe(&io___33);
00431                             do_fio(&c__1, uplo, (ftnlen)1);
00432                             do_fio(&c__1, (char *)&n, (ftnlen)sizeof(integer))
00433                                     ;
00434                             do_fio(&c__1, (char *)&nb, (ftnlen)sizeof(integer)
00435                                     );
00436                             do_fio(&c__1, (char *)&imat, (ftnlen)sizeof(
00437                                     integer));
00438                             do_fio(&c__1, (char *)&k, (ftnlen)sizeof(integer))
00439                                     ;
00440                             do_fio(&c__1, (char *)&result[k - 1], (ftnlen)
00441                                     sizeof(doublereal));
00442                             e_wsfe();
00443                             ++nfail;
00444                         }
00445 /* L60: */
00446                     }
00447                     nrun += 2;
00448 
00449 /*                 Skip the rest of the tests unless this is the first */
00450 /*                 blocksize. */
00451 
00452                     if (inb != 1) {
00453                         goto L90;
00454                     }
00455 
00456                     i__4 = *nns;
00457                     for (irhs = 1; irhs <= i__4; ++irhs) {
00458                         nrhs = nsval[irhs];
00459 
00460 /* +    TEST 3 */
00461 /*                 Solve and compute residual for A * X = B . */
00462 
00463                         s_copy(srnamc_1.srnamt, "DLARHS", (ftnlen)32, (ftnlen)
00464                                 6);
00465                         dlarhs_(path, xtype, uplo, " ", &n, &n, &kl, &ku, &
00466                                 nrhs, &a[1], &lda, &xact[1], &lda, &b[1], &
00467                                 lda, iseed, &info);
00468                         dlacpy_("Full", &n, &nrhs, &b[1], &lda, &x[1], &lda);
00469 
00470                         s_copy(srnamc_1.srnamt, "DPOTRS", (ftnlen)32, (ftnlen)
00471                                 6);
00472                         dpotrs_(uplo, &n, &nrhs, &afac[1], &lda, &x[1], &lda, 
00473                                 &info);
00474 
00475 /*                 Check error code from DPOTRS. */
00476 
00477                         if (info != 0) {
00478                             alaerh_(path, "DPOTRS", &info, &c__0, uplo, &n, &
00479                                     n, &c_n1, &c_n1, &nrhs, &imat, &nfail, &
00480                                     nerrs, nout);
00481                         }
00482 
00483                         dlacpy_("Full", &n, &nrhs, &b[1], &lda, &work[1], &
00484                                 lda);
00485                         dpot02_(uplo, &n, &nrhs, &a[1], &lda, &x[1], &lda, &
00486                                 work[1], &lda, &rwork[1], &result[2]);
00487 
00488 /* +    TEST 4 */
00489 /*                 Check solution from generated exact solution. */
00490 
00491                         dget04_(&n, &nrhs, &x[1], &lda, &xact[1], &lda, &
00492                                 rcondc, &result[3]);
00493 
00494 /* +    TESTS 5, 6, and 7 */
00495 /*                 Use iterative refinement to improve the solution. */
00496 
00497                         s_copy(srnamc_1.srnamt, "DPORFS", (ftnlen)32, (ftnlen)
00498                                 6);
00499                         dporfs_(uplo, &n, &nrhs, &a[1], &lda, &afac[1], &lda, 
00500                                 &b[1], &lda, &x[1], &lda, &rwork[1], &rwork[
00501                                 nrhs + 1], &work[1], &iwork[1], &info);
00502 
00503 /*                 Check error code from DPORFS. */
00504 
00505                         if (info != 0) {
00506                             alaerh_(path, "DPORFS", &info, &c__0, uplo, &n, &
00507                                     n, &c_n1, &c_n1, &nrhs, &imat, &nfail, &
00508                                     nerrs, nout);
00509                         }
00510 
00511                         dget04_(&n, &nrhs, &x[1], &lda, &xact[1], &lda, &
00512                                 rcondc, &result[4]);
00513                         dpot05_(uplo, &n, &nrhs, &a[1], &lda, &b[1], &lda, &x[
00514                                 1], &lda, &xact[1], &lda, &rwork[1], &rwork[
00515                                 nrhs + 1], &result[5]);
00516 
00517 /*                    Print information about the tests that did not pass */
00518 /*                    the threshold. */
00519 
00520                         for (k = 3; k <= 7; ++k) {
00521                             if (result[k - 1] >= *thresh) {
00522                                 if (nfail == 0 && nerrs == 0) {
00523                                     alahd_(nout, path);
00524                                 }
00525                                 io___36.ciunit = *nout;
00526                                 s_wsfe(&io___36);
00527                                 do_fio(&c__1, uplo, (ftnlen)1);
00528                                 do_fio(&c__1, (char *)&n, (ftnlen)sizeof(
00529                                         integer));
00530                                 do_fio(&c__1, (char *)&nrhs, (ftnlen)sizeof(
00531                                         integer));
00532                                 do_fio(&c__1, (char *)&imat, (ftnlen)sizeof(
00533                                         integer));
00534                                 do_fio(&c__1, (char *)&k, (ftnlen)sizeof(
00535                                         integer));
00536                                 do_fio(&c__1, (char *)&result[k - 1], (ftnlen)
00537                                         sizeof(doublereal));
00538                                 e_wsfe();
00539                                 ++nfail;
00540                             }
00541 /* L70: */
00542                         }
00543                         nrun += 5;
00544 /* L80: */
00545                     }
00546 
00547 /* +    TEST 8 */
00548 /*                 Get an estimate of RCOND = 1/CNDNUM. */
00549 
00550                     anorm = dlansy_("1", uplo, &n, &a[1], &lda, &rwork[1]);
00551                     s_copy(srnamc_1.srnamt, "DPOCON", (ftnlen)32, (ftnlen)6);
00552                     dpocon_(uplo, &n, &afac[1], &lda, &anorm, &rcond, &work[1]
00553 , &iwork[1], &info);
00554 
00555 /*                 Check error code from DPOCON. */
00556 
00557                     if (info != 0) {
00558                         alaerh_(path, "DPOCON", &info, &c__0, uplo, &n, &n, &
00559                                 c_n1, &c_n1, &c_n1, &imat, &nfail, &nerrs, 
00560                                 nout);
00561                     }
00562 
00563                     result[7] = dget06_(&rcond, &rcondc);
00564 
00565 /*                 Print the test ratio if it is .GE. THRESH. */
00566 
00567                     if (result[7] >= *thresh) {
00568                         if (nfail == 0 && nerrs == 0) {
00569                             alahd_(nout, path);
00570                         }
00571                         io___38.ciunit = *nout;
00572                         s_wsfe(&io___38);
00573                         do_fio(&c__1, uplo, (ftnlen)1);
00574                         do_fio(&c__1, (char *)&n, (ftnlen)sizeof(integer));
00575                         do_fio(&c__1, (char *)&imat, (ftnlen)sizeof(integer));
00576                         do_fio(&c__1, (char *)&c__8, (ftnlen)sizeof(integer));
00577                         do_fio(&c__1, (char *)&result[7], (ftnlen)sizeof(
00578                                 doublereal));
00579                         e_wsfe();
00580                         ++nfail;
00581                     }
00582                     ++nrun;
00583 L90:
00584                     ;
00585                 }
00586 L100:
00587                 ;
00588             }
00589 L110:
00590             ;
00591         }
00592 /* L120: */
00593     }
00594 
00595 /*     Print a summary of the results. */
00596 
00597     alasum_(path, nout, &nfail, &nrun, &nerrs);
00598 
00599     return 0;
00600 
00601 /*     End of DCHKPO */
00602 
00603 } /* dchkpo_ */


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:55:38