enlev6
C ENLEV6 SOURCE CHAT 05/01/12 23:40:02 5004 IMPLICIT INTEGER(I-N) IMPLICIT REAL*8(A-H,O-Z) ************************************************************************ * * E N L E V 6 * ----------- * * FONCTION: * --------- * * ENLEVER UN ELEMENT D'UNE "TABLE". * * MODULES UTILISES: * ----------------- * -INC PPARAM -INC CCOPTIO -INC SMTABLE * * PARAMETRES: (E)=ENTREE (S)=SORTIE * ----------- * * IPTABL (E) TABLE A REDUIRE. * INDICE INDICE DE L'OBJET A ENLEVER. * TYPIND TYPE DE L'INDICE DE L'OBJET A ENLEVER. * IPTAB2 (S) TABLE REDUITE. * CHARACTER*(8) TYPIND * * AUTEUR, DATE DE CREATION: * ------------------------- * * PASCAL MANIGOT 21 JUIN 1988 * * LANGAGE: * -------- * * ESOPE + FORTRAN77 * ************************************************************************ * IF(IERR.NE.0) RETURN IF(TYPIND.EQ.'FLOTTANT' ) THEN ELSE ENDIF IF ( IERR.NE.0) RETURN MTABLE = IPTABL SEGACT,MTABLE M = MLOTAB M0 = 0 IF (TYPIND.EQ.'FLOTTANT') THEN DO 103 I=1,M IF( RMTABI(I) . EQ. XVA) THEN M0 = I GO TO 102 ENDIF 103 CONTINUE ELSE DO 100 I=1,M IF (MTABTI(I) .EQ. TYPIND) THEN IF (MTABII(I) .EQ. INDICE) THEN M0 = I GOTO 102 END IF END IF 100 CONTINUE * END DO ENDIF 102 CONTINUE * IF (M0 .EQ. 0) THEN RETURN END IF * M = M - 1 SEGINI,MTAB2 MTAB2.MLOTAB=M IPTAB2 = MTAB2 * DO 200 I=1,(M0-1) MTAB2.MTABTI(I) = MTABLE.MTABTI(I) MTAB2.MTABTV(I) = MTABLE.MTABTV(I) MTAB2.RMTABI(I) = MTABLE.RMTABI(I) MTAB2.MTABII(I) = MTABLE.MTABII(I) MTAB2.MTABIV(I) = MTABLE.MTABIV(I) MTAB2.RMTABV(I) = MTABLE.RMTABV(I) 200 CONTINUE * END DO DO 210 I=M0,M MTAB2.MTABTI(I) = MTABLE.MTABTI(I+1) MTAB2.MTABTV(I) = MTABLE.MTABTV(I+1) MTAB2.RMTABI(I) = MTABLE.RMTABI(I+1) MTAB2.MTABII(I) = MTABLE.MTABII(I+1) MTAB2.MTABIV(I) = MTABLE.MTABIV(I+1) MTAB2.RMTABV(I) = MTABLE.RMTABV(I+1) 210 CONTINUE * END DO * SEGDES,MTABLE SEGDES,MTAB2 * END
© Cast3M 2003 - Tous droits réservés.
Mentions légales