#include "f2c.h" #include "blaswrap.h" /* Common Block Declarations */ struct { integer infot, nout; logical ok, lerr; } infoc_; #define infoc_1 infoc_ struct { char srnamt[6]; } srnamc_; #define srnamc_1 srnamc_ /* Table of constant values */ static integer c__2 = 2; static integer c_n1 = -1; static integer c__0 = 0; static integer c__1 = 1; /* Subroutine */ int cerrtz_(char *path, integer *nunit) { /* Builtin functions */ /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen); integer s_wsle(cilist *), e_wsle(void); /* Local variables */ complex a[4] /* was [2][2] */, w[2]; char c2[2]; complex tau[2]; integer info; extern /* Subroutine */ int alaesm_(char *, logical *, integer *); extern logical lsamen_(integer *, char *, char *); extern /* Subroutine */ int chkxer_(char *, integer *, integer *, logical *, logical *), ctzrqf_(integer *, integer *, complex *, integer *, complex *, integer *), ctzrzf_(integer *, integer *, complex *, integer *, complex *, complex *, integer *, integer *); /* Fortran I/O blocks */ static cilist io___4 = { 0, 0, 0, 0, 0 }; /* -- LAPACK test routine (version 3.1) -- */ /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */ /* November 2006 */ /* .. Scalar Arguments .. */ /* .. */ /* Purpose */ /* ======= */ /* CERRTZ tests the error exits for CTZRQF and CTZRZF. */ /* Arguments */ /* ========= */ /* PATH (input) CHARACTER*3 */ /* The LAPACK path name for the routines to be tested. */ /* NUNIT (input) INTEGER */ /* The unit number for output. */ /* ===================================================================== */ /* .. Parameters .. */ /* .. */ /* .. Local Scalars .. */ /* .. */ /* .. Local Arrays .. */ /* .. */ /* .. External Functions .. */ /* .. */ /* .. External Subroutines .. */ /* .. */ /* .. Scalars in Common .. */ /* .. */ /* .. Common blocks .. */ /* .. */ /* .. Intrinsic Functions .. */ /* .. */ /* .. Executable Statements .. */ infoc_1.nout = *nunit; s_copy(c2, path + 1, (ftnlen)2, (ftnlen)2); a[0].r = 1.f, a[0].i = -1.f; a[2].r = 2.f, a[2].i = -2.f; a[3].r = 3.f, a[3].i = -3.f; a[1].r = 4.f, a[1].i = -4.f; w[0].r = 0.f, w[0].i = 0.f; w[1].r = 0.f, w[1].i = 0.f; infoc_1.ok = TRUE_; /* Test error exits for the trapezoidal routines. */ io___4.ciunit = infoc_1.nout; s_wsle(&io___4); e_wsle(); if (lsamen_(&c__2, c2, "TZ")) { /* CTZRQF */ s_copy(srnamc_1.srnamt, "CTZRQF", (ftnlen)6, (ftnlen)6); infoc_1.infot = 1; ctzrqf_(&c_n1, &c__0, a, &c__1, tau, &info); chkxer_("CTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, & infoc_1.ok); infoc_1.infot = 2; ctzrqf_(&c__1, &c__0, a, &c__1, tau, &info); chkxer_("CTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, & infoc_1.ok); infoc_1.infot = 4; ctzrqf_(&c__2, &c__2, a, &c__1, tau, &info); chkxer_("CTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, & infoc_1.ok); /* CTZRZF */ s_copy(srnamc_1.srnamt, "CTZRZF", (ftnlen)6, (ftnlen)6); infoc_1.infot = 1; ctzrzf_(&c_n1, &c__0, a, &c__1, tau, w, &c__1, &info); chkxer_("CTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, & infoc_1.ok); infoc_1.infot = 2; ctzrzf_(&c__1, &c__0, a, &c__1, tau, w, &c__1, &info); chkxer_("CTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, & infoc_1.ok); infoc_1.infot = 4; ctzrzf_(&c__2, &c__2, a, &c__1, tau, w, &c__1, &info); chkxer_("CTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, & infoc_1.ok); infoc_1.infot = 7; ctzrzf_(&c__2, &c__2, a, &c__2, tau, w, &c__1, &info); chkxer_("CTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, & infoc_1.ok); } /* Print a summary line. */ alaesm_(path, &infoc_1.ok, &infoc_1.nout); return 0; /* End of CERRTZ */ } /* cerrtz_ */