* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / ultrasp6.c
blob0518086402ead0718628920c42ee76fcc0be3daa
1 /* PR target/7784 */
2 /* Originator: Peter van Hoof <p.van-hoof@qub.ac.uk> */
3 /* { dg-do compile { target sparc-*-* } } */
4 /* { dg-options "-O2 -mcpu=ultrasparc" } */
6 typedef struct
8 float EnergyErg;
9 float ots;
10 } EmLine;
12 extern const int ipH_LIKE ;
13 extern const int ipHYDROGEN ;
14 extern const int ipH1s;
15 extern const int ipH2s;
16 extern const int ipH2p;
18 extern EmLine ****EmisLines;
20 typedef struct
22 long n;
23 long s;
24 long l;
25 } Elevels;
27 extern struct t_iso
29 float ***Pop2Ion;
30 long int numLevels[2][30L];
31 } iso;
33 extern struct t_LineSave
35 long int nsum;
36 long int ndsum;
37 long int nComment;
38 long int npxdd;
39 long int ipass;
40 char chHoldComments[10][200];
41 } LineSave;
43 extern struct t_hydro
45 int lgHydEmiss;
46 float **pestrk ;
47 } hydro;
49 extern struct t_dense
51 double DensityLaw[10];
52 float frad[500];
53 float fhden[500];
54 float den0;
55 double eden;
56 } dense;
58 extern struct t_abund
60 float xIonFracs[30L +3][30L +1];
61 } abund;
63 extern struct t_CaseBHS
65 long int nDensity[2][8] , ntemp[2][8] , ncut[2][8] ;
66 int lgHCaseBOK[2][8];
67 } CaseBHS ;
69 extern struct t_smbeta
71 float SimHBeta,
72 cn4861,
73 cn1216,
74 sv4861,
75 sv1216;
76 } smbeta;
78 extern struct t_phycon
80 float te;
81 } phycon;
84 extern struct t_sphere
86 int lgSphere;
87 float covgeo;
88 } sphere;
90 void linadd(double xInten, float wavelength, char *chLab, char chInfo);
92 extern struct t_radiusVar
94 int lgDrNeg;
95 double dVeff;
96 } radius;
98 void lines_hydro(void)
100 long int i, nelem, ipHi, ipLo;
101 double hbetab, em , EmisFac, pump;
102 char chLabel[5];
104 linadd(abund.xIonFracs[ipHYDROGEN][1]*iso.Pop2Ion[ipH_LIKE][ipHYDROGEN][3]*hydro.pestrk[3][2]*3.025e-12, 6563,"Strk",'i');
106 linadd(abund.xIonFracs[ipHYDROGEN][1]*iso.Pop2Ion[ipH_LIKE][ipHYDROGEN][4]*hydro.pestrk[4][2]*4.084e-12, 4861,"Strk",'i');
108 linadd(abund.xIonFracs[ipHYDROGEN][1]*iso.Pop2Ion[ipH_LIKE][ipHYDROGEN][4]*hydro.pestrk[4][3]*1.059e-12, 18751,"Strk",'i');
110 linadd(abund.xIonFracs[ipHYDROGEN][1]*iso.Pop2Ion[ipH_LIKE][ipHYDROGEN][5]*hydro.pestrk[5][4]*4.900e-13, 40512,"Strk",'i');
112 ((void)((LineSave.ipass <1 || EmisLines[ipH_LIKE][ipHYDROGEN][ipH2p][ipH1s].ots>= 0.) || (__assert("LineSave.ipass <1 || EmisLines[ipH_LIKE][ipHYDROGEN][ipH2p][ipH1s].ots>= 0.", "lines_hydro.c", 118), 0)));
114 linadd(EmisLines[ipH_LIKE][ipHYDROGEN][3][ipH2s].ots*EmisLines[ipH_LIKE][ipHYDROGEN][3][ipH2s].EnergyErg, 6563,"Dest",'i');
116 linadd(EmisLines[ipH_LIKE][ipHYDROGEN][5][4].ots*EmisLines[ipH_LIKE][ipHYDROGEN][5][4].EnergyErg,40516, "Dest",'i');
118 smbeta.SimHBeta = smbeta.SimHBeta/(float)radius.dVeff*sphere.covgeo;
120 linadd(smbeta.SimHBeta,4861,"Q(H)",'i');
122 smbeta.SimHBeta = smbeta.SimHBeta*(float)radius.dVeff/sphere.covgeo;
124 for( nelem=0; nelem < 30L; nelem++ )
126 int iCase;
127 for( iCase=0; iCase<2; ++iCase )
129 char chAB[2]={'A','B'};
130 char chLab[5]="Ca ";
132 for( ipLo=1+iCase; ipLo<(((6)<(iso.numLevels[ipH_LIKE][nelem])) ? (6) : (5)); ++ipLo )
134 for( ipHi=ipLo+1; ipHi< (((ipLo+5)<(iso.numLevels[ipH_LIKE][nelem])) ? (ipLo+5) : (iso.numLevels[ipH_LIKE][nelem])); ++ipHi )
136 float wl;
138 hbetab = HSRate( ipHi,ipLo , nelem+1, phycon.te , dense.eden, chAB[iCase] );
139 if( hbetab<=0. )
140 CaseBHS.lgHCaseBOK[iCase][nelem] = 0;
142 if( !hydro.lgHydEmiss )
143 hbetab *= abund.xIonFracs[nelem][nelem+1]*dense.eden;
145 linadd(hbetab,wl,chLab,'i' );