5 * Revision 1.1.1.1 1995/10/24 10:20:47 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.32 by S.Giani
12 SUBROUTINE GSTMAT(FNAME)
14 * *** Opens a material list file for CADD output
16 #include "geant321/gcsetf.inc"
18 * *** name of the SET-file:
20 * *** name of the MAT-file:
23 * *** Append filename FNAME to FNAMEM with extension .mat:
24 IF(INDEX(FNAME,'.').EQ.0) THEN
29 #if !defined(CERNLIB_IBM)
30 FNAMEM=FNAME(1:IT)//'.mat'
32 #if defined(CERNLIB_IBM)
33 FNAMEM='/'//FNAME(1:MIN(IT,8))//' MAT A1'
37 * *** Open material file:
38 OPEN (UNIT=NUNIT2, FILE=FNAMEM, STATUS='UNKNOWN', ERR=10 )
40 WRITE (NUNIT2,*)'GEANT-SET MATERIAL LISTING FILE'
41 WRITE (NUNIT2,*)'--------------------------------'
43 WRITE (NUNIT2,*)'Materials in the geometry described in'
44 WRITE (NUNIT2,*)'the .SET file: ',FNAME
50 10 WRITE(*,*)'Error opening the .mat file for materials'
51 WRITE(*,*)'Check use of logical units.'
53 10000 FORMAT('Volume name ','Tracking media ',9X
54 + ,'Material ',14X,'Density ')