Possibility to patch the omega dalitz decay in AliDecayerPythia
[u/mrichter/AliRoot.git] / PYTHIA6 / openDecayTable.F
index 9cbe547..70003c0 100644 (file)
@@ -1,13 +1,15 @@
 #ifdef __APPLE__
+#ifndef __INTEL_COMPILER
 #define stop CALL EXIT !
 #define STOP CALL EXIT !
 #endif
+#endif
       SUBROUTINE OPENDECAYTABLE(LUN)
       LOGICAL OPENED,EXISTS
       LOGICAL LRMSCH, LRD1O2, LTRASP
       INTEGER LUN
-      CHARACTER*100 FILNAM
-      CHARACTER*100 CHROOT
+      CHARACTER*1000 FILNAM
+      CHARACTER*1000 CHROOT
       CHROOT=' '
       CALL GETENVF('ALICE_ROOT',CHROOT)
       LNROOT = LNBLNK(CHROOT)
          PRINT*,'***********************************'
          STOP
       ENDIF
+#ifdef __GFORTRAN__
+      OPEN(LUN,FILE=FILNAM,STATUS='OLD',ACTION='READ')
+#else
       OPEN(LUN,FILE=FILNAM,STATUS='OLD')
+#endif
+      RETURN
+      END
+      SUBROUTINE CLOSEDECAYTABLE(LUN)
+      CLOSE(LUN)
       RETURN
       END