URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pr45578.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }!*==CENTCM.spg processed by SPAG 6.55Dc at 09:26 on 23 Sep 2005SUBROUTINE CENTCMIMPLICIT DOUBLE PRECISION(A-H,O-Z)PARAMETER (NM=16384)PARAMETER (NG=100)PARAMETER (NH=100)PARAMETER (MU=20)PARAMETER (NL=1)PARAMETER (LL=10*NM)PARAMETER (KP=2001,KR=2001,KG=2001)COMMON /LCS / X0(3,-2:NM) , X(3,-2:NM,5) , XIN(3,-2:NM)COMMON /MOLEC / LPBc(3) , MOLsp , MOLsa , NBX , NBY , NBZ , NPLa ,&& LPBcsmcm1 = 0.D0cm2 = 0.D0cm3 = 0.D0DO i = 1 , MOLsacm1 = cm1 + X0(1,i)cm2 = cm2 + X0(2,i)cm3 = cm3 + X0(3,i)ENDDOcm1 = cm1/MOLsacm2 = cm2/MOLsacm3 = cm3/MOLsaIF ( (cm1.EQ.0.D0) .AND. (cm2.EQ.0.D0) .AND. (cm3.EQ.0.D0) ) && RETURNDO i = 1 , MOLsaX0(1,i) = X0(1,i) - cm1X0(2,i) = X0(2,i) - cm2X0(3,i) = X0(3,i) - cm3XIN(1,i) = XIN(1,i) - cm1XIN(2,i) = XIN(2,i) - cm2XIN(3,i) = XIN(3,i) - cm3ENDDOCONTINUEENDPROGRAM testIMPLICIT DOUBLE PRECISION(A-H,O-Z)PARAMETER (NM=16384)PARAMETER (NG=100)PARAMETER (NH=100)PARAMETER (MU=20)PARAMETER (NL=1)PARAMETER (LL=10*NM)PARAMETER (KP=2001,KR=2001,KG=2001)COMMON /LCS / X0(3,-2:NM) , X(3,-2:NM,5) , XIN(3,-2:NM)COMMON /MOLEC / LPBc(3) , MOLsp , MOLsa , NBX , NBY , NBZ , NPLa ,&& LPBcsmMOLsa = 10X0 = 1.CALL CENTCMEND
