cotemo
C COTEMO SOURCE OF166741 24/10/07 21:15:10 12016 c----------------------------------------------------------------------- c c teste les noms des composantes des MCHAML susceptibles d etre crees c avec le sous model : on ne veut pas de redondance C sauf pour les formulations CHARGEMENT CONTRAINTE c c----------------------------------------------------------------------- IMPLICIT INTEGER(I-N) IMPLICIT REAL*8 (A-H,O-Z) -INC PPARAM -INC CCOPTIO -INC SMMODEL SEGMENT nomlis CHARACTER*(LOCOMP) lescom(NTOT) CHARACTER*(8) lecham(NTOT) ENDSEGMENT CHARACTER*(LOCOMP) moref CHARACTER*(8) mocham imodel = IP1 NFOR = imodel.formod(/2) C* Cas particuliers : i_z = icont + ichgt IF (i_z.GT.0) RETURN c* CALL PLACE(FORMOD,NFOR,idiff,'DIFFUSION ') c* CALL PLACE(FORMOD,NFOR,ielec,'ELECTROSTATIQUE ') ithe = ither + ithhy ntot = 0 SEGINI,nomlis DO lm = 1, 22 NBROBL = 0 NBRFAC = 0 NOMID = 0 mocham = ' ' goto ( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, & 14, 15, 16, 17, 18, 19, 20, 21, 22) lm 1 continue NBROBL=1 SEGINI NOMID LESOBL(1)='SCAL ' mocham = 'RESERVE ' GOTO 120 2 continue NBROBL=1 SEGINI NOMID LESOBL(1)='MAHO ' mocham = 'MAHOOKE ' GOTO 120 3 continue NBROBL=1 SEGINI NOMID LESOBL(1)='TEMP ' mocham = 'RESERVE ' GOTO 120 4 continue GOTO 120 5 continue GOTO 120 6 continue nomid = lnomid(1) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(1)' endif mocham = 'DEPLACEM' GOTO 120 7 continue nomid = lnomid(2) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(2)' endif mocham = 'FORCES ' GOTO 120 8 continue GOTO 120 9 continue GOTO 120 10 continue nomid = lnomid(3) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(3)' endif mocham = 'GRADIENT' GOTO 120 11 continue nomid = lnomid(4) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(4)' endif mocham = 'CONTRAIN' GOTO 120 12 continue nomid = lnomid(5) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(5)' endif mocham = 'DEFORMAT' GOTO 120 13 continue nomid = lnomid(6) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(6)' endif mocham = 'MATERIAU' GOTO 120 14 continue nomid = lnomid(7) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(7)' MELE = imodel.nefmod endif mocham = 'CARACTER' GOTO 120 15 continue nomid = lnomid(8) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(8)' NPINT = 0 endif mocham = 'TEMPERAT' GOTO 120 16 continue nomid = lnomid(9) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(9)' endif mocham = 'PRINCIPA' GOTO 120 17 continue nomid = lnomid(13) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(13)' endif mocham = 'DEFINELA' GOTO 120 18 continue GOTO 120 19 continue GOTO 120 20 continue nomid = lnomid(10) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(10)' endif mocham = 'VARINTER' GOTO 120 21 continue nomid = lnomid(11) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(11)' endif mocham = 'GRAFLEXI' GOTO 120 22 continue nomid = lnomid(12) if (nomid.eq.0) then c* write(ioimp,*) 'COTEMO : NOMID = 0 = lnomid(12)' endif mocham = 'PHASES ' GOTO 120 120 continue if (nomid.gt.0) then nbrcom = nbrobl + nbrfac nto1 = lescom(/2) ntot = nto1 + nbrcom SEGADJ,nomlis do im = 1, nbrcom lecham(nto1 + im) = mocham if (im.le.nbrobl) then lescom(nto1 + im) = lesobl(im) else lescom(nto1 + im) = lesfac(im - nbrobl) endif enddo * write(6,*) 'lm ', lm, mocham, nobl, nfac,'nto1 ', nto1,MFR endif ENDDO ntot = lescom(/2) DO im = 1, (ntot - 1) moref = lescom(im) * write(6,*) 'comp-champ-ref',im,moref,lecham(im) if (moref.eq.'T ') goto 800 if (moref.eq.'EPAI '.and.imagn.ne.0) goto 800 if ((moref.eq.'QSUP '.or.moref.eq.'QINF ').and. & ithe.ne.0) goto 800 DO jm = (im + 1), ntot * write(6,*) 'comp-champ-tes',jm,lescom(jm),lecham(jm) if (lescom(jm).eq.moref) then moterr(1:8) = moref moterr(9:16) = lecham(im) moterr(17:24) = lecham(jm) endif ENDDO 800 continue ENDDO SEGSUP,nomlis c return end
© Cast3M 2003 - Tous droits réservés.
Mentions légales