derrtz.c
Go to the documentation of this file.
00001 /* derrtz.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, nout;
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_n1 = -1;
00035 static integer c__0 = 0;
00036 static integer c__1 = 1;
00037 
00038 /* Subroutine */ int derrtz_(char *path, integer *nunit)
00039 {
00040     /* Builtin functions */
00041     integer s_wsle(cilist *), e_wsle(void);
00042     /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
00043 
00044     /* Local variables */
00045     doublereal a[4]     /* was [2][2] */, w[2];
00046     char c2[2];
00047     doublereal tau[2];
00048     integer info;
00049     extern /* Subroutine */ int alaesm_(char *, logical *, integer *);
00050     extern logical lsamen_(integer *, char *, char *);
00051     extern /* Subroutine */ int chkxer_(char *, integer *, integer *, logical 
00052             *, logical *), dtzrqf_(integer *, integer *, doublereal *, 
00053              integer *, doublereal *, integer *), dtzrzf_(integer *, integer *
00054 , doublereal *, integer *, doublereal *, doublereal *, integer *, 
00055             integer *);
00056 
00057     /* Fortran I/O blocks */
00058     static cilist io___1 = { 0, 0, 0, 0, 0 };
00059 
00060 
00061 
00062 /*  -- LAPACK test routine (version 3.1) -- */
00063 /*     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
00064 /*     November 2006 */
00065 
00066 /*     .. Scalar Arguments .. */
00067 /*     .. */
00068 
00069 /*  Purpose */
00070 /*  ======= */
00071 
00072 /*  DERRTZ tests the error exits for DTZRQF and STZRZF. */
00073 
00074 /*  Arguments */
00075 /*  ========= */
00076 
00077 /*  PATH    (input) CHARACTER*3 */
00078 /*          The LAPACK path name for the routines to be tested. */
00079 
00080 /*  NUNIT   (input) INTEGER */
00081 /*          The unit number for output. */
00082 
00083 /*  ===================================================================== */
00084 
00085 /*     .. Parameters .. */
00086 /*     .. */
00087 /*     .. Local Scalars .. */
00088 /*     .. */
00089 /*     .. Local Arrays .. */
00090 /*     .. */
00091 /*     .. External Functions .. */
00092 /*     .. */
00093 /*     .. External Subroutines .. */
00094 /*     .. */
00095 /*     .. Scalars in Common .. */
00096 /*     .. */
00097 /*     .. Common blocks .. */
00098 /*     .. */
00099 /*     .. Executable Statements .. */
00100 
00101     infoc_1.nout = *nunit;
00102     io___1.ciunit = infoc_1.nout;
00103     s_wsle(&io___1);
00104     e_wsle();
00105     s_copy(c2, path + 1, (ftnlen)2, (ftnlen)2);
00106     a[0] = 1.;
00107     a[2] = 2.;
00108     a[3] = 3.;
00109     a[1] = 4.;
00110     w[0] = 0.;
00111     w[1] = 0.;
00112     infoc_1.ok = TRUE_;
00113 
00114     if (lsamen_(&c__2, c2, "TZ")) {
00115 
00116 /*        Test error exits for the trapezoidal routines. */
00117 
00118 /*        DTZRQF */
00119 
00120         s_copy(srnamc_1.srnamt, "DTZRQF", (ftnlen)32, (ftnlen)6);
00121         infoc_1.infot = 1;
00122         dtzrqf_(&c_n1, &c__0, a, &c__1, tau, &info);
00123         chkxer_("DTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00124                 infoc_1.ok);
00125         infoc_1.infot = 2;
00126         dtzrqf_(&c__1, &c__0, a, &c__1, tau, &info);
00127         chkxer_("DTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00128                 infoc_1.ok);
00129         infoc_1.infot = 4;
00130         dtzrqf_(&c__2, &c__2, a, &c__1, tau, &info);
00131         chkxer_("DTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00132                 infoc_1.ok);
00133 
00134 /*        DTZRZF */
00135 
00136         s_copy(srnamc_1.srnamt, "DTZRZF", (ftnlen)32, (ftnlen)6);
00137         infoc_1.infot = 1;
00138         dtzrzf_(&c_n1, &c__0, a, &c__1, tau, w, &c__1, &info);
00139         chkxer_("DTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00140                 infoc_1.ok);
00141         infoc_1.infot = 2;
00142         dtzrzf_(&c__1, &c__0, a, &c__1, tau, w, &c__1, &info);
00143         chkxer_("DTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00144                 infoc_1.ok);
00145         infoc_1.infot = 4;
00146         dtzrzf_(&c__2, &c__2, a, &c__1, tau, w, &c__1, &info);
00147         chkxer_("DTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00148                 infoc_1.ok);
00149         infoc_1.infot = 7;
00150         dtzrzf_(&c__2, &c__2, a, &c__2, tau, w, &c__1, &info);
00151         chkxer_("DTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00152                 infoc_1.ok);
00153     }
00154 
00155 /*     Print a summary line. */
00156 
00157     alaesm_(path, &infoc_1.ok, &infoc_1.nout);
00158 
00159     return 0;
00160 
00161 /*     End of DERRTZ */
00162 
00163 } /* derrtz_ */


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