00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #include "f2c.h"
00014 #include "blaswrap.h"
00015
00016
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
00032
00033 static integer c__1 = 1;
00034 static integer c__0 = 0;
00035 static integer c_n1 = -1;
00036 static integer c__2 = 2;
00037 static integer c__3 = 3;
00038
00039 int cerrec_(char *path, integer *nunit)
00040 {
00041
00042 static char fmt_9999[] = "(1x,a3,\002 routines passed the tests of the e"
00043 "rror exits (\002,i3,\002 tests done)\002)";
00044 static char fmt_9998[] = "(\002 *** \002,a3,\002 routines failed the tes"
00045 "ts of the error \002,\002exits ***\002)";
00046
00047
00048 integer i__1;
00049
00050
00051 int s_copy(char *, char *, ftnlen, ftnlen);
00052 integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
00053
00054
00055 complex a[16] , b[16] , c__[16]
00056 ;
00057 integer i__, j, m;
00058 real s[4];
00059 complex x[4];
00060 integer nt;
00061 real rw[24];
00062 logical sel[4];
00063 real sep[4];
00064 integer info, ifst, ilst;
00065 complex work[24];
00066 real scale;
00067 extern int chkxer_(char *, integer *, integer *, logical
00068 *, logical *), ctrexc_(char *, integer *, complex *,
00069 integer *, complex *, integer *, integer *, integer *, integer *), ctrsna_(char *, char *, logical *, integer *, complex *,
00070 integer *, complex *, integer *, complex *, integer *, real *,
00071 real *, integer *, integer *, complex *, integer *, real *,
00072 integer *), ctrsen_(char *, char *, logical *,
00073 integer *, complex *, integer *, complex *, integer *, complex *,
00074 integer *, real *, real *, complex *, integer *, integer *), ctrsyl_(char *, char *, integer *, integer *,
00075 integer *, complex *, integer *, complex *, integer *, complex *,
00076 integer *, real *, integer *);
00077
00078
00079 static cilist io___18 = { 0, 0, 0, fmt_9999, 0 };
00080 static cilist io___19 = { 0, 0, 0, fmt_9998, 0 };
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123 infoc_1.nout = *nunit;
00124 infoc_1.ok = TRUE_;
00125 nt = 0;
00126
00127
00128
00129 for (j = 1; j <= 4; ++j) {
00130 for (i__ = 1; i__ <= 4; ++i__) {
00131 i__1 = i__ + (j << 2) - 5;
00132 a[i__1].r = 0.f, a[i__1].i = 0.f;
00133 i__1 = i__ + (j << 2) - 5;
00134 b[i__1].r = 0.f, b[i__1].i = 0.f;
00135
00136 }
00137
00138 }
00139 for (i__ = 1; i__ <= 4; ++i__) {
00140 i__1 = i__ + (i__ << 2) - 5;
00141 a[i__1].r = 1.f, a[i__1].i = 0.f;
00142 sel[i__ - 1] = TRUE_;
00143
00144 }
00145
00146
00147
00148 s_copy(srnamc_1.srnamt, "CTRSYL", (ftnlen)32, (ftnlen)6);
00149 infoc_1.infot = 1;
00150 ctrsyl_("X", "N", &c__1, &c__0, &c__0, a, &c__1, b, &c__1, c__, &c__1, &
00151 scale, &info);
00152 chkxer_("CTRSYL", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00153 infoc_1.ok);
00154 infoc_1.infot = 2;
00155 ctrsyl_("N", "X", &c__1, &c__0, &c__0, a, &c__1, b, &c__1, c__, &c__1, &
00156 scale, &info);
00157 chkxer_("CTRSYL", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00158 infoc_1.ok);
00159 infoc_1.infot = 3;
00160 ctrsyl_("N", "N", &c__0, &c__0, &c__0, a, &c__1, b, &c__1, c__, &c__1, &
00161 scale, &info);
00162 chkxer_("CTRSYL", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00163 infoc_1.ok);
00164 infoc_1.infot = 4;
00165 ctrsyl_("N", "N", &c__1, &c_n1, &c__0, a, &c__1, b, &c__1, c__, &c__1, &
00166 scale, &info);
00167 chkxer_("CTRSYL", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00168 infoc_1.ok);
00169 infoc_1.infot = 5;
00170 ctrsyl_("N", "N", &c__1, &c__0, &c_n1, a, &c__1, b, &c__1, c__, &c__1, &
00171 scale, &info);
00172 chkxer_("CTRSYL", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00173 infoc_1.ok);
00174 infoc_1.infot = 7;
00175 ctrsyl_("N", "N", &c__1, &c__2, &c__0, a, &c__1, b, &c__1, c__, &c__2, &
00176 scale, &info);
00177 chkxer_("CTRSYL", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00178 infoc_1.ok);
00179 infoc_1.infot = 9;
00180 ctrsyl_("N", "N", &c__1, &c__0, &c__2, a, &c__1, b, &c__1, c__, &c__1, &
00181 scale, &info);
00182 chkxer_("CTRSYL", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00183 infoc_1.ok);
00184 infoc_1.infot = 11;
00185 ctrsyl_("N", "N", &c__1, &c__2, &c__0, a, &c__2, b, &c__1, c__, &c__1, &
00186 scale, &info);
00187 chkxer_("CTRSYL", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00188 infoc_1.ok);
00189 nt += 8;
00190
00191
00192
00193 s_copy(srnamc_1.srnamt, "CTREXC", (ftnlen)32, (ftnlen)6);
00194 ifst = 1;
00195 ilst = 1;
00196 infoc_1.infot = 1;
00197 ctrexc_("X", &c__1, a, &c__1, b, &c__1, &ifst, &ilst, &info);
00198 chkxer_("CTREXC", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00199 infoc_1.ok);
00200 infoc_1.infot = 7;
00201 ctrexc_("N", &c__0, a, &c__1, b, &c__1, &ifst, &ilst, &info);
00202 chkxer_("CTREXC", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00203 infoc_1.ok);
00204 infoc_1.infot = 4;
00205 ilst = 2;
00206 ctrexc_("N", &c__2, a, &c__1, b, &c__1, &ifst, &ilst, &info);
00207 chkxer_("CTREXC", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00208 infoc_1.ok);
00209 infoc_1.infot = 6;
00210 ctrexc_("V", &c__2, a, &c__2, b, &c__1, &ifst, &ilst, &info);
00211 chkxer_("CTREXC", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00212 infoc_1.ok);
00213 infoc_1.infot = 7;
00214 ifst = 0;
00215 ilst = 1;
00216 ctrexc_("V", &c__1, a, &c__1, b, &c__1, &ifst, &ilst, &info);
00217 chkxer_("CTREXC", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00218 infoc_1.ok);
00219 infoc_1.infot = 7;
00220 ifst = 2;
00221 ctrexc_("V", &c__1, a, &c__1, b, &c__1, &ifst, &ilst, &info);
00222 chkxer_("CTREXC", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00223 infoc_1.ok);
00224 infoc_1.infot = 8;
00225 ifst = 1;
00226 ilst = 0;
00227 ctrexc_("V", &c__1, a, &c__1, b, &c__1, &ifst, &ilst, &info);
00228 chkxer_("CTREXC", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00229 infoc_1.ok);
00230 infoc_1.infot = 8;
00231 ilst = 2;
00232 ctrexc_("V", &c__1, a, &c__1, b, &c__1, &ifst, &ilst, &info);
00233 chkxer_("CTREXC", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00234 infoc_1.ok);
00235 nt += 8;
00236
00237
00238
00239 s_copy(srnamc_1.srnamt, "CTRSNA", (ftnlen)32, (ftnlen)6);
00240 infoc_1.infot = 1;
00241 ctrsna_("X", "A", sel, &c__0, a, &c__1, b, &c__1, c__, &c__1, s, sep, &
00242 c__1, &m, work, &c__1, rw, &info);
00243 chkxer_("CTRSNA", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00244 infoc_1.ok);
00245 infoc_1.infot = 2;
00246 ctrsna_("B", "X", sel, &c__0, a, &c__1, b, &c__1, c__, &c__1, s, sep, &
00247 c__1, &m, work, &c__1, rw, &info);
00248 chkxer_("CTRSNA", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00249 infoc_1.ok);
00250 infoc_1.infot = 4;
00251 ctrsna_("B", "A", sel, &c_n1, a, &c__1, b, &c__1, c__, &c__1, s, sep, &
00252 c__1, &m, work, &c__1, rw, &info);
00253 chkxer_("CTRSNA", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00254 infoc_1.ok);
00255 infoc_1.infot = 6;
00256 ctrsna_("V", "A", sel, &c__2, a, &c__1, b, &c__1, c__, &c__1, s, sep, &
00257 c__2, &m, work, &c__2, rw, &info);
00258 chkxer_("CTRSNA", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00259 infoc_1.ok);
00260 infoc_1.infot = 8;
00261 ctrsna_("B", "A", sel, &c__2, a, &c__2, b, &c__1, c__, &c__2, s, sep, &
00262 c__2, &m, work, &c__2, rw, &info);
00263 chkxer_("CTRSNA", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00264 infoc_1.ok);
00265 infoc_1.infot = 10;
00266 ctrsna_("B", "A", sel, &c__2, a, &c__2, b, &c__2, c__, &c__1, s, sep, &
00267 c__2, &m, work, &c__2, rw, &info);
00268 chkxer_("CTRSNA", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00269 infoc_1.ok);
00270 infoc_1.infot = 13;
00271 ctrsna_("B", "A", sel, &c__1, a, &c__1, b, &c__1, c__, &c__1, s, sep, &
00272 c__0, &m, work, &c__1, rw, &info);
00273 chkxer_("CTRSNA", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00274 infoc_1.ok);
00275 infoc_1.infot = 13;
00276 ctrsna_("B", "S", sel, &c__2, a, &c__2, b, &c__2, c__, &c__2, s, sep, &
00277 c__1, &m, work, &c__1, rw, &info);
00278 chkxer_("CTRSNA", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00279 infoc_1.ok);
00280 infoc_1.infot = 16;
00281 ctrsna_("B", "A", sel, &c__2, a, &c__2, b, &c__2, c__, &c__2, s, sep, &
00282 c__2, &m, work, &c__1, rw, &info);
00283 chkxer_("CTRSNA", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00284 infoc_1.ok);
00285 nt += 9;
00286
00287
00288
00289 sel[0] = FALSE_;
00290 s_copy(srnamc_1.srnamt, "CTRSEN", (ftnlen)32, (ftnlen)6);
00291 infoc_1.infot = 1;
00292 ctrsen_("X", "N", sel, &c__0, a, &c__1, b, &c__1, x, &m, s, sep, work, &
00293 c__1, &info);
00294 chkxer_("CTRSEN", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00295 infoc_1.ok);
00296 infoc_1.infot = 2;
00297 ctrsen_("N", "X", sel, &c__0, a, &c__1, b, &c__1, x, &m, s, sep, work, &
00298 c__1, &info);
00299 chkxer_("CTRSEN", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00300 infoc_1.ok);
00301 infoc_1.infot = 4;
00302 ctrsen_("N", "N", sel, &c_n1, a, &c__1, b, &c__1, x, &m, s, sep, work, &
00303 c__1, &info);
00304 chkxer_("CTRSEN", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00305 infoc_1.ok);
00306 infoc_1.infot = 6;
00307 ctrsen_("N", "N", sel, &c__2, a, &c__1, b, &c__1, x, &m, s, sep, work, &
00308 c__2, &info);
00309 chkxer_("CTRSEN", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00310 infoc_1.ok);
00311 infoc_1.infot = 8;
00312 ctrsen_("N", "V", sel, &c__2, a, &c__2, b, &c__1, x, &m, s, sep, work, &
00313 c__1, &info);
00314 chkxer_("CTRSEN", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00315 infoc_1.ok);
00316 infoc_1.infot = 14;
00317 ctrsen_("N", "V", sel, &c__2, a, &c__2, b, &c__2, x, &m, s, sep, work, &
00318 c__0, &info);
00319 chkxer_("CTRSEN", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00320 infoc_1.ok);
00321 infoc_1.infot = 14;
00322 ctrsen_("E", "V", sel, &c__3, a, &c__3, b, &c__3, x, &m, s, sep, work, &
00323 c__1, &info);
00324 chkxer_("CTRSEN", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00325 infoc_1.ok);
00326 infoc_1.infot = 14;
00327 ctrsen_("V", "V", sel, &c__3, a, &c__3, b, &c__3, x, &m, s, sep, work, &
00328 c__3, &info);
00329 chkxer_("CTRSEN", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00330 infoc_1.ok);
00331 nt += 8;
00332
00333
00334
00335 if (infoc_1.ok) {
00336 io___18.ciunit = infoc_1.nout;
00337 s_wsfe(&io___18);
00338 do_fio(&c__1, path, (ftnlen)3);
00339 do_fio(&c__1, (char *)&nt, (ftnlen)sizeof(integer));
00340 e_wsfe();
00341 } else {
00342 io___19.ciunit = infoc_1.nout;
00343 s_wsfe(&io___19);
00344 do_fio(&c__1, path, (ftnlen)3);
00345 e_wsfe();
00346 }
00347
00348 return 0;
00349
00350
00351
00352 }