13 #include "Zmanagerp.h" 15 type(xsmedia),
intent(in):: md
16 integer,
intent(in):: pm
17 type(mcsconst),
intent(out):: aMCS
21 if( cosorepi ==
"epics")
then 23 if(mcsdir ==
" " )
then 24 mcsdir =
"$EPICSTOP/Data/MCS/" 28 if(mcsdir ==
" " )
then 29 mcsdir =
"$COSMOSTOP/Data/MCS/" 33 filename=trim(mcsdir)//trim(mcsparam)//
"/"//trim(md%name)
36 call copenf(tempdev, filename, icon)
38 write(0,*) trim(filename),
' cannot be opened for MCS' 39 if( cosorepi ==
"epics")
then 40 write(0,*)
'If the path: ' 41 write(0,*) trim(mcsdir)//trim(mcsparam)
43 *
' is correct, ',trim(md%name),
' may be missing' 44 write(0,*)
' If so, you have to do next:' 46 *
'1: goto $EPICSTOP/Util/Elemag/MixedMCS' 48 *
'2: Edit paramdata file there: fix the 1st line' 50 *
' Normally only 1st term may be given; (0.05~1.9)' 51 write(0,*)
'3: then do' 52 write(0,
'(a,a,a,a)')
' ./ForManyMedia.sh ',
53 *
' $EPICSTOP/Data/MCS/',trim(mcsparam),
59 call creadmcstab(tempdev, amcs)
62 call creadmcstab(tempdev, amcs)
65 write(0,*)
' pm =',pm,
' invalid for cMCSconstForMedia' 69 amcs%loglambdah(:) =log( amcs%lambdah(:) )
71 ie = amcs%minNon0mucEindex
72 amcs%loglambdas1(ie:) =log( amcs%lambdas1(ie:) )
73 amcs%loglambdas2(ie:) =log( amcs%lambdas2(ie:) )
74 amcs%logmuc(ie:) =log( amcs%muc(ie:) )
subroutine copenf(io, fnin, icon)