estiff
C ESTIFF SOURCE BECC 11/05/26 21:15:24 6981 & RHO, P, GAMMA, PC, E, & LOGDEB, LOGAN) * ************************************************************************* * * project : CAST3M, EUROPLEXUS... * * name : e_stiff * * description : euler equations for a mixture of stiffened gases * flux in the non-reactive case. * * computation of the internal energy. * * language : fortran 77 * * author : a. beccantini den/dm2s/sfme/ltmf * ************************************************************************* * * called by : * * ************************************************************************* * ***** input * * pc, gam = properties of the stiffened gas * * rho, p, = density, pressure * * logdeb = debugging ? * ***** output * * e = energy * * logan = anomaly ? * ************************************************************************* * * 26/11/2009 created * 25/05/2011 evolution in CAST3M * ************************************************************************* * * n.b.: all variables are declared * C IMPLICIT NONE IMPLICIT INTEGER(I-N) REAL*8 & RHO, P, PC, GAMMA, E * * debugging ? * LOGICAL LOGDEB, LOGAN * IF (LOGDEB ) THEN WRITE(*,*) 'SUBROUTINE E_STIFF.F' WRITE(*,*) 'ANOMALY DETECTED' LOGAN = .TRUE. GOTO 9999 ENDIF IF ((P .LT. 0.0D0) .OR. (PC .LT. 0.0D0)) THEN WRITE(*,*) 'SUBROUTINE E_STIFF.F' WRITE(*,*) 'ANOMALY DETECTED' WRITE(*,*) 'P = ', P, ' PC = ', PC LOGAN = .TRUE. GOTO 9999 ENDIF IF ((RHO .LT. 0.0D0)) THEN WRITE(*,*) 'SUBROUTINE E_STIFF.F' WRITE(*,*) 'ANOMALY DETECTED' WRITE(*,*) 'RHO = ', RHO LOGAN = .TRUE. GOTO 9999 ENDIF ENDIF 9999 RETURN END
© Cast3M 2003 - Tous droits réservés.
Mentions légales