URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pr46190.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-O2 -ftree-vectorize" }TYPE :: spot_weld_typeCHARACTER(8) PLACE ! Keyword "NODE" or "POSITION"END TYPETYPE (spot_weld_type), DIMENSION(:), ALLOCATABLE :: SPOT_WELDINTEGER, PARAMETER :: LSRT = 12 ! Length of sorted-element-distance arrayINTEGER && IETYP(LSRT) ! -/- Sort array for closest el's, 0/1=tri/quREAL(KIND(0D0)) && DSQRD(LSRT) ! -/- Sort array for closest el's, d**2LOGICAL && COINCIDENT, && INSIDE_ELEMENTIF (SPOT_WELD(NSW)%PLACE .EQ. 'POSITION') THENDO n = 1,LSRTENDDODO i = 1,NUMP3DO WHILE (Distance_Squared .GT. DSQRD(n) .AND. n .LE. LSRT)ENDDOIF (n .LT. LSRT) THENDO k = LSRT-1,n,-1DSQRD(k+1) = DSQRD(k)IETYP(k+1) = IETYP(k)ENDDOENDIFDO n = 1,LSRTIF (IETYP(n) .EQ. 0) THENINSIDE_ELEMENT = && Xi1EL(n) .GE. 0.0 .AND. Xi2EL(n) .GE. 0.0IF (DSQRD(n) .LT. Dmin) THENENDIFENDIFENDDOENDDOIF (Icount .GT. 0) THENDO i = 1,IcountCALL USER_MESSAGE && ( && )ENDDOCALL USER_MESSAGE && ( && )ENDIFIF && ( && .NOT.COINCIDENT && ) && THENIF (NP1 .GT. 0) THENIF (NP1 .GT. 0) THENENDIFENDIFENDIFIF (.NOT.COINCIDENT) THENDO i = 1,3IF (NP(i) .GT. 0) THENENDIFENDDOENDIFENDIFEND
